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

some oversights fixed

This commit is contained in:
luke bonham 2013-09-13 23:08:18 +02:00
parent 84099cac52
commit a2b49474f7
3 changed files with 9 additions and 8 deletions

View file

@ -462,6 +462,7 @@ globalkeys = awful.util.table.join(
-- Show/Hide Wibox
awful.key({ modkey }, "b", function ()
mywibox[mouse.screen].visible = not mywibox[mouse.screen].visible
mybottomwibox[mouse.screen].visible = not mybottomwibox[mouse.screen].visible
end),
-- Layout manipulation

View file

@ -190,11 +190,12 @@ fshome = lain.widgets.fs({
})
-- ALSA volume bar
myvolumebar = lain.widgets.alsabar()
volmargin = wibox.layout.margin(myvolumebar.widget, 5, 8, 80)
volume = lain.widgets.alsabar()
volmargin = wibox.layout.margin(volume.bar, 5, 8, 80)
volmargin:set_top(7)
volmargin:set_bottom(7)
volumewidget = wibox.widget.background(volmargin, beautiful.vol_bg)
volumewidget = wibox.widget.background(volmargin)
volumewidget:set_bgimage(beautiful.vol_bg)
-- Weather
yawn = lain.widgets.yawn(123456,
@ -435,22 +436,22 @@ globalkeys = awful.util.table.join(
awful.key({ altkey }, "Up",
function ()
awful.util.spawn("amixer -q set " .. volume.channel .. " " .. volume.step .. "+")
myvolumebar.notify()
volume.notify()
end),
awful.key({ altkey }, "Down",
function ()
awful.util.spawn("amixer -q set " .. volume.channel .. " " .. volume.step .. "-")
myvolumebar.notify()
volume.notify()
end),
awful.key({ altkey }, "m",
function ()
awful.util.spawn("amixer -q set " .. volume.channel .. " playback toggle")
myvolumebar.notify()
volume.notify()
end),
awful.key({ altkey, "Control" }, "m",
function ()
awful.util.spawn("amixer -q set " .. volume.channel .. " playback 100%")
myvolumebar.notify()
volume.notify()
end),
-- MPD control

View file

@ -434,7 +434,6 @@ globalkeys = awful.util.table.join(
-- Widgets popups
awful.key({ altkey, }, "c", function () lain.widgets.calendar:show(7) end),
awful.key({ altkey, }, "h", function () fshome.show(7) end),
awful.key({ altkey, }, "w", function () yawn.show(7) end),
-- ALSA volume control