eww changes
This commit is contained in:
14
eww/scripts/album_art.sh
Executable file
14
eww/scripts/album_art.sh
Executable 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
BIN
eww/scripts/cavajson
Executable file
Binary file not shown.
21
eww/scripts/custom_configs/cava
Normal file
21
eww/scripts/custom_configs/cava
Normal 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
|
Reference in New Issue
Block a user