-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for bluetooth controls #948
Comments
|
cmus is recognized a media player by linux, so u just need to call it through a media controller program to get it to do things. so for example |
|
@grenzionky I'm probably missing something, but trying what you are mentioning only returns I've seen the project and it looks like it should work as you said (currently running cmus v2.8.0) is there something else I need to make this work? Thanks |
|
u need to have cmus open when u do that. |
|
Yeah, I though about that, with cmus open playertctl list returns the following: no cmus listed 😞 |
|
|
|
No idea if that's enabled, I'm using cmus installed from ubuntu repository (tbh, I've never build it from source) I'll try as you say though I would like to know if there is a way to enable MPRIS without rebuilding :/ Thanks a lot for your help |
|
Default
Fails with the following error: Trying to install libelogind try tries to remove 83 packages with a scary warning message. 😕 |
|
https://www.freedesktop.org/wiki/Specifications/mpris-spec/:
Yeah, it all makes sense if you don't use As far as I can tell you, I fear your only way is to use Maybe I'm totally wrong but I guess that your headset sends pause/prev/next keystrokes, so you should bind the appropriate |
|
@zsugabubus that actually sounds like a reasonable workaround, is there any built-in / recommended way of doing this binding with cmus or just with the default OS binding should be enough? |
|
The only choice remained is |
which program can intercept the keystrokes of a bluetooth device? For example in Ubuntu? |
|
Search for "ubuntu keybindings". You should be able to create custom bindings in the keyboard settings. |
|
sxhkd should work no matter the desktop environment. its what i use for all my keyboard shortcuts |
|
Although I cannot exactly replicate my ideal behavior, using sxhkd with the following configuration: Althoug I'm not sure how to do it when double-clicking and toggle (pause-play) |
Which part do you need help exactly? You can use |
|
@zsugabubus The exact behaviour I want is:
My problem is, first detecting the double click and second having also a single click. Being naive I tried with |
|
you can use |
|
I'm a bit bored, so just in case the headset sends the same keys... try this: #!/bin/bash
PIDFILE=${TMP:-/tmp}/click.pid
INTERVAL=.3
if [ -f "$PIDFILE" ]; then
pkill -F "$PIDFILE" -USR1 && exit
fi
echo >"$PIDFILE" $$
clicks=1
trap 'clicks=$((clicks+1)); echo Click!' USR1
while :; do
sleep $INTERVAL &
wait && break
done
rm -f "$PIDFILE"
echo Clicks: $clicks
case $clicks in
1) cmus-remote --pause ;;
2) cmus-remote --next ;;
*) cmus-remote ... ;;
esac |
|
I also had this problem with
Also, there should be a list of dependencies in README, it's not helpful without them. |
Some GUI music players (such as rythmbox) support using Bluetooth headset buttons for play/pause/next (1 click play/pause, 2 clicks for next),
I was wondering if there is a way (or hack) to achieve this with cmus or cmus-remote
The text was updated successfully, but these errors were encountered: