misc: more configuration on looks and slight improvements

This commit is contained in:
Fabio Lenherr 2022-09-02 01:29:10 +02:00
parent 89af4e3b36
commit 07b5b7dc15
No known key found for this signature in database
GPG key ID: 868FFD689D878939
5 changed files with 101 additions and 72 deletions

View file

@ -1,5 +1,6 @@
#!/bin/sh
calendar() {
LOCK_FILE="$HOME/.cache/eww-calendar.lock"
EWW_BIN="$HOME/.local/bin/eww"
@ -80,13 +81,35 @@ else
fi
}
hoverGet() {
NAME="$1"
EWW_BIN="$HOME/.local/bin/eww"
STORE="$HOME/.cache/cache.txt"
if [[ -f "$STORE" ]]; then
rm "$STORE"
${EWW_BIN} -c $HOME/.config/eww close "$NAME"
fi
}
hoverCreate() {
STORE="$HOME/.cache/cache.txt"
if [[ ! -f "$STORE" ]]; then
touch "$STORE"
else
echo "failure!"
fi
}
if [ "$1" = "calendar" ]; then
calendar
calendar
elif [ "$1" = "system" ]; then
system
system
#elif [ "$1" = "music" ]; then
#music
elif [ "$1" = "audio" ]; then
audio
audio
elif [ "$1" = "hoverGet" ]; then
hoverGet "$2"
elif [ "$1" = "hoverCreate" ]; then
hoverCreate
fi