awesomewm/rc.lua
crater2150 a43b908350 Update to Awesome 4.0
Configuration works mostly identical to previous state. Some exceptions:
- Minor changes in tag names (removed unicode symbols), as they are now
  referenced by name in the rules.
- Calendar module is not yet ported and not loaded.
- Scratch terminal on F12 key currently moves to bottom of the screen after
  first opening. Probably will be reimplemented using the new extended
  awful.spawn API.
- awsetbg util writes different wallpaperrc (preexisting wallpaperrc is ignored,
  as the filename now includes .lua)
2017-01-10 17:45:32 +01:00

76 lines
1.8 KiB
Lua

-- libraries {{{
local awful = require("awful")
require("awful.autofocus")
--require("autobeautiful")
beautiful = require("autobeautiful")
naughty = require("naughty")
conf = require("localconf")
require("errors")
inspect = require("lib.inspect")
-- }}}
-- {{{ Logging
log = require("separable.simplelog")
log.add_logger(log.loggers.stdio, log.level.DEBUG)
log.add_logger(log.loggers.naughty, log.level.WARNING)
-- }}}
-- {{{ Tags
tags = require('tags')
tags.setup()
-- }}}
-- {{{ widgets
widgets = require("widgets")
for s = 1, screen.count() do
local ltop = widgets.container(s, "left", "top")
local rtop = widgets.container(s, "right", "top")
local lbottom = widgets.container(s, "left", "bottom")
local rbottom = widgets.container(s, "right", "bottom")
local clock = widgets.add.clock("clock", ltop)
widgets.add.layout_indicator(lbottom)
widgets.add.taglist("tags", lbottom)
local mail1 = widgets.add.mail("mail_me", rbottom, { os.getenv("HOME") .. "/.maildir/me" }, "bottom_right", "me")
mail1:set_left(15)
local mail2 = widgets.add.mail("mail_uber", rbottom, { os.getenv("HOME") .. "/.maildir/uber" }, "bottom_right", "uber")
mail2:set_left(15)
widgets.add.cpu("cpu", rtop)
widgets.add.spacer(rtop)
widgets.add.battery("int", rtop, "BAT0")
widgets.add.spacer(rtop)
widgets.add.battery("ext", rtop, "BAT1")
widgets.add.spacer(rtop)
widgets.add.wifi("wlan", rtop, "wlan0")
widgets.add.spacer(rtop)
widgets.add.systray(rtop)
widgets.set_spacer_text("")
end
-- }}}
-- {{{ Key bindings
binder = require("separable.binder")
binder.modal.set_x_offset(18)
binder.add_default_bindings()
binder.add_bindings(tags.create_bindings())
binder.add_bindings(require("mybindings"))
binder.apply()
-- }}}
require("rules")
require("signals")
--
-- vim: fdm=marker
--