majorly enhance my stuff
This commit is contained in:
17
scripts/toggle-language.sh
Normal file
17
scripts/toggle-language.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
KBLANG=$(hyprctl getoption input:kb_layout | awk 'NR==1{print $2}')
|
||||
if [ "$KBLANG" = "us" ] ; then
|
||||
hyprctl --batch "\
|
||||
keyword input:kb_layout lv;\
|
||||
keyword input:kb_variant apostrophe;"
|
||||
# keyword input:kb_options compose:apostrophe;"
|
||||
notify-send -u low "OCbwoy3's Dotfiles" "Keyboard Layout: Latvian"
|
||||
exit
|
||||
elif [ "$KBLANG" = "lv" ] ; then
|
||||
# hyprctl --batch "\
|
||||
# keyword input:kb_layout us;\
|
||||
# keyword input:kb_variant;"
|
||||
# i have no fucking idea how to unset input:kb_variant with hyprctl
|
||||
hyprctl reload
|
||||
notify-send -u low "OCbwoy3's Dotfiles" "Keyboard Layout: English"
|
||||
exit
|
||||
fi
|
||||
Reference in New Issue
Block a user