citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

spotify-service (252B)


      1 #!/usr/bin/env bash
      2 options=$(dbus-send --print-reply --dest=org.freedesktop.DBus  /org/freedesktop/DBus org.freedesktop.DBus.ListNames \
      3     | grep spotify \
      4     | sedcut '"([^"]+)"')
      5 
      6 grep 'spotify$' <<<"$options" || grep -v 'spotify$' <<<"$options"