summaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2020-12-30 14:58:02 -0700
committerDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2020-12-30 14:58:02 -0700
commite60581469dbbb7a8d0a8400d7fc8474826435a0e (patch)
treeb76e272c82dcba68b126551dbc513fc7d5d82bce /.local
parent8bfdf665074b62849f996c6d5ddc010e8565d815 (diff)
Small tweaks and forgot to add new files
Diffstat (limited to '.local')
-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))