mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
langselect script
as requested, this version offers more keyboard layouts to select from
This commit is contained in:
parent
4d7232a85f
commit
02009db96e
@ -1,7 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# requirements: dmenu, xorg-setxkbmap
|
# requirements: dmenu, xorg-setxkbmap
|
||||||
choices="us\\nfr\\nua\\nru"
|
chosen=$(localectl list-x11-keymap-layouts | dmenu -i )
|
||||||
chosen=$(echo -e "$choices" | dmenu -i )
|
|
||||||
s=$(echo "$chosen" | sed "s/.*; //")
|
s=$(echo "$chosen" | sed "s/.*; //")
|
||||||
setxkbmap $s
|
setxkbmap $s
|
||||||
notify-send "Keyboard layout:" "$(setxkbmap -query | grep "layout" | awk '{print $2}')"
|
notify-send "Keyboard layout:" "$(setxkbmap -query | grep "layout" | awk '{print $2}')"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user