From e60581469dbbb7a8d0a8400d7fc8474826435a0e Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado <55825613+luevano@users.noreply.github.com> Date: Wed, 30 Dec 2020 14:58:02 -0700 Subject: Small tweaks and forgot to add new files --- .local/bin/show_calendar | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 .local/bin/show_calendar (limited to '.local/bin/show_calendar') 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)) -- cgit v1.2.3-54-g00ecf