From: Samir Benmendil Date: Mon, 17 Aug 2020 08:45:44 +0000 (+0100) Subject: awesome: use pulsemixer instead of ponymix X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/792150447c7b574e1ebea379c42613f6269c31e7?ds=inline awesome: use pulsemixer instead of ponymix ponymix prints the volume to stdout which really isn't necessary. And I actually need pulsemixer installed anyway. Whereas ponymix was only for changing the volume here. --- diff --git a/awesome/bindings.lua b/awesome/bindings.lua index 123710d..96b31ea 100644 --- a/awesome/bindings.lua +++ b/awesome/bindings.lua @@ -126,17 +126,17 @@ globalkeys = awful.util.table.join(globalkeys, -- ranger awful.key({ modkey }, "r", function () awful.spawn(terminal .. " -e ranger") end), -- Volume - awful.key({ }, "XF86AudioMute", function () awful.spawn("ponymix toggle") end, + awful.key({ }, "XF86AudioMute", function () awful.spawn("pulsemixer --toggle-mute") end, {description = "toggle mute", group = "volume"}), - awful.key({ }, "XF86AudioLowerVolume", function () awful.spawn("ponymix decrease 5") end, + awful.key({ }, "XF86AudioLowerVolume", function () awful.spawn("pulsemixer --change-volume -5") end, {description = "decrease volume", group = "volume"}), - awful.key({ }, "XF86AudioRaiseVolume", function () awful.spawn("ponymix increase 5") end, + awful.key({ }, "XF86AudioRaiseVolume", function () awful.spawn("pulsemixer --change-volume +5") end, {description = "increase volume", group = "volume"}), - awful.key({ modkey }, "F10", function () awful.spawn("ponymix toggle") end, + awful.key({ modkey }, "F10", function () awful.spawn("pulsemixer --toggle-mute") end, {description = "toggle mute", group = "volume"}), - awful.key({ modkey }, "F11", function () awful.spawn("ponymix decrease 5") end, + awful.key({ modkey }, "F11", function () awful.spawn("pulsemixer --change-volume -5") end, {description = "decrease volume", group = "volume"}), - awful.key({ modkey }, "F12", function () awful.spawn("ponymix increase 5") end, + awful.key({ modkey }, "F12", function () awful.spawn("pulsemixer --change-volume +5") end, {description = "increase volume", group = "volume"}), -- Lock awful.key({ modkey, "Control" }, "Escape", function () awful.spawn("i3lock -c 000000") end),