diff options
| author | Alec Goncharow <alec@goncharow.dev> | 2022-12-04 18:23:46 -0600 |
|---|---|---|
| committer | Alec Goncharow <alec@goncharow.dev> | 2022-12-04 18:23:46 -0600 |
| commit | 1ec73cc2c14d2f62c32046d9585c3a745531d37a (patch) | |
| tree | 8b9c6b2e5ba43ce1248c114758a55df9467cab64 /.config/i3blocks/scripts/calendar | |
| parent | b257edf16c9b8b14ebb542e857a29c74fea00495 (diff) | |
Fresh start
Diffstat (limited to '.config/i3blocks/scripts/calendar')
| -rwxr-xr-x | .config/i3blocks/scripts/calendar | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/.config/i3blocks/scripts/calendar b/.config/i3blocks/scripts/calendar deleted file mode 100755 index fe09fcc..0000000 --- a/.config/i3blocks/scripts/calendar +++ /dev/null @@ -1,38 +0,0 @@ -#! /bin/sh - -width=200 -height=200 -datefmt="+%a %Y-%m-%d" - -OPTIND=1 -while getopts ":f:W:H:" opt; do - case $opt in - f) datefmt="$OPTARG" ;; - W) width="$OPTARG" ;; - H) height="$OPTARG" ;; - \?) - echo "Invalid option: -$OPTARG" >&2 - exit 1 - ;; - :) - echo "Option -$OPTARG requires an argument." >&2 - exit 1 - ;; - esac -done - -case "$BLOCK_BUTTON" in - 1|2|3) - - # the position of the upper left corner of the popup - posX=$(($BLOCK_X - $width)) - posY=$(($BLOCK_Y)) #+ $height)) - - i3-msg -q "exec yad --calendar \ - --width=$width --height=$height \ - --fixed \ - --close-on-unfocus --no-buttons \ - --posx=$posX --posy=$posY \ - > /dev/null" -esac -date "$datefmt" |
