From 57c459f5ec2d29282041d5d8f5637f47b0f3031e Mon Sep 17 00:00:00 2001 From: TUNQRT Date: Tue, 30 Sep 2025 16:31:12 +0200 Subject: [PATCH] script for cz <-> us layout --- switch_keyboard.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 switch_keyboard.sh diff --git a/switch_keyboard.sh b/switch_keyboard.sh new file mode 100755 index 0000000..c504437 --- /dev/null +++ b/switch_keyboard.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +current=$(setxkbmap -print | grep symbols) +current=${current#*\+} +current=${current%\+*} + +new=$( [[ $current == "us" ]] && echo "cz" || echo "us" ) + +setxkbmap $new +echo "$current -> $new"