summaryrefslogtreecommitdiff
path: root/awesome/rc.lua
diff options
context:
space:
mode:
authorReiner Herrmann <reiner@reiner-h.de>2019-03-24 17:59:25 +0100
committerReiner Herrmann <reiner@reiner-h.de>2019-03-24 17:59:25 +0100
commit87b153decd41677a05a515bef9ffcabfe2a90ff7 (patch)
treedd0aadb41296edcbdd73a3ff2dae4d789d5a9bc9 /awesome/rc.lua
parent514511f264603a01ec126ce7af40d0fc744f9659 (diff)
awesome: use calendar widget instead of external script
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"}),