z_mirror/dotfiles

git clone https://git.raiguard.me/z_mirror/dotfiles

Caleb HeuerShebangs are goodb488a94

tangere
318 B9 linesraw
1#!/bin/sh
2
3playerctl $1
4sleep 0.1
5title=$(playerctl metadata | awk '/:title/ {print substr($0, index($0,$3))}')
6if [ -n "$title" ]; then
7    artist=$(playerctl metadata | awk '/:artist/ {print substr($0, index($0,$3))}')
8    notify-send -u low -t 3000 -h string:x-dunst-stack-tag:media -c system "$title" "$artist"
9fi