summaryrefslogtreecommitdiff
path: root/calendar-widget
diff options
context:
space:
mode:
authorA.J. Palmer <akadaedalus@gmail.com>2022-05-24 08:49:32 -0600
committerA.J. Palmer <akadaedalus@gmail.com>2022-05-24 08:49:32 -0600
commit7702f00efad8c1bcfa34b9e5cce4e99f3ac8bf1a (patch)
tree57e29f48d4b745837f167f5345bd1b86271b5639 /calendar-widget
parent8439ca7930e73e17746a1d6f0610417e8a42865f (diff)
add left positions for calendar
Diffstat (limited to 'calendar-widget')
-rw-r--r--calendar-widget/calendar.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/calendar-widget/calendar.lua b/calendar-widget/calendar.lua
index 4bb637f..bc4a877 100644
--- a/calendar-widget/calendar.lua
+++ b/calendar-widget/calendar.lua
@@ -232,9 +232,14 @@ local function worker(user_args)
awful.placement.top(popup, { margins = { top = 30 }, parent = awful.screen.focused() })
elseif placement == 'top_right' then
awful.placement.top_right(popup, { margins = { top = 30, right = 10}, parent = awful.screen.focused() })
+ elseif placement == 'top_left' then
+ awful.placement.top_left(popup, { margins = { top = 30, left = 10}, parent = awful.screen.focused() })
elseif placement == 'bottom_right' then
awful.placement.bottom_right(popup, { margins = { bottom = 30, right = 10},
parent = awful.screen.focused() })
+ elseif placement == 'bottom_left' then
+ awful.placement.bottom_left(popup, { margins = { bottom = 30, left = 10},
+ parent = awful.screen.focused() })
else
awful.placement.top(popup, { margins = { top = 30 }, parent = awful.screen.focused() })
end