From 06133dfcfe526b8297b1b445cdef76274ebf071d Mon Sep 17 00:00:00 2001 From: likyng Date: Sun, 5 May 2013 00:35:25 +0300 Subject: [PATCH] Use modkey instead of control for volume control use modkey instead to provide compability with programs which bind control + Up or ctrl + Down --- rc.lua.blackburn | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rc.lua.blackburn b/rc.lua.blackburn index e064f3e..10ea6ae 100755 --- a/rc.lua.blackburn +++ b/rc.lua.blackburn @@ -739,15 +739,15 @@ globalkeys = awful.util.table.join( awful.key({ altkey, }, "w", function () yawn.show_weather(5) end), -- Volume control - awful.key({ "Control" }, "Up", function () + awful.key({ modkey }, "Up", function () awful.util.spawn("amixer set Master playback 1%+", false ) vicious.force({ volumewidget }) end), - awful.key({ "Control" }, "Down", function () + awful.key({ modkey }, "Down", function () awful.util.spawn("amixer set Master playback 1%-", false ) vicious.force({ volumewidget }) end), - awful.key({ "Control" }, "m", function () + awful.key({ modkey }, "m", function () awful.util.spawn("amixer set Master playback mute", false ) vicious.force({ volumewidget }) end), @@ -755,7 +755,7 @@ globalkeys = awful.util.table.join( awful.util.spawn("amixer set Master playback unmute", false ) vicious.force({ volumewidget }) end), - awful.key({ altkey, "Control" }, "m", + awful.key({ altkey, modkey }, "m", function () awful.util.spawn("amixer set Master playback 100%", false ) vicious.force({ volumewidget })