Created
July 14, 2020 07:04
-
-
Save Wabri/73f98d656b2715ca16a756bdb489e2fd to your computer and use it in GitHub Desktop.
Switch layout key from a keymap to another
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
case "$(setxkbmap -v | awk -F '+' '/symbols/ {print $2}')" in | |
us) | |
setxkbmap it | |
;; | |
it) | |
setxkbmap us | |
;; | |
*) | |
echo 'Layout not recognize' | |
exit 2 | |
esac | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment