From 87b153decd41677a05a515bef9ffcabfe2a90ff7 Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Sun, 24 Mar 2019 17:59:25 +0100 Subject: awesome: use calendar widget instead of external script --- awesome/rc.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'awesome') 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"}), -- cgit v1.2.3