From f7fbf35109bd80ecac5601f51a5ed85cacf7a35f Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Wed, 30 Jan 2019 19:16:45 +0200 Subject: [PATCH] update setxkbmap and hope no one else is using these files --- etc/profile.d/mikaela.sh | 5 +++-- rc/profile | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/etc/profile.d/mikaela.sh b/etc/profile.d/mikaela.sh index 972b5713..12ab2eb3 100644 --- a/etc/profile.d/mikaela.sh +++ b/etc/profile.d/mikaela.sh @@ -1,6 +1,7 @@ # Map compose to left menu and kill x with ctrl alt backspace and -# disable unbreakable space -setxkbmap -option compose:menu -option terminate:ctrl_alt_bksp -option nbsp:none +# disable unbreakable space, male alt+shift change layout and +# layouts Finnish, Czech Qwerty and Esperanto. +setxkbmap -option compose:menu -option terminate:ctrl_alt_bksp -option nbsp:none -option 'grp:alt_shift_toggle' -layout fi,cz,epo -variant ,qwerty, # Set TZ as the current timezone. This is supposed to be sent over SSH. TZ=$(date +%Z) diff --git a/rc/profile b/rc/profile index a64f124d..2c120c8f 100644 --- a/rc/profile +++ b/rc/profile @@ -8,8 +8,9 @@ fi # Set compose to menu, kill X with ctrl-alt-backspace, # disable nbsp (still available with compose-space-space, -# make Caps Lock a backspace (Colemak) -setxkbmap -option compose:menu -option terminate:ctrl_alt_bksp -option nbsp:none -option caps:backspace +# make alt+shift toggle layout and specify layouts +# as Finnish, Czech Qwerty and Esperanto. +setxkbmap -option compose:menu -option terminate:ctrl_alt_bksp -option nbsp:none -option 'grp:alt_shift_toggle' -layout fi,cz,epo -variant ,qwerty, # Removes duplicates from $PATH. Copied from http://unix.stackexchange.com/a/14896 PATH=$(echo "$PATH" | awk -v RS=':' -v ORS=":" '!a[$1]++{if (NR > 1) printf ORS; printf $a[$1]}')