summaryrefslogtreecommitdiff
path: root/.local/bin/show_calendar
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/show_calendar')
-rwxr-xr-x.local/bin/show_calendar10
1 files changed, 10 insertions, 0 deletions
diff --git a/.local/bin/show_calendar b/.local/bin/show_calendar
new file mode 100755
index 0000000..19dc316
--- /dev/null
+++ b/.local/bin/show_calendar
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+mouse_position="$(xdotool getmouselocation | cut -d' ' -f-2 | sed -e 's/x://' -e 's/y://')"
+w=200
+h=200
+
+x=$(echo $mouse_position | cut -d' ' -f1)
+y=$(echo $mouse_position | cut -d' ' -f2)
+
+yad --calendar --close-on-unfocus --no-buttons --undecorated --fixed --geometry=$w\x$h+$(($x - $w/2 - 30))+$(($y + 30))