summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-09-28 22:42:01 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-09-28 22:42:01 +0800
commit3413166dfbc2f8ae303496fc6c4c66c9722f337f (patch)
treece50985cc87d912afb46adc1331b9b0a80295aa3
parent19d14999c89de2f757a5d4b452e8af7e0dc7baf8 (diff)
feat(bind,mouse): added auto clickers
-rw-r--r--dot-config/hypr/binds.conf8
1 files changed, 4 insertions, 4 deletions
diff --git a/dot-config/hypr/binds.conf b/dot-config/hypr/binds.conf
index fec4b6d3..03802fdf 100644
--- a/dot-config/hypr/binds.conf
+++ b/dot-config/hypr/binds.conf
@@ -156,10 +156,10 @@ bind = $mainMod SHIFT, 0, movetoworkspacesilent, 10
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
-bind = ,mouse:276, exec, $HOME/scripts/autoclicker-left.sh
-bind = ,mouse:275, exec, $HOME/scripts/autoclicker-right.sh
-bindr = ,mouse:276, exec, $HOME/scripts/autoclicker-left.sh
-bindr = ,mouse:275, exec, $HOME/scripts/autoclicker-right.sh
+bind = ,mouse:276, exec, exec -a autoclicker-left zsh -c 'while true; do wlrctl pointer click; sleep $((0.$RANDOM/10)); done'
+bind = ,mouse:275, exec, exec -a autoclicker-right zsh -c 'while true; do wlrctl pointer click right; sleep $((0.$RANDOM/10)); done'
+bindr = ,mouse:276, exec, kill $(pgrep -f autoclicker-left)
+bindr = ,mouse:275, exec, kill $(pgrep -f autoclicker-right)
# chroma
bind = $mainMod, O, togglechromakey