added cycling of workspaces for honney-main
This commit is contained in:
+14
-3
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user