From 8a28171badda93685564bfb1652769207be44b87 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Wed, 2 Oct 2024 21:30:31 +0800 Subject: add(binds,rofi): made binds toggle, which means if the menu is open, now it will automatically close. for rofi fix(binds,autoclicker): fixed modifier keys blocking autoclicker --- dot-config/hypr/binds.conf | 41 ++++++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/dot-config/hypr/binds.conf b/dot-config/hypr/binds.conf index 03802fdf..db8d9350 100644 --- a/dot-config/hypr/binds.conf +++ b/dot-config/hypr/binds.conf @@ -13,20 +13,20 @@ $mainMod = SUPER # Sets "SUPER" key as main modifier bind = $mainMod, return, exec, $terminal bind = $mainMod shift, return, exec, $terminal --class "alacritty-float,alacritty-float" # bind = $mainMod space, return, exec, $terminal start --class pseudo -bind = super alt, Delete, exec, $rofiexec/rofi_powermenu -bind = alt, F1, exec, $rofiexec/rofi_launcher -bind = alt, F2, exec, $rofiexec/rofi_runner -bind = $mainMod, period, exec, $rofiexec/rofi_emoji +bind = super alt, Delete, exec, pkill rofi || $rofiexec/rofi_powermenu +bind = alt, F1, exec, pkill rofi || $rofiexec/rofi_launcher +bind = alt, F2, exec, pkill rofi || $rofiexec/rofi_runner +bind = $mainMod, period, exec, pkill rofi || $rofiexec/rofi_emoji # utils -bind = $mainMod, c, exec, $rofiexec/rofi_configs -bind = $mainMod, m, exec, $rofiexec/rofi_music +bind = $mainMod, c, exec, pkill rofi || $rofiexec/rofi_configs +bind = $mainMod, m, exec, pkill rofi || $rofiexec/rofi_music bind = $mainMod, n, exec, nmd -bind = $mainMod, r, exec, $rofiexec/rofi_asroot -bind = $mainMod, s, exec, $rofiexec/rofi_screenshot -bind = $mainMod, v, exec, cliphist list | $menu | cliphist decode | wl-copy -bind = $mainMod, w, exec, $rofiexec/rofi_windows -bind = $mainMod, x, exec, $rofiexec/rofi_powermenu -bind = $mainMod, b, exec, $rofiexec/rofi_bluetooth +bind = $mainMod, r, exec, pkill rofi || $rofiexec/rofi_asroot +bind = $mainMod, s, exec, pkill rofi || $rofiexec/rofi_screenshot +bind = $mainMod, v, exec, pkill rofi || cliphist list | $menu | cliphist decode | wl-copy +bind = $mainMod, w, exec, pkill rofi || $rofiexec/rofi_windows +bind = $mainMod, x, exec, pkill rofi || $rofiexec/rofi_powermenu +bind = $mainMod, b, exec, pkill rofi || $rofiexec/rofi_bluetooth # GUI bind = $mainMod shift, f, exec, $fileManager bind = $mainMod shift, w, exec, $browser --restore-last-session @@ -39,7 +39,7 @@ bind = ctrl alt, r, exec, $termfloat -T ranger -e ranger bind = ctrl alt, v, exec, $termfloat -e $editor # Emergency bind = ctrl alt, b, exec, $termfloat -T btop -e sudo nice -n -20 ionice -c 1 sudo btop -bind = ctrl alt, delete, exec, $rofiexec/rofi_shutdown_menu +bind = ctrl alt, delete, exec, pkill rofi || $rofiexec/rofi_shutdown_menu # Misc # bind = ctrl alt, m, exec, music @@ -63,10 +63,13 @@ bind = ,XF86AudioNext, exec, playerctl -p spotify next bind = ,XF86AudioPrev, exec, playerctl -p spotify previous bindl = ,XF86AudioPlay, exec, playerctl -p spotify play-pause bind = ,XF86AudioStop, exec, playerctl -p spotify stop -bind = ,XF86PowerOff, exec, $rofiexec/rofi_shutdown +bind = ,XF86PowerOff, exec, pkill rofi || $rofiexec/rofi_shutdown # Pause -bind = , Pause, exec, hyprfreeze -s -a +bind = ,Pause, exec, hyprfreeze -s -a + +# Print +bind = ,Print, exec, $HOME/scripts/hyprshot --now # Brightness bind = ,XF86MonBrightnessUp, exec, $HOME/scripts/sysutil.sh brightness --inc @@ -156,10 +159,10 @@ bind = $mainMod SHIFT, 0, movetoworkspacesilent, 10 bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:273, resizewindow -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) +bindi = ,mouse:276, exec, exec -a autoclicker-left zsh -c 'while true; do wlrctl pointer click; sleep $((0.$RANDOM/10)); done' +bindi = ,mouse:275, exec, exec -a autoclicker-right zsh -c 'while true; do wlrctl pointer click right; sleep $((0.$RANDOM/10)); done' +bindri = ,mouse:276, exec, kill $(pgrep -f autoclicker-left) +bindri = ,mouse:275, exec, kill $(pgrep -f autoclicker-right) # chroma bind = $mainMod, O, togglechromakey -- cgit v1.2.3