Switched keyboard layout us variant altgr-intl

with xmodmap customizations to allow input of „,“ and ”
This commit is contained in:
Marcel Kapfer (mmk2410) 2017-03-30 15:17:57 +02:00
parent 9aa83e0c6b
commit 9e4bd3c862
2 changed files with 8 additions and 5 deletions

View file

@ -4,7 +4,7 @@
(in-package :stumpwm)
(defparameter *key-layout* "en_US" "Stores the current key layout")
(defparameter *key-layout* "us -variant altgr-intl" "Stores the current key layout")
;; creating groups
(gnewbg "2")
@ -126,16 +126,16 @@
;; switch key leyout to american english
(defcommand layout-en ()
()
"Set the keyboard layout to en_US (american english)"
(switch-layout-to "en_US"))
"Set the keyboard layout to US International AltGr"
(switch-layout-to "us -variant altgr-intl"))
;; switch key layout automatically
(defcommand switch-layout ()
()
"Switch the layout"
(if (string= "en_US" *key-layout*)
(if (string= "us -variant altgr-intl" *key-layout*)
(switch-layout-to "de")
(switch-layout-to "en_US")))
(switch-layout-to "us -variant altgr-intl")))
(define-key *top-map* (kbd "s-SPC" ) "switch-layout")

View file

@ -3,3 +3,6 @@ clear Lock
add Control = Control_L
keycode 118 = Caps_Lock
add Lock = Caps_Lock
keycode 55 = v V v V doublelowquotemark singlelowquotemark doublelowquotemark
keycode 56 = b B b B leftdoublequotemark leftsinglequotemark leftdoublequotemark
keycode 57 = n N n N rightdoublequotemark rightsinglequotemark rightdoublequotemark