From 3413166dfbc2f8ae303496fc6c4c66c9722f337f Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sat, 28 Sep 2024 22:42:01 +0800 Subject: feat(bind,mouse): added auto clickers --- dot-config/hypr/binds.conf | 8 ++++---- 1 file 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 -- cgit v1.2.3