Forum › Forums › Orphaned Posts › antiX-17 “Heather Heyer, Helen Keller” › I would like to make a keyboard shortcut for xkill in fluxbox–how? › Reply To: I would like to make a keyboard shortcut for xkill in fluxbox–how?
cd ~/.fluxbox
(or browse to that directory using a file manager)
open this file in a text editor
~/.fluxbox/keys
Find in file: “xkill” (noquotes)
You’ll discover that a keybind (aka keyboard shortcut) for xkill already exists,
but the line declaring its assignment is outcommented by default (prefixed with an exclamation point).
!Control Mod1 x: ExecCommand xkill
If you remove the exclamation point and Save the file…
…it will take effect immediately after you
1) visit the menu and click “Fluxbox Settings }} Reconfigure”
or
2) logout and login
or
3) initiate a new session via “Menu }} Other Desktops }} *fluxbox*”
(fluxbox, “fluxbox-min”, or “rox-fluxbox”, or “Space-Fluxbox”)
if you JUST remove the exclamation point, the default assignment is
Ctrl+Alt x
You can reassign it to any combination you wish ~~ but scan the other definitions within the keys file to ensure you choose a combi which is not already assigned to something else. (If you neglect to do so, and 2+ lines assign the same combo, the last-read aka bottommost line “wins” takes precedence.)
I’d ideally like to map a shortcut for xkill to the Meta/Windows and Plus keys
### TIP: Mod1 is the Alt key on the PC keyboard and Mod4 is usually a key branded with a familiar company logo.
### You can get a list of possible modifiers by calling “xmodmap -pm”
### (it will also show you to which keys the modifiers are mapped)
### EXAMPLE OUTPUT:
### demo@antix1:/tmp# xmodmap -pm
### xmodmap: up to 4 keys per modifier, (keycodes in parentheses):
###
### shift Shift_L (0x32), Shift_R (0x3e)
### lock Caps_Lock (0x42)
### control Control_L (0x25), Control_R (0x69)
### mod1 Alt_L (0x40), Alt_R (0x6c), Meta_L (0xcd)
### mod2 Num_Lock (0x4d)
### mod3
### mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L (0xcf)
### mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb)
###
##### MOUSE BUTTON ASSIGNMENTS MAY DIFFER ACROSS SYSTEMS.
##### CAN TEST YOURS BY RUNNING THE COMMAND
##### xev |grep button
##### ON MY SYSTEM, USING A GENERIC 3-BUTTON MOUSE:
##### leftMouseClick = Mouse1
##### rightMouseClick = Mouse3
##### middle(wheel)Click = Mouse2
##### wheel rockForward = Mouse4
##### wheel rockBack = Mouse5
alternatively:
Control Center }} Edit Fluxbox Settings
^—– this will open the keys file + several other related files in a tabbed editor.
For more info, see http://download.tuxfamily.org/antix/docs-antiX-17/FAQ/fluxbox.html
and
commandline: apropos fluxbox
____________________________
I am not a bot