Files
dots/config/bspwm/scripts/toogle_kb.sh
2025-11-24 19:46:30 +07:00

10 lines
174 B
Bash
Executable File

#! /bin/bash
CURRENT_LAYOUT=$(setxkbmap -query|awk -F : 'NR==3{print $2}'|sed 's/ //g')
if [ "$CURRENT_LAYOUT" = "us" ]; then
setxkbmap "ru"
else
setxkbmap "us"
fi