eww: dashboard(fake) & spotify player

This commit is contained in:
2025-06-18 13:46:51 +02:00
parent 514cbdabfc
commit 285f7a37b7
37 changed files with 1417 additions and 25 deletions

7
.scripts/toggle-player.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/env bash
if [ -n "$(eww active-windows | grep -i "player")" ]; then
eww close player
elif [ -n "$(pgrep -i "spotify")" ]; then
eww open player
fi

8
.scripts/wp-vol Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
# Get the volume level and convert it to a percentage
volume=$(wpctl get-volume @DEFAULT_AUDIO_SINK@)
volume=$(echo "$volume" | awk '{print $2}')
volume=$(echo "( $volume * 100 ) / 1" | bc)
notify-send -t 1000 -a 'wp-vol' -h int:value:$volume "Volume: ${volume}%"