mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
langselect (works with dwmblocks "language" module)
This script uses dmenu and xorg-setxkbmap to switch between keyboard layouts
This commit is contained in:
parent
b8b9b420f9
commit
6e476c459b
7
.local/bin/langselect
Normal file
7
.local/bin/langselect
Normal file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
# requirements: dmenu, xorg-setxkbmap
|
||||
choices="us\\nfr\\nua\\nru"
|
||||
chosen=$(echo -e "$choices" | dmenu -i )
|
||||
s=$(echo "$chosen" | sed "s/.*; //")
|
||||
setxkbmap $s
|
||||
notify-send "Keyboard layout:" "$(setxkbmap -query | grep "layout" | awk '{print $2}')"
|
||||
Loading…
x
Reference in New Issue
Block a user