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

lain: new commit

This commit is contained in:
luke bonham 2015-06-24 13:51:06 +02:00
parent 68b0f60d36
commit eb14361913
9 changed files with 34 additions and 41 deletions

2
lain

@ -1 +1 @@
Subproject commit c3ddefb68d7020b125335f30355abd7aa21b0820
Subproject commit 5fc544049aa9a70df55907c8171703604aec7b26

View file

@ -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),

View file

@ -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),

View file

@ -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),

View file

@ -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),

View file

@ -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),

View file

@ -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),

View file

@ -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),

View file

@ -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),