mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2024-12-23 03:32:30 +00:00
lain: new commit
This commit is contained in:
parent
68b0f60d36
commit
eb14361913
2
lain
2
lain
|
@ -1 +1 @@
|
|||
Subproject commit c3ddefb68d7020b125335f30355abd7aa21b0820
|
||||
Subproject commit 5fc544049aa9a70df55907c8171703604aec7b26
|
|
@ -428,23 +428,22 @@ globalkeys = awful.util.table.join(
|
|||
-- ALSA volume control
|
||||
awful.key({ altkey }, "Up",
|
||||
function ()
|
||||
os.execute(string.format("amixer -c %s set %s 1+", volumewidget.card, volumewidget.channel))
|
||||
os.execute(string.format("amixer set %s 1%%+", volumewidget.channel))
|
||||
volumewidget.update()
|
||||
end),
|
||||
awful.key({ altkey }, "Down",
|
||||
function ()
|
||||
os.execute(string.format("amixer -c %s set %s 1-", volumewidget.card, volumewidget.channel))
|
||||
os.execute(string.format("amixer set %s 1%%-", volumewidget.channel))
|
||||
volumewidget.update()
|
||||
end),
|
||||
awful.key({ altkey }, "m",
|
||||
function ()
|
||||
os.execute(string.format("amixer -c %s set %s toggle", volumewidget.card, volumewidget.channel))
|
||||
--os.execute(string.format("amixer set %s toggle", volumewidget.channel))
|
||||
os.execute(string.format("amixer set %s toggle", volumewidget.channel))
|
||||
volumewidget.update()
|
||||
end),
|
||||
awful.key({ altkey, "Control" }, "m",
|
||||
function ()
|
||||
os.execute(string.format("amixer -c %s set %s 100%%", volumewidget.card, volumewidget.channel))
|
||||
os.execute(string.format("amixer set %s 100%%", volumewidget.channel))
|
||||
volumewidget.update()
|
||||
end),
|
||||
|
||||
|
|
|
@ -498,23 +498,22 @@ globalkeys = awful.util.table.join(
|
|||
-- ALSA volume control
|
||||
awful.key({ altkey }, "Up",
|
||||
function ()
|
||||
os.execute(string.format("amixer -c %s set %s %s+", volume.card, volume.channel, volume.step))
|
||||
os.execute(string.format("amixer set %s %s+", volume.channel, volume.step))
|
||||
volume.update()
|
||||
end),
|
||||
awful.key({ altkey }, "Down",
|
||||
function ()
|
||||
os.execute(string.format("amixer -c %s set %s %s-", volume.card, volume.channel, volume.step))
|
||||
os.execute(string.format("amixer set %s %s-", volume.channel, volume.step))
|
||||
volume.update()
|
||||
end),
|
||||
awful.key({ altkey }, "m",
|
||||
function ()
|
||||
os.execute(string.format("amixer -c %s set %s toggle", volume.card, volume.channel))
|
||||
--os.execute(string.format("amixer set %s toggle", volume.channel))
|
||||
os.execute(string.format("amixer set %s toggle", volume.channel))
|
||||
volume.update()
|
||||
end),
|
||||
awful.key({ altkey, "Control" }, "m",
|
||||
function ()
|
||||
os.execute(string.format("amixer -c %s set %s 100", volume.card, volume.channel))
|
||||
os.execute(string.format("amixer set %s 100%%", volume.channel))
|
||||
volume.update()
|
||||
end),
|
||||
|
||||
|
|
|
@ -428,23 +428,22 @@ globalkeys = awful.util.table.join(
|
|||
-- ALSA volume control
|
||||
awful.key({ altkey }, "Up",
|
||||
function ()
|
||||
os.execute(string.format("amixer -c %s set %s 1+", volumewidget.card, volumewidget.channel))
|
||||
os.execute(string.format("amixer set %s 1%%+", volumewidget.channel))
|
||||
volumewidget.update()
|
||||
end),
|
||||
awful.key({ altkey }, "Down",
|
||||
function ()
|
||||
os.execute(string.format("amixer -c %s set %s 1-", volumewidget.card, volumewidget.channel))
|
||||
os.execute(string.format("amixer set %s 1%%-", volumewidget.channel))
|
||||
volumewidget.update()
|
||||
end),
|
||||
awful.key({ altkey }, "m",
|
||||
function ()
|
||||
os.execute(string.format("amixer -c %s set %s toggle", volumewidget.card, volumewidget.channel))
|
||||
--os.execute(string.format("amixer set %s toggle", volumewidget.channel))
|
||||
os.execute(string.format("amixer set %s toggle", volumewidget.channel))
|
||||
volumewidget.update()
|
||||
end),
|
||||
awful.key({ altkey, "Control" }, "m",
|
||||
function ()
|
||||
os.execute(string.format("amixer -c %s set %s 100%%", volumewidget.card, volumewidget.channel))
|
||||
os.execute(string.format("amixer set %s 100%%", volumewidget.channel))
|
||||
volumewidget.update()
|
||||
end),
|
||||
|
||||
|
|
|
@ -561,23 +561,22 @@ globalkeys = awful.util.table.join(
|
|||
-- ALSA volume control
|
||||
awful.key({ altkey }, "Up",
|
||||
function ()
|
||||
os.execute(string.format("amixer -c %s set %s %s+", myvolumebar.card, myvolumebar.channel, myvolumebar.step))
|
||||
os.execute(string.format("amixer set %s %s+", myvolumebar.channel, myvolumebar.step))
|
||||
myvolumebar.update()
|
||||
end),
|
||||
awful.key({ altkey }, "Down",
|
||||
function ()
|
||||
os.execute(string.format("amixer -c %s set %s %s-", myvolumebar.card, myvolumebar.channel, myvolumebar.step))
|
||||
os.execute(string.format("amixer set %s %s-", myvolumebar.channel, myvolumebar.step))
|
||||
myvolumebar.update()
|
||||
end),
|
||||
awful.key({ altkey }, "m",
|
||||
function ()
|
||||
os.execute(string.format("amixer -c %s set %s toggle", myvolumebar.card, myvolumebar.channel))
|
||||
--os.execute(string.format("amixer set %s toggle", myvolumebar.channel))
|
||||
os.execute(string.format("amixer set %s toggle", myvolumebar.channel))
|
||||
myvolumebar.update()
|
||||
end),
|
||||
awful.key({ altkey, "Control" }, "m",
|
||||
function ()
|
||||
os.execute(string.format("amixer -c %s set %s 100", myvolumebar.card, myvolumebar.channel))
|
||||
os.execute(string.format("amixer set %s 100%%", myvolumebar.channel))
|
||||
myvolumebar.update()
|
||||
end),
|
||||
|
||||
|
|
|
@ -511,23 +511,22 @@ globalkeys = awful.util.table.join(
|
|||
-- ALSA volume control
|
||||
awful.key({ altkey }, "Up",
|
||||
function ()
|
||||
os.execute(string.format("amixer -c %s set %s 1+", volumewidget.card, volumewidget.channel))
|
||||
os.execute(string.format("amixer set %s 1%%+", volumewidget.channel))
|
||||
volumewidget.update()
|
||||
end),
|
||||
awful.key({ altkey }, "Down",
|
||||
function ()
|
||||
os.execute(string.format("amixer -c %s set %s 1-", volumewidget.card, volumewidget.channel))
|
||||
os.execute(string.format("amixer set %s 1%%-", volumewidget.channel))
|
||||
volumewidget.update()
|
||||
end),
|
||||
awful.key({ altkey }, "m",
|
||||
function ()
|
||||
os.execute(string.format("amixer -c %s set %s toggle", volumewidget.card, volumewidget.channel))
|
||||
--os.execute(string.format("amixer set %s toggle", volumewidget.channel))
|
||||
os.execute(string.format("amixer set %s toggle", volumewidget.channel))
|
||||
volumewidget.update()
|
||||
end),
|
||||
awful.key({ altkey, "Control" }, "m",
|
||||
function ()
|
||||
os.execute(string.format("amixer -c %s set %s 100%%", volumewidget.card, volumewidget.channel))
|
||||
os.execute(string.format("amixer set %s 100%%", volumewidget.channel))
|
||||
volumewidget.update()
|
||||
end),
|
||||
|
||||
|
|
|
@ -482,23 +482,22 @@ globalkeys = awful.util.table.join(
|
|||
-- ALSA volume control
|
||||
awful.key({ altkey }, "Up",
|
||||
function ()
|
||||
os.execute(string.format("amixer -c %s set %s 1+", volumewidget.card, volumewidget.channel))
|
||||
os.execute(string.format("amixer set %s 1%%+", volumewidget.channel))
|
||||
volumewidget.update()
|
||||
end),
|
||||
awful.key({ altkey }, "Down",
|
||||
function ()
|
||||
os.execute(string.format("amixer -c %s set %s 1-", volumewidget.card, volumewidget.channel))
|
||||
os.execute(string.format("amixer set %s 1%%-", volumewidget.channel))
|
||||
volumewidget.update()
|
||||
end),
|
||||
awful.key({ altkey }, "m",
|
||||
function ()
|
||||
os.execute(string.format("amixer -c %s set %s toggle", volumewidget.card, volumewidget.channel))
|
||||
--os.execute(string.format("amixer set %s toggle", volumewidget.channel))
|
||||
os.execute(string.format("amixer set %s toggle", volumewidget.channel))
|
||||
volumewidget.update()
|
||||
end),
|
||||
awful.key({ altkey, "Control" }, "m",
|
||||
function ()
|
||||
os.execute(string.format("amixer -c %s set %s 100%%", volumewidget.card, volumewidget.channel))
|
||||
os.execute(string.format("amixer set %s 100%%", volumewidget.channel))
|
||||
volumewidget.update()
|
||||
end),
|
||||
|
||||
|
|
|
@ -423,26 +423,26 @@ globalkeys = awful.util.table.join(
|
|||
awful.key({ altkey, }, "h", function () fshome.show(7) end),
|
||||
awful.key({ altkey, }, "w", function () yawn.show(7) end),
|
||||
|
||||
|
||||
-- ALSA volume control
|
||||
awful.key({ altkey }, "Up",
|
||||
function ()
|
||||
os.execute(string.format("amixer -c %s set %s %s+", volume.card, volume.channel, volume.step))
|
||||
os.execute(string.format("amixer set %s %s+", volume.channel, volume.step))
|
||||
volume.update()
|
||||
end),
|
||||
awful.key({ altkey }, "Down",
|
||||
function ()
|
||||
os.execute(string.format("amixer -c %s set %s %s-", volume.card, volume.channel, volume.step))
|
||||
os.execute(string.format("amixer set %s %s-", volume.channel, volume.step))
|
||||
volume.update()
|
||||
end),
|
||||
awful.key({ altkey }, "m",
|
||||
function ()
|
||||
os.execute(string.format("amixer -c %s set %s toggle", volume.card, volume.channel))
|
||||
--os.execute(string.format("amixer set %s toggle", volume.channel))
|
||||
os.execute(string.format("amixer set %s toggle", volume.channel))
|
||||
volume.update()
|
||||
end),
|
||||
awful.key({ altkey, "Control" }, "m",
|
||||
function ()
|
||||
os.execute(string.format("amixer -c %s set %s 100", volume.card, volume.channel))
|
||||
os.execute(string.format("amixer set %s 100%%", volume.channel))
|
||||
volume.update()
|
||||
end),
|
||||
|
||||
|
|
|
@ -435,23 +435,22 @@ globalkeys = awful.util.table.join(
|
|||
-- ALSA volume control
|
||||
awful.key({ altkey }, "Up",
|
||||
function ()
|
||||
os.execute(string.format("amixer -c %s set %s 1+", volumewidget.card, volumewidget.channel))
|
||||
os.execute(string.format("amixer set %s 1%%+", volumewidget.channel))
|
||||
volumewidget.update()
|
||||
end),
|
||||
awful.key({ altkey }, "Down",
|
||||
function ()
|
||||
os.execute(string.format("amixer -c %s set %s 1-", volumewidget.card, volumewidget.channel))
|
||||
os.execute(string.format("amixer set %s 1%%-", volumewidget.channel))
|
||||
volumewidget.update()
|
||||
end),
|
||||
awful.key({ altkey }, "m",
|
||||
function ()
|
||||
os.execute(string.format("amixer -c %s set %s toggle", volumewidget.card, volumewidget.channel))
|
||||
--os.execute(string.format("amixer set %s toggle", volumewidget.channel))
|
||||
os.execute(string.format("amixer set %s toggle", volumewidget.channel))
|
||||
volumewidget.update()
|
||||
end),
|
||||
awful.key({ altkey, "Control" }, "m",
|
||||
function ()
|
||||
os.execute(string.format("amixer -c %s set %s 100%%", volumewidget.card, volumewidget.channel))
|
||||
os.execute(string.format("amixer set %s 100%%", volumewidget.channel))
|
||||
volumewidget.update()
|
||||
end),
|
||||
|
||||
|
|
Loading…
Reference in a new issue