]> git.rmz.io Git - dotfiles.git/commitdiff
awesome: use pulsemixer instead of ponymix
authorSamir Benmendil <me@rmz.io>
Mon, 17 Aug 2020 08:45:44 +0000 (09:45 +0100)
committerSamir Benmendil <me@rmz.io>
Mon, 17 Aug 2020 08:45:44 +0000 (09:45 +0100)
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.

awesome/bindings.lua

index 123710dee228028bdff1214b802873bc1179447c..96b31eac003820a51442dd02e55c0ce21e1bd402 100644 (file)
@@ -126,17 +126,17 @@ globalkeys = awful.util.table.join(globalkeys,
     -- ranger
     awful.key({ modkey }, "r", function () awful.spawn(terminal .. " -e ranger") end),
     -- Volume
     -- 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"}),
               {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"}),
               {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"}),
               {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"}),
               {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"}),
               {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),
               {description = "increase volume", group = "volume"}),
     -- Lock
     awful.key({ modkey, "Control" }, "Escape", function () awful.spawn("i3lock -c 000000") end),