Add hotkey to change monitors

This commit is contained in:
cool-mist
2024-12-09 00:28:06 +05:30
parent 3d50d72da4
commit 7f72ebf4ff
2 changed files with 25 additions and 1 deletions
+9 -1
View File
@@ -257,11 +257,19 @@ globalkeys = gears.table.join(
function() awful.spawn.with_shell('pactl set-sink-volume `pactl get-default-sink` -5%') end,
{ description = "decrease the volume", group = "volume" }),
-- Monitor change
awful.key({ modkey, "Control" }, "m",
function()
awful.spawn.spawn('/home/chips/.local/bin/chdp')
awesome.restart()
end,
{ description = "change active monitor", group = "display" }),
-- Lock screen
awful.key({ modkey }, "q", function() awful.spawn.with_shell('dm-tool lock') end,
{ description = "lock", group = "power" }),
-- Polybar
-- Polybar
awful.key({ modkey }, "p", function() awful.spawn.with_shell('polybar-msg cmd toggle') end,
{ description = "toggle polybar", group = "system" })
)