[Linux] Setup Hyper/Use xkb instead of xmodmap
This commit is contained in:
parent
4131761550
commit
1ddf67fca8
@ -1,5 +0,0 @@
|
|||||||
keycode 66 = Control_L
|
|
||||||
clear Lock
|
|
||||||
add Control = Control_L
|
|
||||||
keycode 117 = Caps_Lock
|
|
||||||
add Lock = Caps_Lock
|
|
11
dotfiles/lib/bin/load_xkb_map.sh
Executable file
11
dotfiles/lib/bin/load_xkb_map.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
XKBDIR="$HOME/.xkb"
|
||||||
|
XKBMAPFILE="$XKBDIR/keymap/$(hostname --fqdn)"
|
||||||
|
[[ -r "$XKBMAPFILE" ]] || XKBMAPFILE="${XKBMAPFILE%/*}/default"
|
||||||
|
|
||||||
|
echo "loading keymap from $XKBMAPFILE"
|
||||||
|
|
||||||
|
xkbcomp -I"$XKBDIR" "$XKBMAPFILE" "${DISPLAY%%.*}"
|
||||||
|
|
||||||
|
unset XKBDIR XKBMAPFILE
|
@ -1,5 +1,4 @@
|
|||||||
# -*- mode: sh -*-
|
# -*- mode: sh -*-
|
||||||
setxkbmap -layout "$(setxkbmap -print | awk -F + '/xkb_symbols/ {print $2}')" -option ctrl:nocaps
|
|
||||||
xrdb -merge "$HOME/.Xresources"
|
xrdb -merge "$HOME/.Xresources"
|
||||||
|
|
||||||
# Disable screensaver
|
# Disable screensaver
|
||||||
|
8
dotfiles/xkb/keymap/default
Normal file
8
dotfiles/xkb/keymap/default
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
xkb_keymap {
|
||||||
|
xkb_keycodes { include "evdev+aliases(qwerty)" };
|
||||||
|
xkb_types { include "complete" };
|
||||||
|
xkb_compat { include "complete" };
|
||||||
|
xkb_symbols { include "pc+us+inet(evdev)+imalison(rwin_as_hyper)" };
|
||||||
|
xkb_geometry { include "pc(pc105)" };
|
||||||
|
};
|
||||||
|
|
5
dotfiles/xkb/symbols/hyper
Normal file
5
dotfiles/xkb/symbols/hyper
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
partial modifier_keys
|
||||||
|
xkb_symbols "rwin" {
|
||||||
|
key <RWIN> { [ Hyper_R ] };
|
||||||
|
modifier_map Mod3 { <HYPR>, Hyper_R };
|
||||||
|
};
|
5
dotfiles/xkb/symbols/imalison
Normal file
5
dotfiles/xkb/symbols/imalison
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
partial modifier_keys
|
||||||
|
xkb_symbols "rwin_as_hyper" {
|
||||||
|
replace key <RWIN> { [ Hyper_L ] };
|
||||||
|
modifier_map Mod3 { <RWIN>, Hyper_L, Hyper_R };
|
||||||
|
};
|
@ -1,2 +1,3 @@
|
|||||||
# -*- mode: sh; -*-
|
# -*- mode: sh; -*-
|
||||||
source "$HOME/.lib/shellenv.sh"
|
source "$HOME/.lib/shellenv.sh"
|
||||||
|
load_xkb_map.sh
|
||||||
|
@ -25,7 +25,7 @@ PACKAGES = [
|
|||||||
"android-sdk-platform-tools", "android-sdk", "keepassx-http", "global",
|
"android-sdk-platform-tools", "android-sdk", "keepassx-http", "global",
|
||||||
"screencloud", "mopidy-spotify", "rcm", "xsettingsd-git", "aspell-en",
|
"screencloud", "mopidy-spotify", "rcm", "xsettingsd-git", "aspell-en",
|
||||||
"festival", "festival-freebsoft-utils", "hsetroot", "imwheel", "remmina",
|
"festival", "festival-freebsoft-utils", "hsetroot", "imwheel", "remmina",
|
||||||
"racket",
|
"racket", "xorg-utils",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user