keyboard layout
This commit is contained in:
4
.bashrc
4
.bashrc
@@ -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')"
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
11
.config/keyboard/apply-keyboard-layout.sh
Executable file
11
.config/keyboard/apply-keyboard-layout.sh
Executable 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
1
.config/keyboard/colemak.sh
Executable file
@@ -0,0 +1 @@
|
|||||||
|
setxkbmap se && xmodmap ~/.config/keyboard/xmodmap.colemak-se && xset r 66
|
||||||
1
.config/keyboard/qwerty.sh
Executable file
1
.config/keyboard/qwerty.sh
Executable file
@@ -0,0 +1 @@
|
|||||||
|
setxkbmap se
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user