diff options
| author | JaKooLit <jimmielovejay.com> | 2023-12-17 22:09:37 +0900 |
|---|---|---|
| committer | JaKooLit <jimmielovejay.com> | 2023-12-17 22:09:37 +0900 |
| commit | 70d3ed24206ba3445a73b75328f7688c6f78e894 (patch) | |
| tree | d900cff5caaac019e95259aeaef57699ecc60ad4 /config/hypr/scripts | |
| parent | 96c5794d550d34bce500828f4160667d70d60681 (diff) | |
minor tweaks before final
Diffstat (limited to 'config/hypr/scripts')
| -rwxr-xr-x | config/hypr/scripts/AirplaneMode.sh | 2 | ||||
| -rwxr-xr-x | config/hypr/scripts/ChangeBlur.sh | 2 | ||||
| -rwxr-xr-x | config/hypr/scripts/SwitchKeyboardLayout.sh | 4 |
3 files changed, 6 insertions, 2 deletions
diff --git a/config/hypr/scripts/AirplaneMode.sh b/config/hypr/scripts/AirplaneMode.sh index dc9a5956..428a09bd 100755 --- a/config/hypr/scripts/AirplaneMode.sh +++ b/config/hypr/scripts/AirplaneMode.sh @@ -1,6 +1,6 @@ #!/bin/bash -dunstify -u low -i "$dunst_notif" +dunst_notif="$HOME/.config/dunst/images/bell.png" wifi="$(nmcli r wifi | awk 'FNR = 2 {print $1}')" if [ "$wifi" == "enabled" ]; then diff --git a/config/hypr/scripts/ChangeBlur.sh b/config/hypr/scripts/ChangeBlur.sh index 46d8a1f8..891e22eb 100755 --- a/config/hypr/scripts/ChangeBlur.sh +++ b/config/hypr/scripts/ChangeBlur.sh @@ -9,7 +9,7 @@ if [ "${STATE}" == "2" ]; then hyprctl keyword decoration:blur:passes 1 dunstify -u low -i "$dunst_notif" "Less blur" else - hyprctl keyword decoration:blur:size 6 + hyprctl keyword decoration:blur:size 5 hyprctl keyword decoration:blur:passes 2 dunstify -u low -i "$dunst_notif" "Normal blur" fi diff --git a/config/hypr/scripts/SwitchKeyboardLayout.sh b/config/hypr/scripts/SwitchKeyboardLayout.sh index e7c56b42..9d1ee844 100755 --- a/config/hypr/scripts/SwitchKeyboardLayout.sh +++ b/config/hypr/scripts/SwitchKeyboardLayout.sh @@ -2,6 +2,7 @@ layout_f="$HOME/.cache/kb_layout" settings_file="$HOME/.config/hypr/configs/Settings.conf" +dunst_notif="$HOME/.config/dunst/images/bell.png" # Check if ~/.cache/kb_layout exists and create it with a default layout from Settings.conf if not found if [ ! -f "$layout_f" ]; then @@ -37,3 +38,6 @@ new_layout="${layout_mapping[next_index]}" # Update the keyboard layout hyprctl keyword input:kb_layout "$new_layout" echo "$new_layout" > "$layout_f" + +# Notification for the new keyboard layout +dunstify -u low -i "$dunst_notif" "Keyboard layout set to $new_layout"
\ No newline at end of file |
