fix input again!!!!
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
# Input Config ( https://wiki.hyprland.org/Configuring/Variables/#input )
|
# Input Config ( https://wiki.hyprland.org/Configuring/Variables/#input )
|
||||||
|
|
||||||
input {
|
input {
|
||||||
kb_layout = us
|
kb_layout = us,lv
|
||||||
kb_variant =
|
kb_variant = ,apostrophe
|
||||||
kb_model =
|
kb_model =
|
||||||
kb_options =
|
kb_options =
|
||||||
kb_rules =
|
kb_rules =
|
||||||
|
|||||||
@@ -1,16 +1,6 @@
|
|||||||
KBLANG=$(hyprctl getoption input:kb_layout | awk 'NR==1{print $2}')
|
KBLANG=$(hyprctl getoption input:kb_layout | awk 'NR==1{print $2}')
|
||||||
if [ "$KBLANG" = "us" ] ; then
|
|
||||||
hyprctl --batch "\
|
# hyprctl switchxkblayout semico--usb-gaming-keyboard- next
|
||||||
keyword input:kb_layout lv;\
|
|
||||||
keyword input:kb_variant apostrophe;"
|
hyprctl switchxkblayout current next
|
||||||
# keyword input:kb_options compose:apostrophe;"
|
notify-send -u low "Tastatūra" "Valoda mainīta!"
|
||||||
notify-send -u low "Tastatūra" "🇱🇻 Valoda: Latviešu"
|
|
||||||
exit
|
|
||||||
elif [ "$KBLANG" = "lv" ] ; then
|
|
||||||
hyprctl --batch "\
|
|
||||||
keyword input:kb_layout us;\
|
|
||||||
keyword input:kb_variant \"\";"
|
|
||||||
# keyword input:kb_options compose:apostrophe;"
|
|
||||||
notify-send -u low "Tastatūra" "🇺🇸 Valoda: Angļu"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|||||||
Reference in New Issue
Block a user