From fe463ffccf4ecd86a7ae12d7000562e7857d2759 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Tue, 8 Nov 2022 13:30:59 +0100 Subject: [PATCH] Migrate amixer to pactl --- rc.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rc.lua b/rc.lua index 7c1e29e..967ea63 100644 --- a/rc.lua +++ b/rc.lua @@ -414,23 +414,23 @@ globalkeys = awful.util.table.join( -- Custom shortcuts 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"}), 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"}), 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"}), 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"}), 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"}), awful.key({ }, "XF86MonBrightnessDown", function ()