some oversights fixed
This commit is contained in:
parent
84099cac52
commit
a2b49474f7
|
@ -462,6 +462,7 @@ globalkeys = awful.util.table.join(
|
||||||
-- Show/Hide Wibox
|
-- Show/Hide Wibox
|
||||||
awful.key({ modkey }, "b", function ()
|
awful.key({ modkey }, "b", function ()
|
||||||
mywibox[mouse.screen].visible = not mywibox[mouse.screen].visible
|
mywibox[mouse.screen].visible = not mywibox[mouse.screen].visible
|
||||||
|
mybottomwibox[mouse.screen].visible = not mybottomwibox[mouse.screen].visible
|
||||||
end),
|
end),
|
||||||
|
|
||||||
-- Layout manipulation
|
-- Layout manipulation
|
||||||
|
|
|
@ -190,11 +190,12 @@ fshome = lain.widgets.fs({
|
||||||
})
|
})
|
||||||
|
|
||||||
-- ALSA volume bar
|
-- ALSA volume bar
|
||||||
myvolumebar = lain.widgets.alsabar()
|
volume = lain.widgets.alsabar()
|
||||||
volmargin = wibox.layout.margin(myvolumebar.widget, 5, 8, 80)
|
volmargin = wibox.layout.margin(volume.bar, 5, 8, 80)
|
||||||
volmargin:set_top(7)
|
volmargin:set_top(7)
|
||||||
volmargin:set_bottom(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
|
-- Weather
|
||||||
yawn = lain.widgets.yawn(123456,
|
yawn = lain.widgets.yawn(123456,
|
||||||
|
@ -435,22 +436,22 @@ globalkeys = awful.util.table.join(
|
||||||
awful.key({ altkey }, "Up",
|
awful.key({ altkey }, "Up",
|
||||||
function ()
|
function ()
|
||||||
awful.util.spawn("amixer -q set " .. volume.channel .. " " .. volume.step .. "+")
|
awful.util.spawn("amixer -q set " .. volume.channel .. " " .. volume.step .. "+")
|
||||||
myvolumebar.notify()
|
volume.notify()
|
||||||
end),
|
end),
|
||||||
awful.key({ altkey }, "Down",
|
awful.key({ altkey }, "Down",
|
||||||
function ()
|
function ()
|
||||||
awful.util.spawn("amixer -q set " .. volume.channel .. " " .. volume.step .. "-")
|
awful.util.spawn("amixer -q set " .. volume.channel .. " " .. volume.step .. "-")
|
||||||
myvolumebar.notify()
|
volume.notify()
|
||||||
end),
|
end),
|
||||||
awful.key({ altkey }, "m",
|
awful.key({ altkey }, "m",
|
||||||
function ()
|
function ()
|
||||||
awful.util.spawn("amixer -q set " .. volume.channel .. " playback toggle")
|
awful.util.spawn("amixer -q set " .. volume.channel .. " playback toggle")
|
||||||
myvolumebar.notify()
|
volume.notify()
|
||||||
end),
|
end),
|
||||||
awful.key({ altkey, "Control" }, "m",
|
awful.key({ altkey, "Control" }, "m",
|
||||||
function ()
|
function ()
|
||||||
awful.util.spawn("amixer -q set " .. volume.channel .. " playback 100%")
|
awful.util.spawn("amixer -q set " .. volume.channel .. " playback 100%")
|
||||||
myvolumebar.notify()
|
volume.notify()
|
||||||
end),
|
end),
|
||||||
|
|
||||||
-- MPD control
|
-- MPD control
|
||||||
|
|
|
@ -434,7 +434,6 @@ globalkeys = awful.util.table.join(
|
||||||
|
|
||||||
-- Widgets popups
|
-- Widgets popups
|
||||||
awful.key({ altkey, }, "c", function () lain.widgets.calendar:show(7) end),
|
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),
|
awful.key({ altkey, }, "w", function () yawn.show(7) end),
|
||||||
|
|
||||||
-- ALSA volume control
|
-- ALSA volume control
|
||||||
|
|
Loading…
Reference in New Issue