From 363d486da7974cea2284d5a07ac0c9f83787818d Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 27 Oct 2024 23:14:45 +0800 Subject: feat(play-pause): changed it so its more smart --- dot-config/hypr/binds.conf | 15 ++++++++------- scripts | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/dot-config/hypr/binds.conf b/dot-config/hypr/binds.conf index 7220a86e..3da1aa11 100644 --- a/dot-config/hypr/binds.conf +++ b/dot-config/hypr/binds.conf @@ -2,9 +2,10 @@ ### KEYBINDINGSS ### #################### -# binds { +binds { # allow_workspace_cycles = yes -# } + # movefocus_cycles_fullscreen = true +} # See https://wiki.hyprland.org/Configuring/Keywords/ $mainMod = SUPER # Sets "SUPER" key as main modifier @@ -63,7 +64,7 @@ bind = ,XF86AudioMute, execr, $HOME/scripts/sysutil.sh volume --toggle bind = ,XF86AudioMicMute, execr, $HOME/scripts/sysutil.sh volume --toggle-mic bind = ,XF86AudioNext, execr, playerctl -p spotify next bind = ,XF86AudioPrev, execr, playerctl -p spotify previous -bindl = ,XF86AudioPlay, exec, [workspace 7 silent] playerctl -p spotify play-pause || LD_PRELOAD=/usr/lib/spotify-adblock.so spotify +bindl = ,XF86AudioPlay, exec, [workspace 7 silent] $HOME/scripts/play-pause.sh || LD_PRELOAD=/usr/lib/spotify-adblock.so spotify bind = ,XF86AudioStop, execr, playerctl -p spotify stop bind = ,XF86PowerOff, execr, pkill rofi || $rofiexec/rofi_shutdown @@ -186,10 +187,10 @@ bindm = $mainMod, mouse:273, resizewindow # bindri = $mainMod, mouse:272, pin, disable -bindi = ,mouse:275, execr, exec -a autoclicker-left zsh -c 'while true; do wlrctl pointer click; sleep $((0.$RANDOM/10)); done' -bindi = ,mouse:276, execr, exec -a autoclicker-right zsh -c 'while true; do wlrctl pointer click right; sleep $((0.$RANDOM/10)); done' -bindri = ,mouse:275, execr, kill $(pgrep -f autoclicker-left) -bindri = ,mouse:276, execr, kill $(pgrep -f autoclicker-right) +bindi = ,mouse:276, execr, exec -a autoclicker-left zsh -c 'while true; do wlrctl pointer click; sleep $((0.$RANDOM/10)); done' +bindi = ,mouse:275, execr, exec -a autoclicker-right zsh -c 'while true; do wlrctl pointer click right; sleep $((0.$RANDOM/10)); done' +bindri = ,mouse:276, execr, kill $(pgrep -f autoclicker-left) +bindri = ,mouse:275, execr, kill $(pgrep -f autoclicker-right) # Make group bind = $mainMod, g, togglegroup diff --git a/scripts b/scripts index 95c58b0e..4e3dcc02 160000 --- a/scripts +++ b/scripts @@ -1 +1 @@ -Subproject commit 95c58b0e1a5ea004300b3033dff74541bdf0632c +Subproject commit 4e3dcc02d5f76111dda489c88fc15b9bea659898 -- cgit v1.2.3