diff options
| author | Ja.KooLit <jimmielovejay@gmail.com> | 2023-12-17 16:15:04 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-17 16:15:04 +0900 |
| commit | f6cac04f24927419aba506e7bb51dd085f8aa8c2 (patch) | |
| tree | 650e29a07cb52ff7973361f92968ece49ea19066 /config/hypr/scripts/TouchPad.sh | |
| parent | 948d1db075ec815983628ebf467d0d49bbe1b5e4 (diff) | |
| parent | 338f213dd13ba560a08440d66302c96eea59d6de (diff) | |
Merge pull request #78 from JaKooLit/Development
some small tweaks
Diffstat (limited to 'config/hypr/scripts/TouchPad.sh')
| -rwxr-xr-x | config/hypr/scripts/TouchPad.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/config/hypr/scripts/TouchPad.sh b/config/hypr/scripts/TouchPad.sh index 09dc563a..8f633ee0 100755 --- a/config/hypr/scripts/TouchPad.sh +++ b/config/hypr/scripts/TouchPad.sh @@ -1,8 +1,9 @@ #!/bin/bash +dunst_notif="$HOME/.config/dunst/images/bell.png" + # NOTE: find the right device using hyprctl devices - -HYPRLAND_DEVICE="asue1209:00-04f3:319f-touchpad" + HYPRLAND_DEVICE="asue1209:00-04f3:319f-touchpad" if [ -z "$XDG_RUNTIME_DIR" ]; then export XDG_RUNTIME_DIR=/run/user/$(id -u) @@ -13,7 +14,7 @@ export STATUS_FILE="$XDG_RUNTIME_DIR/touchpad.status" enable_touchpad() { printf "true" > "$STATUS_FILE" - notify-send -u normal "Enabling Touchpad" + dunstify -u low -i "$dunst_notif" "Enabling Touchpad" hyprctl keyword "device:$HYPRLAND_DEVICE:enabled" true } @@ -21,7 +22,7 @@ enable_touchpad() { disable_touchpad() { printf "false" > "$STATUS_FILE" - notify-send -u normal "Disabling Touchpad" + dunstify -u low -i "$dunst_notif" "Disabling Touchpad" hyprctl keyword "device:$HYPRLAND_DEVICE:enabled" false } |
