toggle ergol_iso

main
Gil Portenseigne 2026-07-20 22:12:42 +02:00
parent 073aacb1a1
commit 721eec0498
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
#!/bin/sh
current=$(swaymsg -t get_inputs | grep -m1 xkb_active_layout_name)
if echo "$current" | grep -q "Ergo"; then
swaymsg input type:keyboard xkb_variant basic
else
swaymsg input type:keyboard xkb_layout fr
swaymsg input type:keyboard xkb_variant ergol_iso
fi