diff options
| author | benj <benj@rse8.com> | 2019-09-09 15:22:07 -0700 |
|---|---|---|
| committer | benj <benj@rse8.com> | 2019-09-09 15:22:07 -0700 |
| commit | 29358b8d15ec1ddd8d2c11e2f2f6964ec49edc52 (patch) | |
| tree | 3d5647c6708af07fd34c88054eb9f94bf28d1451 /configs/i3/i3blocks/scripts/calendar | |
| parent | dd8097084fe0d159f0a357f426fca986895e5ef4 (diff) | |
| download | mycfg-29358b8d15ec1ddd8d2c11e2f2f6964ec49edc52.tar mycfg-29358b8d15ec1ddd8d2c11e2f2f6964ec49edc52.tar.gz mycfg-29358b8d15ec1ddd8d2c11e2f2f6964ec49edc52.tar.bz2 mycfg-29358b8d15ec1ddd8d2c11e2f2f6964ec49edc52.tar.lz mycfg-29358b8d15ec1ddd8d2c11e2f2f6964ec49edc52.tar.xz mycfg-29358b8d15ec1ddd8d2c11e2f2f6964ec49edc52.tar.zst mycfg-29358b8d15ec1ddd8d2c11e2f2f6964ec49edc52.zip | |
basic i3 setup
Diffstat (limited to 'configs/i3/i3blocks/scripts/calendar')
| -rwxr-xr-x | configs/i3/i3blocks/scripts/calendar | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/configs/i3/i3blocks/scripts/calendar b/configs/i3/i3blocks/scripts/calendar deleted file mode 100755 index 7ad0363..0000000 --- a/configs/i3/i3blocks/scripts/calendar +++ /dev/null @@ -1,40 +0,0 @@ -#! /bin/sh - -WIDTH=${WIDTH:-100} -HEIGHT=${HEIGHT:-100} -DATEFMT=${DATEFMT:-"+%Y-%M-%d %H:%m"} -SHORTFMT=${SHORTFMT:-"+%H:%M:%S"} - -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 - 230 ) - $WIDTH / 2 )) - posY=$(( ( $BLOCK_Y - 200 ) - $HEIGHT )) - - i3-msg -q "exec yad --calendar \ - --width=$WIDTH --height=$HEIGHT \ - --undecorated --fixed \ - --close-on-unfocus --no-buttons \ - --posx=$posX --posy=$posY \ - > /dev/null" -esac -echo "$LABEL$(date "$DATEFMT") " -echo "$LABEL$(date "$SHORTFMT") " |
