Last active
November 3, 2022 03:10
-
-
Save larrasket/98d6a6b7ce18db9d6d982aeb80a958d2 to your computer and use it in GitHub Desktop.
Script to open cmus and add directories remotely using cmus-remote
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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