From 926a63f2824575f15da3b81c8d93d2479716cfc3 Mon Sep 17 00:00:00 2001 From: Luke Bonham Date: Thu, 23 Apr 2015 09:13:38 +0200 Subject: [PATCH] alsa/alsabar: fixed toggle call --- rc.lua.multicolor | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rc.lua.multicolor b/rc.lua.multicolor index 7e239e0..d151adf 100644 --- a/rc.lua.multicolor +++ b/rc.lua.multicolor @@ -501,23 +501,23 @@ globalkeys = awful.util.table.join( -- ALSA volume control awful.key({ altkey }, "Up", function () - awful.util.spawn(string.format("amixer -c %s set %s 1+", volumewidget.card, volumewidget.channel)) + os.execute(string.format("amixer -c %s set %s 1+", volumewidget.card, volumewidget.channel)) volumewidget.update() end), awful.key({ altkey }, "Down", function () - awful.util.spawn(string.format("amixer -c %s set %s 1-", volumewidget.card, volumewidget.channel)) + os.execute(string.format("amixer -c %s set %s 1-", volumewidget.card, volumewidget.channel)) volumewidget.update() end), awful.key({ altkey }, "m", function () - awful.util.spawn(string.format("amixer -c %s set %s toggle", volumewidget.card, volumewidget.channel)) - --awful.util.spawn(string.format("amixer set %s toggle", volumewidget.channel)) + os.execute(string.format("amixer -c %s set %s toggle", volumewidget.card, volumewidget.channel)) + --os.execute(string.format("amixer set %s toggle", volumewidget.channel)) volumewidget.update() end), awful.key({ altkey, "Control" }, "m", function () - awful.util.spawn(string.format("amixer -c %s set %s 100%%", volumewidget.card, volumewidget.channel)) + os.execute(string.format("amixer -c %s set %s 100%%", volumewidget.card, volumewidget.channel)) volumewidget.update() end),