Skip to content

Instantly share code, notes, and snippets.

@larrasket
Last active November 3, 2022 03:10
Show Gist options
  • Save larrasket/98d6a6b7ce18db9d6d982aeb80a958d2 to your computer and use it in GitHub Desktop.
Save larrasket/98d6a6b7ce18db9d6d982aeb80a958d2 to your computer and use it in GitHub Desktop.
Script to open cmus and add directories remotely using cmus-remote
[Desktop Entry]
Name=cmus
Comment=open cmus in kitty
Exec=/bin/sh -c "$HOME/configs/cmus.sh"
Icon=CMakeSetup
Terminal=false
Type=Application
Categories=Music;
#!/bin/sh
# This what I call a real race condition :D
kitty -e 'cmus' &
sleep 3
cmus-remote -C 'add -q ~/music/spotify' &
sleep 3
cmus-remote -C 'rand' &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment