new: x11 keyboard configs
Xmodmap xbindkeysrc xcape
This commit is contained in:
parent
5984d43f4b
commit
cc8a8cf3c1
3 changed files with 115 additions and 0 deletions
33
dotfiles/x11/Xmodmap
Normal file
33
dotfiles/x11/Xmodmap
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
! remove modifier keys
|
||||||
|
!clear mod5
|
||||||
|
|
||||||
|
|
||||||
|
! ZenkakuHankaku to Escape
|
||||||
|
keycode 49 = Escape NoSymbol Escape
|
||||||
|
|
||||||
|
clear mod3
|
||||||
|
clear mod4
|
||||||
|
clear mod5
|
||||||
|
keycode 102 = Mode_switch
|
||||||
|
keycode 100 = Hyper_L
|
||||||
|
add mod3 = Mode_switch
|
||||||
|
add mod4 = Super_L Super_R Super_L
|
||||||
|
add mod5 = Hyper_L
|
||||||
|
|
||||||
|
! hjkl for scroll keys
|
||||||
|
! keycode 43 = h H h H
|
||||||
|
! keycode 44 = j J j J
|
||||||
|
! keycode 45 = k K k K
|
||||||
|
! keycode 46 = l L l L
|
||||||
|
keycode 38 = a A Home NoSymbol
|
||||||
|
keycode 39 = s S Prior NoSymbol
|
||||||
|
keycode 40 = d D Next NoSymbol
|
||||||
|
keycode 41 = f F End NoSymbol
|
||||||
|
keycode 43 = h H Left NoSymbol
|
||||||
|
keycode 44 = j J Down NoSymbol
|
||||||
|
keycode 45 = k K Up NoSymbol
|
||||||
|
keycode 46 = l L Right NoSymbol
|
||||||
|
|
||||||
|
keycode 255 = Muhenkan
|
||||||
|
keycode 254 = Henkan
|
||||||
|
|
79
dotfiles/x11/xbindkeysrc
Normal file
79
dotfiles/x11/xbindkeysrc
Normal file
|
@ -0,0 +1,79 @@
|
||||||
|
# For the benefit of emacs users: -*- shell-script -*-
|
||||||
|
###########################
|
||||||
|
# xbindkeys configuration #
|
||||||
|
###########################
|
||||||
|
#
|
||||||
|
# Version: 1.8.7
|
||||||
|
#
|
||||||
|
# If you edit this file, do not forget to uncomment any lines
|
||||||
|
# that you change.
|
||||||
|
# The pound(#) symbol may be used anywhere for comments.
|
||||||
|
#
|
||||||
|
# To specify a key, you can use 'xbindkeys --key' or
|
||||||
|
# 'xbindkeys --multikey' and put one of the two lines in this file.
|
||||||
|
#
|
||||||
|
# The format of a command line is:
|
||||||
|
# "command to start"
|
||||||
|
# associated key
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# A list of keys is in /usr/include/X11/keysym.h and in
|
||||||
|
# /usr/include/X11/keysymdef.h
|
||||||
|
# The XK_ is not needed.
|
||||||
|
#
|
||||||
|
# List of modifier:
|
||||||
|
# Release, Control, Shift, Mod1 (Alt), Mod2 (NumLock),
|
||||||
|
# Mod3 (CapsLock), Mod4, Mod5 (Scroll).
|
||||||
|
#
|
||||||
|
|
||||||
|
# The release modifier is not a standard X modifier, but you can
|
||||||
|
# use it if you want to catch release events instead of press events
|
||||||
|
|
||||||
|
# By defaults, xbindkeys does not pay attention with the modifiers
|
||||||
|
# NumLock, CapsLock and ScrollLock.
|
||||||
|
# Uncomment the lines above if you want to pay attention to them.
|
||||||
|
|
||||||
|
#keystate_numlock = enable
|
||||||
|
#keystate_capslock = enable
|
||||||
|
#keystate_scrolllock= enable
|
||||||
|
|
||||||
|
# Examples of commands:
|
||||||
|
|
||||||
|
#"xbindkeys_show"
|
||||||
|
# control+shift + q
|
||||||
|
|
||||||
|
# set directly keycode (here control + f with my keyboard)
|
||||||
|
#"xterm"
|
||||||
|
# c:41 + m:0x4
|
||||||
|
|
||||||
|
# specify a mouse button
|
||||||
|
#"xterm"
|
||||||
|
# control + b:2
|
||||||
|
|
||||||
|
#"xterm -geom 50x20+20+20"
|
||||||
|
# Shift+Mod2+alt + s
|
||||||
|
#
|
||||||
|
## set directly keycode (here control+alt+mod2 + f with my keyboard)
|
||||||
|
#"xterm"
|
||||||
|
# alt + c:0x29 + m:4 + mod2
|
||||||
|
#
|
||||||
|
## Control+Shift+a release event starts rxvt
|
||||||
|
#"rxvt"
|
||||||
|
# release+control+shift + a
|
||||||
|
#
|
||||||
|
## Control + mouse button 2 release event starts rxvt
|
||||||
|
#"rxvt"
|
||||||
|
# Control + b:2 + Release
|
||||||
|
|
||||||
|
##################################
|
||||||
|
# End of xbindkeys configuration #
|
||||||
|
##################################
|
||||||
|
|
||||||
|
#"xvkbd -text "\{+Control_L}\{+Shift_L}\{Tab}\{-Shift_L}\{-Control_L}""
|
||||||
|
"xvkbd -text "\{+Control_L}\{Prior}\{-Control_L}""
|
||||||
|
b:6
|
||||||
|
|
||||||
|
#"xvkbd -text "\{+Control_L}\{Tab}\{-Control_L}""
|
||||||
|
"xvkbd -text "\{+Control_L}\{Next}\{-Control_L}""
|
||||||
|
b:7
|
||||||
|
|
3
dotfiles/x11/xcape_init.sh
Executable file
3
dotfiles/x11/xcape_init.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
xcape -e "Hyper_L=Henkan"
|
||||||
|
xcape -e "Mode_switch=Muhenkan"
|
||||||
|
|
Loading…
Reference in a new issue