This commit is contained in:
sankalp committed 2024-05-01 13:54:37 +05:45
1 parent 47f0b82698
commit 19eed2ed68
25 files changed
+807 -1313

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ STATUS_FILE="$DIR/touchpad.status"
# For Notification icon
notif="$HOME/dotfiles/hypr/assets/bell.png"
reload="$HOME/dotfiles/hypr/assets/reload.png"
reload="$HOME/dotfiles/hypr/assets/reload.svg"
# Scripts DIR
SCRIPTSDIR="$HOME/dotfiles/hypr/scripts"
+1 -1
View File
@@ -252,7 +252,7 @@ for ((i = 0; i < layout_count; i++)); do # Find the index of the current layout
done
next_index=$(( (current_index + 1) % layout_count )) # Calculate the index of the next layout
new_layout="${layout_mapping[next_index]}"
hyprctl keyword input:kb_layout "$new_layout" # Update the keyboard layout
hyprctl switchxkblayout input:kb_layout "$next_index" # Update the keyboard layout
echo "$new_layout" > "$layout_f"
notify-send -u low -i "$notif" "Keyboad Layout Changed to $new_layout"
}