dotfiles/.config/sxhkd/switch_layout.sh
2023-12-26 23:38:41 +01:00

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