summaryrefslogtreecommitdiff
path: root/awesome/rc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'awesome/rc.lua')
-rw-r--r--awesome/rc.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/awesome/rc.lua b/awesome/rc.lua
index 8d80fe9..6b0a66a 100644
--- a/awesome/rc.lua
+++ b/awesome/rc.lua
@@ -124,11 +124,14 @@ menubar.utils.terminal = terminal -- Set the terminal for applications that requ
-- }}}
-- Keyboard map indicator and switcher
-mykeyboardlayout = awful.widget.keyboardlayout()
+--mykeyboardlayout = awful.widget.keyboardlayout()
-- {{{ Wibar
-- Create a textclock widget
mytextclock = wibox.widget.textclock(' %H:%M ')
+mycalendar = awful.widget.calendar_popup.month({ position = 'tr', spacing = 1, })
+mycalendar:attach(mytextclock)
+
function bat_string(widget, state)
local charge = ' Bat:' .. state[2] .. '% '
@@ -323,7 +326,7 @@ globalkeys = gears.table.join(
-- Standard program
awful.key({ modkey, }, "Return", function () awful.spawn(terminal) end,
{description = "open a terminal", group = "launcher"}),
- awful.key({ modkey, }, "c", function () awful.spawn("/home/reiner/Apps/bin/osdcal.sh") end,
+ awful.key({ modkey, }, "c", function () mycalendar:toggle() end,
{description = "display calendar", group = "awesome"}),
awful.key({ modkey, "Mod1" }, "l", nil, function () awful.spawn("xscreensaver-command -lock") end,
{description = "lock the screen", group = "awesome"}),