You are not logged in.
Hey there!
I have a weird problem...
I'm using BL on a Thinkpad e14 and I'm trying to map my media keys to start/stop my player and change track.
My Thinkpad doesn't have XF86Audio* keys, so I always used XF86Messenger to go to previous song, XF86Go to start/stop and Cancel to go to next song. They are on F9, 10 and 11 respectively and I never used them anyway so it's useful for me.
So my .xbindkeysrc
looks like this:
## MULTIMEDIA
"playerctl play-pause"
XF86Go
"playerctl previous"
XF86Messenger
"playerctl next"
Cancel
Now the weird thing is that, while the first two work flawlessly, the third command just doesn't work.
I tried to replicate the same in bl-rc.xml
and I have the same problem, so it's not a problem related to xbindkeys
.
This has always worked on every distro and setup I have used in the past, but it seems like on BL the Cancel key is used for something else.
It seems to do absolutely nothing, but on Geany
pressing Shift + Cancel selects all text from my cursor until the end of file. So it is bind to something, but Cancel without Shift just do nothing and I haven't be able to do anything else on other programs with this key.
Do you have any idea how can I find out what is it mapped to, and how to map it to do what I want it to do?
Note that I'm really sure that the key name is right (xbindkeys --key and xev confirm it) and I have already tried to use the keycode instead of the name. Nothing changes.
I'm 100% sure that the command I'm trying to bind it is right too, since right now I have temporarily replaced it with
"playerctl next"
XF86Display
and it's working without problems.
The issue is with that Cancel key (F11), somehow...it's just mapped to something else.
Any help would be hugely appreciated!
Offline
On my system it toggles the active window full screen, & I haven't touched any key-binds since installing, I'd have to look up how to change it & you've probably got more idea than me.
I hope the hint about what it currently does helps though. Must look into changing that myself sometime, since in my case the keycap indicates it should lock the computer, & I kinda like those things to match.
Anyhow, that's what it's currently mapped to (apparently, I just hit it to find out).
Unfortunately I don't see any of the F(x) keys listed in the keybinds file accessible from the menu, despite more than one being bound to things.
No idea where to edit those absent from the list, or not clearly stated (sorry).
Last edited by Bearded_Blunder (2024-06-08 02:21:03)
Blessed is he who expecteth nothing, for he shall not be disappointed...
If there's an obscure or silly way to break it, but you don't know what.. Just ask me
Offline
Yes, that's F11.
It does it on my system too, but I'm talking about the function key.
On my thinkpad F11 has the symbol of a telephone, that's what I'm trying to assign, but it's mapped to something else...
Offline
...it seems like on BL the Cancel key is used for something else.
Not guilty! All the BL keybinds are in .xbindkeysrc and bl-rc.xml, and you've already checked over those. Individual apps like geany have their own keybinds, so make sure everything that might possibly be interfering is shut down when testing.
I don't even have a Cancel key on my keyboard: F11 has a play/pause symbol and xev reports:
keycode 95 (keysym 0xffc8, F11)
On my system it toggles the active window full screen
That seems to be only certain apps though. I've identified it with Firefox and Geany so far, but not with lxterminal or Thunar.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
On my system it toggles the active window full screen
That seems to be only certain apps though. I've identified it with Firefox and Geany so far, but not with x-terminal or Thunar.
I only noticed it happening with x-terminal-emulator (About all I tried with, doesn't happen with geany for me now I double check. that being my most used app, more or less permanently open). My problem being I don't really know where to change that.
Apparently given our relative experience, it's not even consistent.
Blessed is he who expecteth nothing, for he shall not be disappointed...
If there's an obscure or silly way to break it, but you don't know what.. Just ask me
Offline
I only noticed it happening with x-terminal-emulator (About all I tried with, doesn't happen with geany for me now I double check. that being my most used app, more or less permanently open). My problem being I don't really know where to change that.
Apparently given our relative experience, it's not even consistent.
Hmm... Yes re-checked, for me it's definitely Firefox, Ristretto, Mousepad, Catfish & Geany (looks like a lot of the Gnomier apps) which fullscreen with F11, but not lxterminal, urxvt, Thunar or Catfish. Thunderbird does something quite different...
Anyway, this is clearly not a system-wide setting but something that individual apps are doing.
Last edited by johnraff (2024-06-08 04:40:17)
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
Yeah, it seems a bit mysterious overall but I'll keep searching, in the meantime I'm just using another key
Thank you very much johnraff and Bearded_Blunder!!
Offline
So, just to update in case anyone is searching for the solution, I managed to make it work!
I'm still not exactly sure what the problem was, but I solved by setting
"playerctl next"
XF86AudioNext
in .xbindkeysrc
, and, since I don't actually have that key on my keyboard, I found the keybind of my Cancel key (which was 231) with xev
, and then I wrote this in .xmodmaprc
:
keycode 231 = XF86AudioNext
Now, adding xmodmap ~/.xmodmaprc
to my autostart it works perfectly!
Thanks again for your help.
Offline
^thanks for the update.
It might help other people in similar situations.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline