commit 6ab70f680d9546e5ad128c4c372dcc20b0dd2bed parent 5f72f63c019d81381518de8595e03c2c45f144ae Author: Jake Bauer <jbauer@paritybit.ca> Date: Sun, 27 Dec 2020 23:34:21 -0500 Add script to change keyboard layout Diffstat:
A | .local/bin/change-kb-layout.sh | | | 8 | ++++++++ |
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/.local/bin/change-kb-layout.sh b/.local/bin/change-kb-layout.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +# First argument is the layout to switch to +if [ "$1" = "ru" ]; then + setxkbmap -layout "$1" -variant phonetic +else + setxkbmap -layout "$1" +fi