majorly enhance my stuff

This commit is contained in:
2025-03-12 21:25:53 +02:00
parent 2e01b26e5a
commit 6fafc566ae
15 changed files with 216 additions and 21 deletions

View 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