12 lines
196 B
Bash
Executable File
12 lines
196 B
Bash
Executable File
# !/bin/bash
|
|
|
|
# Switching between keyboard layouts
|
|
CURRENT_LAYOUT=$(setxkbmap -query | awk 'NR==3{print $2}')
|
|
|
|
if [ "$CURRENT_LAYOUT" = "us" ]; then
|
|
setxkbmap "fr"
|
|
else
|
|
setxkbmap "us"
|
|
fi
|
|
|