Migrate amixer to pactl

This commit is contained in:
Thomas Forgione 2022-11-08 13:30:59 +01:00
parent 683d7d4a9a
commit fe463ffccf
1 changed files with 5 additions and 5 deletions

10
rc.lua
View File

@ -414,23 +414,23 @@ globalkeys = awful.util.table.join(
-- Custom shortcuts -- Custom shortcuts
awful.key({ }, "XF86AudioRaiseVolume", function() awful.key({ }, "XF86AudioRaiseVolume", function()
awful.util.spawn("amixer set Master 3%+", false) awful.util.spawn("pactl set-sink-volume 0 +3%", false)
end, {description = "increase the volume by 3%", group="Fn Keys"}), end, {description = "increase the volume by 3%", group="Fn Keys"}),
awful.key({ }, "XF86AudioLowerVolume", function() awful.key({ }, "XF86AudioLowerVolume", function()
awful.util.spawn("amixer set Master 3%-", false) awful.util.spawn("pactl set-sink-volume 0 -3%", false)
end, {description = "decrease the volume by 3%", group="Fn Keys"}), end, {description = "decrease the volume by 3%", group="Fn Keys"}),
awful.key({modkey}, "Up", function() awful.key({modkey}, "Up", function()
awful.util.spawn("amixer sset Master 3%+", false) awful.util.spawn("pactl set-sink-volume 0 +3%", false)
end, {description = "increase the volume by 3%", group="Sound controls"}), end, {description = "increase the volume by 3%", group="Sound controls"}),
awful.key({modkey}, "Down", function() awful.key({modkey}, "Down", function()
awful.util.spawn("amixer sset Master 3%-", false) awful.util.spawn("pactl set-sink-volume 0 -3%", false)
end, {description = "decrease the volume by 3%", group="Sound controls"}), end, {description = "decrease the volume by 3%", group="Sound controls"}),
awful.key({ }, "XF86AudioMute", function() awful.key({ }, "XF86AudioMute", function()
awful.util.spawn("amixer set Master toggle", false) awful.util.spawn("pactl set-sink-mute 0 toggle", false)
end, {description = "mute sound", group="Fn Keys"}), end, {description = "mute sound", group="Fn Keys"}),
awful.key({ }, "XF86MonBrightnessDown", function () awful.key({ }, "XF86MonBrightnessDown", function ()