feat: differentiate between laptop and desktop

This commit is contained in:
Fabio Lenherr 2023-01-03 09:20:42 +01:00
parent 3a59d32f55
commit 5bb44594bb
50 changed files with 3432 additions and 1 deletions

10
eww_laptop/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