added cycling of workspaces for honney-main

This commit is contained in:
Hannes
2026-07-05 18:24:49 +02:00
parent 05a4580e67
commit 791b34e7e4
2 changed files with 65 additions and 3 deletions
+14 -3
View File
@@ -23,9 +23,11 @@ hl.bind("SUPER+L", hl.dsp.exec_cmd(lockscreen), { locked = true })
-- Interacting with Workspaces
for i = 1, 9 do
hl.bind("SUPER+" .. tostring(i), hl.dsp.focus({ workspace = tostring(i) }))
hl.bind("SUPER+CTRL+" .. tostring(i), hl.dsp.window.move({workspace = tostring(i), follow = false}))
hl.bind("SUPER+SHIFT+" .. tostring(i), hl.dsp.window.move({workspace = tostring(i), follow = true}))
if not (HOSTNAME == "honney-main" and i >= 1 and i <= 4) then
hl.bind("SUPER+" .. tostring(i), hl.dsp.focus({ workspace = tostring(i) }))
hl.bind("SUPER+CTRL+" .. tostring(i), hl.dsp.window.move({workspace = tostring(i), follow = false}))
hl.bind("SUPER+SHIFT+" .. tostring(i), hl.dsp.window.move({workspace = tostring(i), follow = true}))
end
end
hl.bind("SUPER+0", hl.dsp.focus({ workspace = "10" }))
@@ -102,6 +104,15 @@ if HOSTNAME == "honney-main" then
hl.bind("ALT+Y", hl.dsp.exec_cmd("~/.config/hypr/scripts/writing/tmdb.sh"))
end
if HOSTNAME == "honney-main" then
local script = "~/.config/hypr/scripts/cycle_workspace.sh"
for i = 1, 4 do
hl.bind("SUPER+" .. i, hl.dsp.exec_cmd(script .. " " .. i .. " focus"))
hl.bind("SUPER+CTRL+" .. i, hl.dsp.exec_cmd(script .. " " .. i .. " move"))
hl.bind("SUPER+SHIFT+" .. i, hl.dsp.exec_cmd(script .. " " .. i .. " move_follow"))
end
end
-- Quickshell
hl.bind("SUPER + SHIFT + W", hl.dsp.global("quickshell:Wallpaper"))
hl.bind("SUPER + SHIFT + J", hl.dsp.global("quickshell:JLearner"))