Update 2025-07-23

This commit is contained in:
Kristofers Solo 2025-07-23 23:14:29 +03:00
parent 94a3807c8a
commit 4341b0ecc5
Signed by: kristoferssolo
GPG Key ID: 8687F2D3EEE6F0ED

View File

@ -363,36 +363,33 @@ local globalkeys = gears.table.join(
awful.key({}, "#171", function() awful.key({}, "#171", function()
awful.spawn.with_shell("sp next") awful.spawn.with_shell("sp next")
end, { description = "next song", group = "media controls" }), -- play next end, { description = "next song", group = "media controls" }),
awful.key({}, "#173", function() awful.key({}, "#173", function()
awful.spawn.with_shell("sp previous") awful.spawn.with_shell("sp previous")
end, { description = "prev song", group = "media controls" }), -- play previous end, { description = "prev song", group = "media controls" }),
awful.key({}, "#174", function() awful.key({}, "#174", function()
awful.spawn.with_shell("playerctl -a stop") awful.spawn.with_shell("playerctl -a stop")
end, { description = "stop spotify", group = "media controls" }), -- stop end, { description = "stop spotify", group = "media controls" }),
awful.key({}, "#172", function() awful.key({}, "#172", function()
awful.spawn.with_shell("playerctl play-pause -a") awful.spawn.with_shell("playerctl play-pause -a")
end, { description = "play/pause all", group = "media controls" }), -- play/pause all end, { description = "play/pause all", group = "media controls" }),
awful.key({}, "XF86AudioRaiseVolume", function() awful.key({}, "XF86AudioRaiseVolume", function()
awful.spawn.with_shell("wpctl set-volume $(get-spotify-id) 0.05+ -l 1") awful.spawn.with_shell("wpctl set-volume $(get-spotify-id) 0.05+ -l 1")
end, { description = "increase spotify volume", group = "media controls" }), -- increase volume end, { description = "increase spotify volume", group = "media controls" }),
awful.key({}, "XF86AudioLowerVolume", function() awful.key({}, "XF86AudioLowerVolume", function()
awful.spawn.with_shell("wpctl set-volume $(get-spotify-id) 0.05-") awful.spawn.with_shell("wpctl set-volume $(get-spotify-id) 0.05-")
end, { description = "decrease spotify volume", group = "media controls" }), -- decrease volume end, { description = "decrease spotify volume", group = "media controls" }),
awful.key({}, "XF86AudioMute", function() awful.key({}, "XF86AudioMute", function()
awful.spawn.with_shell("sp play") awful.spawn.with_shell("sp play")
end, { description = "play/pause spotify", group = "media controls" }), -- mute end, { description = "play/pause spotify", group = "media controls" }),
awful.key({ "Control" }, "#107", function() awful.key({ "Control" }, "#107", function()
awful.spawn.with_shell("( flameshot &; ) && ( sleep 0.5s && flameshot gui )") awful.spawn.with_shell("( flameshot &; ) && ( sleep 0.5s && flameshot gui )")
end, { description = "take region screenshot", group = "launcher" }), -- take region screenshot end, { description = "take region screenshot", group = "launcher" }),
awful.key({ modkey }, "s", hotkeys_popup.show_help, { description = "show help", group = "awesome" }), awful.key({ modkey }, "s", hotkeys_popup.show_help, { description = "show help", group = "awesome" }),
awful.key({ modkey }, "Left", awful.tag.viewprev, { description = "view previous", group = "tag" }), awful.key({ modkey }, "Left", awful.tag.viewprev, { description = "view previous", group = "tag" }),
awful.key({ modkey }, "Right", awful.tag.viewnext, { description = "view next", group = "tag" }), awful.key({ modkey }, "Right", awful.tag.viewnext, { description = "view next", group = "tag" }),