feat: much improved hyprland binds
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
local function exit_submap()
|
||||
hl.dispatch(hl.dsp.submap("reset"))
|
||||
end
|
||||
|
||||
hl.define_submap("groupedlaunch", function()
|
||||
hl.bind("e", function()
|
||||
hl.exec_cmd("kitty ~/projects/eth/projects/eyetap/", { workspace = 1 })
|
||||
hl.exec_cmd("kitty ~/projects/eth/projects/eyetap/backend/", { workspace = 10 })
|
||||
hl.exec_cmd("kitty ~/projects/eth/projects/eyetap/frontend/", { workspace = 10 })
|
||||
hl.exec_cmd("librewolf http://localhost:8081")
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
hl.bind("s", function()
|
||||
hl.exec_cmd("kitty ~/projects/eth/eth-summaries/", { workspace = 1 })
|
||||
hl.exec_cmd("kitty ~/NextCloud/Documents/ETH/Semester4/", { workspace = 3 })
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
hl.bind("b", function()
|
||||
hl.exec_cmd("alvr_dashboard", { workspace = 1 })
|
||||
hl.exec_cmd("/opt/BSManager/bs-manager", { workspace = 2 })
|
||||
hl.exec_cmd("steam", { workspace = 3 })
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
hl.bind("Escape", function()
|
||||
exit_submap()
|
||||
end)
|
||||
end)
|
||||
@@ -2,6 +2,8 @@ local function exit_submap()
|
||||
hl.dispatch(hl.dsp.submap("reset"))
|
||||
end
|
||||
|
||||
-- TODO: Improve mapping (also global mapping, for moving between els if to use regularly)
|
||||
-- Improve colours
|
||||
hl.define_submap("groups", function()
|
||||
hl.bind("c", function()
|
||||
hl.dispatch(hl.dsp.group.toggle())
|
||||
|
||||
@@ -6,6 +6,7 @@ hl.bind("SUPER + S", hl.dsp.submap("screenshot"))
|
||||
hl.bind("SUPER + W", hl.dsp.submap("window"))
|
||||
hl.bind("SUPER + A", hl.dsp.submap("workspace"))
|
||||
hl.bind("SUPER + Q", hl.dsp.window.close())
|
||||
hl.bind("SUPER + P", hl.dsp.submap("groupedlaunch"))
|
||||
|
||||
hl.bind("SUPER + Space", hl.dsp.exec_cmd("dms ipc call spotlight toggle"))
|
||||
hl.bind("SUPER + Escape", hl.dsp.exec_cmd("wlogout"))
|
||||
|
||||
@@ -3,36 +3,36 @@
|
||||
-- └ ┘
|
||||
-- Games
|
||||
hl.window_rule({
|
||||
match = {
|
||||
class = "steam_app.*",
|
||||
},
|
||||
tag = "+game",
|
||||
match = {
|
||||
class = "steam_app.*",
|
||||
},
|
||||
tag = "+game",
|
||||
})
|
||||
hl.window_rule({
|
||||
match = {
|
||||
title = "Minecraft|Beat Saber",
|
||||
},
|
||||
tag = "+game",
|
||||
match = {
|
||||
title = "Minecraft.*|Beat Saber",
|
||||
},
|
||||
tag = "+game",
|
||||
})
|
||||
|
||||
-- Launchers
|
||||
hl.window_rule({
|
||||
match = {
|
||||
class = "steam|minecraft-launcher|org\\.prismlauncher\\.PrismLauncher",
|
||||
},
|
||||
tag = "+launchers",
|
||||
match = {
|
||||
class = "steam|minecraft-launcher|org\\.prismlauncher\\.PrismLauncher",
|
||||
},
|
||||
tag = "+launchers",
|
||||
})
|
||||
|
||||
-- Dialogs
|
||||
hl.window_rule({
|
||||
match = {
|
||||
class = "file_progress|confirm|dialog|download|notification|error|splash|confirmreset|lxappearance|pavucontrol|file-roller",
|
||||
},
|
||||
tag = "+dialog",
|
||||
match = {
|
||||
class = "file_progress|confirm|dialog|download|notification|error|splash|confirmreset|lxappearance|pavucontrol|file-roller",
|
||||
},
|
||||
tag = "+dialog",
|
||||
})
|
||||
hl.window_rule({
|
||||
match = {
|
||||
title = "SteamVR Status|Open File|Media viewer|Volume Control|Picture-in-Picture|File Operation Progress|Loading|AG Controller|AG Controller|Qalculate",
|
||||
},
|
||||
tag = "+dialog",
|
||||
match = {
|
||||
title = ".*SteamVR.*|Open File.*|Media viewer|Volume Control|Picture-in-Picture|File Operation Progress|Loading.*|AG Controller|.*Qalculate.*",
|
||||
},
|
||||
tag = "+dialog",
|
||||
})
|
||||
|
||||
@@ -7,7 +7,7 @@ hl.window_rule({
|
||||
workspace = 1,
|
||||
})
|
||||
hl.window_rule({
|
||||
match = { title = "ALVR|^hidden-terminator$" },
|
||||
match = { title = "ALVR.*|^hidden-terminator$" },
|
||||
workspace = 1,
|
||||
})
|
||||
|
||||
@@ -17,7 +17,7 @@ hl.window_rule({
|
||||
workspace = 2,
|
||||
})
|
||||
hl.window_rule({
|
||||
match = { title = "BSManager" },
|
||||
match = { title = ".*BSManager.*" },
|
||||
workspace = 2,
|
||||
})
|
||||
|
||||
@@ -28,6 +28,6 @@ hl.window_rule({
|
||||
})
|
||||
|
||||
hl.window_rule({
|
||||
match = { title = "Qalculate|AG Controller" },
|
||||
match = { title = "Qalculate.*|AG Controller" },
|
||||
workspace = "special",
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user