summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2015-04-23 15:18:57 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2015-04-23 15:18:58 +0200
commit5e4d77a5bda22d9457945cecf810b5b416660cce (patch)
treec411ac74687399bb792b522deff79a0fc159fe33
parent60208cb75cd116381fed0a731ce4ac63602c3d94 (diff)
downloaddotfiles-5e4d77a5bda22d9457945cecf810b5b416660cce.tar.gz
dotfiles-5e4d77a5bda22d9457945cecf810b5b416660cce.tar.bz2
dotfiles-5e4d77a5bda22d9457945cecf810b5b416660cce.zip
Set keymap using setxkbmap
-rw-r--r--.xinitrc14
1 files changed, 9 insertions, 5 deletions
diff --git a/.xinitrc b/.xinitrc
index b3c0314..0b1ebbf 100644
--- a/.xinitrc
+++ b/.xinitrc
@@ -2,11 +2,15 @@
session=$1
-#
-# XKB is not set here anymore -- instead we use the standard altgr_intl
-# with some more options
-# set the following in X11: "terminate:ctrl_alt_bksp,grp:menu_toggle,compose:rwin,caps:escape"
-#
+# xdotool needs this set by setxkbmap
+# as a fallback this should also be set in the X11 config
+if (( $+commands[setxkbmap] )); then
+ setxkbmap \
+ -layout us,de \
+ -variant altgr-intl,deadgraveacute \
+ -option \
+ -option terminate:ctrl_alt_bksp,grp:menu_toggle,compose:rwin,caps:escape
+fi
# set IM to XIM, so it reads .XCompose
export GTK_IM_MODULE=xim