diff options
| author | iamcheeseman <[email protected]> | 2026-03-04 10:18:06 -0500 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-03-04 10:18:06 -0500 |
| commit | c7167e481507435dc2354f2155720573053cfc79 (patch) | |
| tree | b9823064cbb6b914a241fb87f2bc155194755095 /.local/bin/media_notif.sh | |
| parent | dea74983f6d1581c782b0caa21009fd8474295ec (diff) | |
add media notifications
Diffstat (limited to '.local/bin/media_notif.sh')
| -rwxr-xr-x | .local/bin/media_notif.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.local/bin/media_notif.sh b/.local/bin/media_notif.sh new file mode 100755 index 0000000..8bc3764 --- /dev/null +++ b/.local/bin/media_notif.sh @@ -0,0 +1,8 @@ +playerctl -F metadata -f "{{lc(title)}} - {{lc(artist)}}" \ +| while read -r line; do + sleep 1 + md=`playerctl metadata | grep "mpris:artUrl"` + arturl=`echo $md | awk -v FS="file://" '{print $2}'` + echo $arturl + notify-send -u low -a "media" -i "$arturl" "$line" +done |
