1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2024-12-23 11:32:32 +00:00

Use modkey instead of control for volume control

use modkey instead to provide compability with programs which bind control + Up or ctrl + Down
This commit is contained in:
likyng 2013-05-05 00:35:25 +03:00
parent a8c3f8efb1
commit 06133dfcfe

View file

@ -739,15 +739,15 @@ globalkeys = awful.util.table.join(
awful.key({ altkey, }, "w", function () yawn.show_weather(5) end), awful.key({ altkey, }, "w", function () yawn.show_weather(5) end),
-- Volume control -- Volume control
awful.key({ "Control" }, "Up", function () awful.key({ modkey }, "Up", function ()
awful.util.spawn("amixer set Master playback 1%+", false ) awful.util.spawn("amixer set Master playback 1%+", false )
vicious.force({ volumewidget }) vicious.force({ volumewidget })
end), end),
awful.key({ "Control" }, "Down", function () awful.key({ modkey }, "Down", function ()
awful.util.spawn("amixer set Master playback 1%-", false ) awful.util.spawn("amixer set Master playback 1%-", false )
vicious.force({ volumewidget }) vicious.force({ volumewidget })
end), end),
awful.key({ "Control" }, "m", function () awful.key({ modkey }, "m", function ()
awful.util.spawn("amixer set Master playback mute", false ) awful.util.spawn("amixer set Master playback mute", false )
vicious.force({ volumewidget }) vicious.force({ volumewidget })
end), end),
@ -755,7 +755,7 @@ globalkeys = awful.util.table.join(
awful.util.spawn("amixer set Master playback unmute", false ) awful.util.spawn("amixer set Master playback unmute", false )
vicious.force({ volumewidget }) vicious.force({ volumewidget })
end), end),
awful.key({ altkey, "Control" }, "m", awful.key({ altkey, modkey }, "m",
function () function ()
awful.util.spawn("amixer set Master playback 100%", false ) awful.util.spawn("amixer set Master playback 100%", false )
vicious.force({ volumewidget }) vicious.force({ volumewidget })