Changed calendar to firefox.
This commit is contained in:
parent
11262b9562
commit
27703c6949
@ -1,7 +1,5 @@
|
|||||||
#! /bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
WIDTH=${WIDTH:-200}
|
|
||||||
HEIGHT=${HEIGHT:-200}
|
|
||||||
DATEFMT=${DATEFMT:-"+%a %d.%m.%Y %H:%M:%S"}
|
DATEFMT=${DATEFMT:-"+%a %d.%m.%Y %H:%M:%S"}
|
||||||
SHORTFMT=${SHORTFMT:-"+%H:%M:%S"}
|
SHORTFMT=${SHORTFMT:-"+%H:%M:%S"}
|
||||||
|
|
||||||
@ -24,17 +22,10 @@ done
|
|||||||
|
|
||||||
case "$BLOCK_BUTTON" in
|
case "$BLOCK_BUTTON" in
|
||||||
1|2|3)
|
1|2|3)
|
||||||
|
# Focus Thunderbird and open calendar
|
||||||
# the position of the upper left corner of the popup
|
i3-msg -q [class="Thunderbird" instance="Mail"] focus; \
|
||||||
posX=$(($BLOCK_X - $WIDTH / 2))
|
sleep 0.005; \
|
||||||
posY=$(($BLOCK_Y - $HEIGHT))
|
xdotool key --clearmodifiers --delay 5 ctrl+shift+c
|
||||||
|
|
||||||
i3-msg -q "exec yad --calendar \
|
|
||||||
--width=$WIDTH --height=$HEIGHT \
|
|
||||||
--undecorated --fixed \
|
|
||||||
--close-on-unfocus --no-buttons \
|
|
||||||
--posx=$posX --posy=$posY \
|
|
||||||
> /dev/null"
|
|
||||||
esac
|
esac
|
||||||
echo "$LABEL$(date "$DATEFMT")"
|
echo "$LABEL$(date "$DATEFMT")"
|
||||||
echo "$LABEL$(date "$SHORTFMT")"
|
echo "$LABEL$(date "$SHORTFMT")"
|
||||||
|
@ -13,7 +13,7 @@ separator_block_width=15
|
|||||||
[volume]
|
[volume]
|
||||||
command=./volume
|
command=./volume
|
||||||
LABEL=
|
LABEL=
|
||||||
interval=once
|
interval=10
|
||||||
signal=10
|
signal=10
|
||||||
|
|
||||||
[calendar]
|
[calendar]
|
||||||
|
@ -83,7 +83,7 @@ format() {
|
|||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
|
|
||||||
case $BLOCK_BUTTON in
|
case $BLOCK_BUTTON in
|
||||||
3) pavucontrol ;; # right click, open gui
|
1|2|3) pavucontrol ;; # right click, open gui
|
||||||
4) amixer $AMIXER_PARAMS -q -D $MIXER sset $SCONTROL $(capability) ${STEP}+ unmute ;; # scroll up, increase
|
4) amixer $AMIXER_PARAMS -q -D $MIXER sset $SCONTROL $(capability) ${STEP}+ unmute ;; # scroll up, increase
|
||||||
5) amixer $AMIXER_PARAMS -q -D $MIXER sset $SCONTROL $(capability) ${STEP}- unmute ;; # scroll down, decrease
|
5) amixer $AMIXER_PARAMS -q -D $MIXER sset $SCONTROL $(capability) ${STEP}- unmute ;; # scroll down, decrease
|
||||||
esac
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user