mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2024-12-23 03:32:30 +00:00
1 toggle key instead of 2 mute/unmute
This commit is contained in:
parent
a8c3f8efb1
commit
09f44c48c3
|
@ -748,14 +748,10 @@ globalkeys = awful.util.table.join(
|
||||||
vicious.force({ volumewidget })
|
vicious.force({ volumewidget })
|
||||||
end),
|
end),
|
||||||
awful.key({ "Control" }, "m", function ()
|
awful.key({ "Control" }, "m", function ()
|
||||||
awful.util.spawn("amixer set Master playback mute", false )
|
awful.util.spawn("amixer set Master playback toggle", false )
|
||||||
vicious.force({ volumewidget })
|
vicious.force({ volumewidget })
|
||||||
end),
|
end),
|
||||||
awful.key({ "Control" }, "u", function ()
|
awful.key({ modkey, "Control" }, "m",
|
||||||
awful.util.spawn("amixer set Master playback unmute", false )
|
|
||||||
vicious.force({ volumewidget })
|
|
||||||
end),
|
|
||||||
awful.key({ altkey, "Control" }, "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 })
|
||||||
|
|
|
@ -772,13 +772,9 @@ globalkeys = awful.util.table.join(
|
||||||
vicious.force({ volumewidget })
|
vicious.force({ volumewidget })
|
||||||
end),
|
end),
|
||||||
awful.key({ "Control" }, "m", function ()
|
awful.key({ "Control" }, "m", function ()
|
||||||
awful.util.spawn("amixer set Master playback mute", false )
|
awful.util.spawn("amixer set Master playback toggle", false )
|
||||||
vicious.force({ volumewidget })
|
vicious.force({ volumewidget })
|
||||||
end),
|
end),
|
||||||
awful.key({ "Control" }, "u", function ()
|
|
||||||
awful.util.spawn("amixer set Master playback unmute", false )
|
|
||||||
vicious.force({ volumewidget })
|
|
||||||
end),
|
|
||||||
awful.key({ altkey, "Control" }, "m", function ()
|
awful.key({ altkey, "Control" }, "m", 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 })
|
||||||
|
|
|
@ -746,13 +746,9 @@ globalkeys = awful.util.table.join(
|
||||||
vicious.force({ volumewidget })
|
vicious.force({ volumewidget })
|
||||||
end),
|
end),
|
||||||
awful.key({ "Control" }, "m", function ()
|
awful.key({ "Control" }, "m", function ()
|
||||||
awful.util.spawn("amixer set Master playback mute", false )
|
awful.util.spawn("amixer set Master playback toggle", false )
|
||||||
vicious.force({ volumewidget })
|
vicious.force({ volumewidget })
|
||||||
end),
|
end),
|
||||||
awful.key({ "Control" }, "u", function ()
|
|
||||||
awful.util.spawn("amixer set Master playback unmute", false )
|
|
||||||
vicious.force({ volumewidget })
|
|
||||||
end),
|
|
||||||
awful.key({ altkey, "Control" }, "m", function ()
|
awful.key({ altkey, "Control" }, "m", 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 })
|
||||||
|
|
|
@ -734,13 +734,9 @@ globalkeys = awful.util.table.join(
|
||||||
vicious.force({ volumewidget })
|
vicious.force({ volumewidget })
|
||||||
end),
|
end),
|
||||||
awful.key({ "Control" }, "m", function ()
|
awful.key({ "Control" }, "m", function ()
|
||||||
awful.util.spawn("amixer set Master playback mute", false )
|
awful.util.spawn("amixer set Master playback toggle", false )
|
||||||
vicious.force({ volumewidget })
|
vicious.force({ volumewidget })
|
||||||
end),
|
end),
|
||||||
awful.key({ "Control" }, "u", function ()
|
|
||||||
awful.util.spawn("amixer set Master playback unmute", false )
|
|
||||||
vicious.force({ volumewidget })
|
|
||||||
end),
|
|
||||||
awful.key({ altkey, "Control" }, "m", function ()
|
awful.key({ altkey, "Control" }, "m", 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 })
|
||||||
|
|
Loading…
Reference in a new issue