eww: better lyrics
This commit is contained in:
@@ -10,8 +10,11 @@ if [ -z "$LYRICS" ] && [ -z "$LYRICS_SINGLE" ]; then
|
||||
# only lyrics is open
|
||||
elif [ -n "$LYRICS" ] && [ -z "$LYRICS_SINGLE" ]; then
|
||||
eww close lyrics
|
||||
sleep 0.5
|
||||
eww open lyrics-single
|
||||
# if waybar is running, open lyrics-single
|
||||
if pgrep -x "waybar" > /dev/null; then
|
||||
sleep 0.5
|
||||
eww open lyrics-single
|
||||
fi
|
||||
|
||||
# only lyrics-single is open
|
||||
elif [ -z "$LYRICS" ] && [ -n "$LYRICS_SINGLE" ]; then
|
||||
|
||||
@@ -7,6 +7,11 @@ function close() {
|
||||
# Wait until the processes have been shut down
|
||||
while pgrep -x waybar >/dev/null; do sleep 1; done
|
||||
fi
|
||||
|
||||
# Also close the lyrics widget if open
|
||||
if eww active-windows | grep -q "lyrics-single"; then
|
||||
eww close lyrics-single
|
||||
fi
|
||||
}
|
||||
|
||||
function open() {
|
||||
|
||||
Reference in New Issue
Block a user