no border for termite

This commit is contained in:
2019-01-15 21:56:16 +01:00
parent 6b730ce230
commit 4d731c3564
6 changed files with 132 additions and 3 deletions

View File

@@ -0,0 +1,27 @@
#!/bin/sh
YAD_WIDTH=200
YAD_HEIGHT=200
BOTTOM=false
DATE="$(date +"%a %d.%m.%y")$(date +"%H:%M")"
case "$1" in
--popup)
eval "$(xdotool getmouselocation --shell)"
if [ $BOTTOM = true ]; then
: $(( pos_y = Y - YAD_HEIGHT - 20 ))
: $(( pos_x = X - (YAD_WIDTH / 2) ))
else
: $(( pos_y = Y + 20 ))
: $(( pos_x = X - (YAD_WIDTH / 2) ))
fi
yad --calendar --undecorated --fixed --close-on-unfocus --no-buttons \
--width=$YAD_WIDTH --height=$YAD_HEIGHT --posx=$pos_x --posy=$pos_y \
> /dev/null
;;
*)
echo "$DATE"
;;
esac