1
0
mirror of https://github.com/bertptrs/vimconfig.git synced 2025-12-25 20:40:32 +01:00

Better Awesome config.

This commit is contained in:
Bert Peters
2016-12-27 19:10:19 +01:00
parent 0e57e08dee
commit 767a92fd7b
3 changed files with 84 additions and 3 deletions

View File

@@ -58,7 +58,7 @@ local layouts =
awful.layout.suit.spiral,
awful.layout.suit.floating,
awful.layout.suit.tile,
awful.layout.suit.fair,
awful.layout.suit.fair.horizontal,
awful.layout.suit.max,
awful.layout.suit.magnifier
}
@@ -184,10 +184,17 @@ for s = 1, screen.count() do
-- Widgets that are aligned to the right
local right_layout = wibox.layout.fixed.horizontal()
if s == 1 then right_layout:add(wibox.widget.systray()) end
if s == 1 then
right_layout:add(wibox.widget.systray())
end
local battery = require("battery")
right_layout:add(mytextclock)
right_layout:add(battery)
right_layout:add(mylayoutbox[s])
-- Now bring it all together (with the tasklist in the middle)
local layout = wibox.layout.align.horizontal()
layout:set_left(left_layout)
@@ -267,7 +274,13 @@ globalkeys = awful.util.table.join(
awful.util.getdir("cache") .. "/history_eval")
end),
-- Menubar
awful.key({ modkey }, "p", function() menubar.show() end)
awful.key({ modkey }, "p", function() menubar.show() end),
-- Backlight control
awful.key({ }, "XF86MonBrightnessDown", function ()
awful.util.spawn("xbacklight -dec 15") end),
awful.key({ }, "XF86MonBrightnessUp", function ()
awful.util.spawn("xbacklight -inc 15") end)
)
clientkeys = awful.util.table.join(