xmodmap_usex: fixed ctrl-lock swap
parent
941c595a5b
commit
446e901b20
|
@ -18,7 +18,7 @@ installkeymap ()
|
|||
{
|
||||
if [ -f "$HOME/.xkb/symbols/$1" ] && ( [ ! -f "/usr/share/X11/xkb/symbols/$1" ] || \
|
||||
[ ! "$(sha1sum "$HOME/.xkb/symbols/$1" | cut -f1 -d' ')" = "$(sha1sum /usr/share/X11/xkb/symbols/$1 | cut -f1 -d ' ')" ] ); then
|
||||
echo "==> '$1' font (press Ctrl-D to skip)"
|
||||
echo "==> '$1' keymap (press Ctrl-D to skip)"
|
||||
sudo sh -c "install -m644 $HOME/.xkb/symbols/$1 /usr/share/X11/xkb/symbols/"
|
||||
echo
|
||||
fi
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
remove Lock = Caps_Lock
|
||||
remove Control = Control_L
|
||||
!!
|
||||
keycode 8 =
|
||||
keycode 9 = Escape NoSymbol Escape
|
||||
keycode 10 = 1 exclam 1 exclam onesuperior exclamdown onesuperior
|
||||
|
@ -246,3 +249,6 @@ keycode 252 =
|
|||
keycode 253 =
|
||||
keycode 254 =
|
||||
keycode 255 =
|
||||
!!
|
||||
add Lock = Caps_Lock
|
||||
add Control = Control_L
|
||||
|
|
|
@ -1,14 +1,9 @@
|
|||
#!/bin/sh
|
||||
################################################################################
|
||||
## XPROFILE
|
||||
## 2013-05-23
|
||||
################################################################################
|
||||
## This file is sourced by some DM and should not contain any desktop execution.
|
||||
|
||||
## Env vars and general config. The .profile file should be automatically
|
||||
## sourced by the login manager.
|
||||
# [ -f "$HOME/.profile" ] && . "$HOME/.profile"
|
||||
|
||||
## X config (for URxvt, etc.)
|
||||
[ -f "${HOME}/.Xresources" ] && xrdb -merge "${HOME}/.Xresources"
|
||||
|
||||
|
@ -16,7 +11,8 @@
|
|||
numlockx on
|
||||
|
||||
## Keymap. Only useful on multi-user environment where users have different
|
||||
## keymaps.
|
||||
## keymaps. The map file can be generated from current layout with
|
||||
## xmodmap -pke > ~/.xmodmap
|
||||
if [ "$(setxkbmap -v 7 | awk '/^layout/ {print $2}')" != "usex" ]; then
|
||||
xmodmap ~/.xmodmap_usex
|
||||
fi
|
||||
|
|
12
.zshrc
12
.zshrc
|
@ -2,15 +2,11 @@
|
|||
## Shell Config -- Master File
|
||||
################################################################################
|
||||
|
||||
##==============================================================================
|
||||
## Sourcing
|
||||
##==============================================================================
|
||||
readonly SHELL_CURRENT="$(ps -o command="" $$)"
|
||||
readonly SHELL_DIR="$HOME/.shell.d"
|
||||
|
||||
SHELL_CURRENT="$(ps -o command="" $$)"
|
||||
SHELL_DIR="$HOME/.shell.d"
|
||||
|
||||
## .profile is sourced automatically when X is started, but we need to source it
|
||||
## manually to TTY.
|
||||
## .profile is sourced automatically by most login managers, but we need to
|
||||
## source it manually to TTY.
|
||||
[ -z "$DISPLAY" ] && [ -f "$HOME/.profile" ] && . "$HOME/.profile"
|
||||
|
||||
loadrc()
|
||||
|
|
Loading…
Reference in New Issue