#!/bin/sh # Toggle and report status of shuffle mode in cmus cmus-remote --shuffle status=$(cmus-remote -Q | grep shuffle | cut -d ' ' -f 3) dunstctl close-all [ "$status" = "true" ] && notify-send "Shuffle on" || notify-send "Shuffle off"