From 1032846591c190db2d98d72702d8ea99095ccfcb Mon Sep 17 00:00:00 2001 From: OCbwoy3 Date: Mon, 23 Jun 2025 16:18:36 +0300 Subject: [PATCH] fix input again!!!! --- config/hypr/config/input_configs/english.conf | 4 ++-- scripts/toggle-language.sh | 20 +++++-------------- 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/config/hypr/config/input_configs/english.conf b/config/hypr/config/input_configs/english.conf index c50a7b7..5f72e87 100644 --- a/config/hypr/config/input_configs/english.conf +++ b/config/hypr/config/input_configs/english.conf @@ -1,8 +1,8 @@ # Input Config ( https://wiki.hyprland.org/Configuring/Variables/#input ) input { - kb_layout = us - kb_variant = + kb_layout = us,lv + kb_variant = ,apostrophe kb_model = kb_options = kb_rules = diff --git a/scripts/toggle-language.sh b/scripts/toggle-language.sh index 037ba80..828c726 100755 --- a/scripts/toggle-language.sh +++ b/scripts/toggle-language.sh @@ -1,16 +1,6 @@ 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 "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 + +# hyprctl switchxkblayout semico--usb-gaming-keyboard- next + +hyprctl switchxkblayout current next +notify-send -u low "Tastatūra" "Valoda mainīta!"