Open boardfish opened 3 years ago
Try using it as a keychain / key chord. The difference between a usual hot keys use and keychains is usually hot keys are pressed together, where as with key chains you press one key let go of it then press the other. May be see if XF86Calculator works with the other keys in a key chain
XF86Calculator; XF86AudioMute
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
I can confirm that works. I still think it'd be nice to be able to use other keys as modifiers so that it's one motion instead of two, though.
If your keyboard layout does not use AltGr
, you can make your calculator key send ISO_Level3_Shift
, and use it as mod5
in sxhkdrc
(if it doesn't work, check xmodmap -pm
)
I like this as a solution. Trying it now.
Not sure why, but this didn't work out for me. I also tried following the advice here to make sure XFB86Calculator got mapped to mod5. I might give this another shot when I'm feeling a bit more focused.
For anyone else that finds this issue, Vftdan's proposal worked for me. I wanted to use the Pause
key in my keyboard as a modifier. Here's what I did:
~/.xmodmap
this:
add mod5 = Pause
~/.xinitrc
, make sure the new xmodmap file is being loaded
[[ -f ~/.xmodmap ]] && xmodmap ~/.xmodmap
Note that I'm using xinit
to start xorg. This may not work in other setups
After these steps, I can now use mod5
as a modifier in my sxhkdrc file. Example:
alt + shift + mod5 + n
bspc node --to-monitor next --follow
My keyboard's got an
XF86Calculator
key, which I'd rather not use for its intended purpose. I want to use it as a modifier instead to grant me another layer of actions. Is there a way to either remap it to an existing modifier throughsxhkd
, or use it as a modifier so that it can be used in combination with other keys, like this: