refresh dotfiles

This commit is contained in:
Fabio Lenherr 2022-09-19 15:06:41 +02:00
parent f2684e3cc3
commit a54e94bbb0
No known key found for this signature in database
GPG key ID: 868FFD689D878939
26 changed files with 506 additions and 552 deletions

10
eww/scripts/spotifyd Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
#if [ "$PLAYER_EVENT" = "start" ] || [ "$PLAYER_EVENT" = "change" ];
#then
trackName=$(playerctl -p spotifyd,%any metadata title)
artistAndAlbumName=$(playerctl -p spotifyd,%any metadata --format "{{ artist }} ({{ album }})")
Thumbnail_url=$(playerctl -p spotifyd,%any metadata mpris:artUrl)
Thumbnail=$(curl "$Thumbnail_url")
notify-send -u low "$trackName" "$artistAndAlbumName " -i "$Thumbnail"
#fi