1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00
nixos/home/config/nixpkgs/conf/i3/keyboard_layout_toggle.sh
Stefan Ellmauthaler cc0629c3cf added i3 config to home-managed files
Signed-off-by: Stefan Ellmauthaler <stefan.ellmauthaler@tu-dresden.de>
2021-10-15 13:18:39 +02:00

8 lines
145 B
Bash
Executable File

#!/bin/sh
if [[ `setxkbmap -query | awk '$1 == "layout:"{print($2)}'` = "us" ]]; then
setxkbmap -layout de
else
setxkbmap -layout us
fi