summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@users.noreply.github.com>2022-07-16 20:43:15 -0400
committerGitHub <noreply@github.com>2022-07-16 20:43:15 -0400
commit860c31c9e695bcb663f30896f22c0edb269b3dc5 (patch)
treeafcf944c5645a500719ad3071993bd07591386d2
parentc0fdb1665248f4ef255320efbf7fff0200755ba8 (diff)
parent7702f00efad8c1bcfa34b9e5cce4e99f3ac8bf1a (diff)
Merge pull request #355 from akadaedalus/master
add left positions for calendar
-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