keyboard layout

This commit is contained in:
2023-09-21 15:10:55 +02:00
parent 05a0dbefd6
commit d4937bccd1
6 changed files with 19 additions and 1 deletions

View File

@@ -138,5 +138,9 @@ alias ngdo='ngrok http --domain=devops-extension.ngrok.dev 3000'
## Initialization ## Initialization
alias install-requirements='~/.config/requirements/install.sh' alias install-requirements='~/.config/requirements/install.sh'
## Colemak
alias colemak='~/.config/keyboard/colemak.sh'
alias qwerty='~/.config/keyboard/qwerty.sh'
## Start oh my posh ## Start oh my posh
eval "$(oh-my-posh init bash --config '~/.config/oh-my-posh/theme.omp.json')" eval "$(oh-my-posh init bash --config '~/.config/oh-my-posh/theme.omp.json')"

View File

@@ -30,6 +30,7 @@ set $inactive-text-color #505254
set $urgent-bg-color #E53935 set $urgent-bg-color #E53935
exec_always ~/.config/screenlayout/apply-screen-layout.sh exec_always ~/.config/screenlayout/apply-screen-layout.sh
exec_always ~/.config/keyboard/apply-keyboard-layout.sh
set $mod Mod4 set $mod Mod4

View File

@@ -0,0 +1,11 @@
#!/bin/bash
hostname=$(/usr/bin/hostname)
if [[ hostname -eq "bepis" ]]; then
echo "bepis"
$(~/.config/keyboard/qwerty.sh)
elif [[ hostname -eq "bepis-laptop" ]]; then
echo "bepis-laptop"
$(~/.config/keyboard/colemak.sh)
fi

1
.config/keyboard/colemak.sh Executable file
View File

@@ -0,0 +1 @@
setxkbmap se && xmodmap ~/.config/keyboard/xmodmap.colemak-se && xset r 66

1
.config/keyboard/qwerty.sh Executable file
View File

@@ -0,0 +1 @@
setxkbmap se

View File

@@ -52,7 +52,7 @@ keycode 58 = m M dead_macron asciitilde
! keycode 60 = period greater dead_abovedot asciitilde ! keycode 60 = period greater dead_abovedot asciitilde
! keycode 61 = slash question questiondown asciitilde ! keycode 61 = slash question questiondown asciitilde
! keycode 66 = BackSpace BackSpace BackSpace BackSpace keycode 66 = BackSpace BackSpace BackSpace BackSpace
! keycode 94 = minus underscore endash emdash ! keycode 94 = minus underscore endash emdash
! keycode 65 = space space space nobreakspace ! keycode 65 = space space space nobreakspace
! keycode 113 = Mode_switch Mode_switch ! keycode 113 = Mode_switch Mode_switch