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,7 +1,7 @@
#!/bin/sh
currentName() {
win=$(hyprctl activewindow | grep class | awk -F ':' '{print $2}' | tr -d ' ')
echo "(box :class \"module\" :space-evenly \"false\" :orientation \"h\" :spacing \"3\" (label :text \"$win\" :class \"clock_minute_class\"))"
echo "(box :class \"module_app_text\" :space-evenly \"false\" :orientation \"h\" :spacing \"3\" (label :text \"$win\"))"
}
currentName
tail -f /tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/hyprland.log | grep -E --line-buffered "focus to surface" | while read -r; do

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