maiki is a user on mastodon.sdf.org. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.

cmus, where have you been all my life.

@slacka Oh yeah, good stuff! I was just looking up cmus-remote commands, trying to get them mapped to my media keys. I already use the bash script that runs it in screen. ^_^

@maiki media keys on your phone? if you're talking about your keyboard, you don't need remote commands, you can over ride the keybindings on tab 7. I'm sure you know that.

@slacka for the world of me, I can not figure out what you are talking about. ^_^

I *was* referring to the keyboard media keys (on a laptop). What is "tab 7"?

@maiki that's the other thing i though you meant. I called it tab 7, but i just meant screen 7 of cmus. ie: when you press 7.

@slacka Ah, okay. I run my instance in a screen session, so I need cmus-remote to send the play commands while it is tucked away. ^_^

@maiki oh i see. as an alternative you could ssh in first and connect to the session. But i get that you're probably trying to avoid that.

maiki @maiki

@slacka hmmm. cmus-remote doesn't have to be, um, remote. You can use it to control the instance on your local machine.

The in my path is the following script:

#!/bin/bash
if ! screen -r -D cmus >/dev/null ; then
screen -S cmus /usr/bin/cmus "$@"
fi

All it does is check for a screen session, and if it doesn't find it create a new one and launch cmus. Then when I quit it detaches the screen session.

So to skip a track, I need to open cmus again. Media keys would help. ^_^

· Web · 0 · 0

@slacka this isn't normally a problem, as I listen to excellent music, and rarely need to skip a track.

It helps that approximately half of the tracks belong to a OST or radio drama disc. I know I am never more than 5 minutes away from Megumi Hayashibara singing about destroying gods and eating huge meals between trips to the looting fields... 😳

@maiki i get it ya. i've never needed to save screen real estate that bad but i see how it could be nice.