eww changes

This commit is contained in:
2024-08-26 14:13:10 -04:00
parent 9d5276524f
commit edf927ba41
11 changed files with 185 additions and 81 deletions

14
eww/scripts/album_art.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
ART_PATH="$HOME/.config/eww/images/cover.png"
ART_FROM_SPOTIFY="$(playerctl -p %any,spotify metadata mpris:artUrl | sed -e 's/open.spotify.com/i.scdn.co/g')"
ART_FROM_BROWSER="$(playerctl -p %any,mpd,firefox,chromium,brave metadata mpris:artUrl | sed -e 's/file:\/\///g')"
if [[ $(playerctl -p spotify,%any,firefox,chromium,brave,mpd metadata mpris:artUrl) ]]; then
curl -s "$ART_FROM_SPOTIFY" --output $ART_PATH
elif [[ -n $ART_FROM_BROWSER ]]; then
cp $ART_FROM_BROWSER $ART_PATH
else
cp $HOME/.config/eww/images/default_cover.png $ART_PATH
fi

BIN
eww/scripts/cavajson Executable file

Binary file not shown.

View File

@ -0,0 +1,21 @@
[general]
mode = normal
framerate = 60
autosens = 1
bars = 20
[output]
method = raw
raw_target = /dev/stdout
data_format = ascii
[smoothing]
monstercat = 1
gravity = 1000000
noise_reduction = 34
[input]
method = pulse
source = auto