From 02009db96ec348a552b2b9037528db3e0ab338f2 Mon Sep 17 00:00:00 2001 From: BertramMiller <45958058+BertramMiller@users.noreply.github.com> Date: Sat, 16 May 2020 01:34:34 -0400 Subject: [PATCH] langselect script as requested, this version offers more keyboard layouts to select from --- .local/bin/langselect | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.local/bin/langselect b/.local/bin/langselect index b3a5bdb7..31f0720e 100644 --- a/.local/bin/langselect +++ b/.local/bin/langselect @@ -1,7 +1,6 @@ #!/bin/sh # requirements: dmenu, xorg-setxkbmap -choices="us\\nfr\\nua\\nru" -chosen=$(echo -e "$choices" | dmenu -i ) +chosen=$(localectl list-x11-keymap-layouts | dmenu -i ) s=$(echo "$chosen" | sed "s/.*; //") setxkbmap $s notify-send "Keyboard layout:" "$(setxkbmap -query | grep "layout" | awk '{print $2}')"