Switched keyboard layout us variant altgr-intl
with xmodmap customizations to allow input of „,“ and ”
This commit is contained in:
parent
9aa83e0c6b
commit
9e4bd3c862
2 changed files with 8 additions and 5 deletions
10
.stumpwmrc
10
.stumpwmrc
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
(in-package :stumpwm)
|
(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
|
;; creating groups
|
||||||
(gnewbg "2")
|
(gnewbg "2")
|
||||||
|
@ -126,16 +126,16 @@
|
||||||
;; switch key leyout to american english
|
;; switch key leyout to american english
|
||||||
(defcommand layout-en ()
|
(defcommand layout-en ()
|
||||||
()
|
()
|
||||||
"Set the keyboard layout to en_US (american english)"
|
"Set the keyboard layout to US International AltGr"
|
||||||
(switch-layout-to "en_US"))
|
(switch-layout-to "us -variant altgr-intl"))
|
||||||
|
|
||||||
;; switch key layout automatically
|
;; switch key layout automatically
|
||||||
(defcommand switch-layout ()
|
(defcommand switch-layout ()
|
||||||
()
|
()
|
||||||
"Switch the 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 "de")
|
||||||
(switch-layout-to "en_US")))
|
(switch-layout-to "us -variant altgr-intl")))
|
||||||
|
|
||||||
(define-key *top-map* (kbd "s-SPC" ) "switch-layout")
|
(define-key *top-map* (kbd "s-SPC" ) "switch-layout")
|
||||||
|
|
||||||
|
|
3
Xmodmap
3
Xmodmap
|
@ -3,3 +3,6 @@ clear Lock
|
||||||
add Control = Control_L
|
add Control = Control_L
|
||||||
keycode 118 = Caps_Lock
|
keycode 118 = Caps_Lock
|
||||||
add Lock = 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
|
||||||
|
|
Loading…
Reference in a new issue