diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2024-10-27 23:14:45 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2024-10-27 23:14:45 +0800 |
| commit | 363d486da7974cea2284d5a07ac0c9f83787818d (patch) | |
| tree | 388cd39e8b161dbeb5b5050a4f94830768f6733a | |
| parent | 372815faa1f09aaa50c6170cc40164e21b1acaaf (diff) | |
feat(play-pause): changed it so its more smart
| -rw-r--r-- | dot-config/hypr/binds.conf | 15 | ||||
| m--------- | scripts | 0 |
2 files changed, 8 insertions, 7 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 -Subproject 95c58b0e1a5ea004300b3033dff74541bdf0632 +Subproject 4e3dcc02d5f76111dda489c88fc15b9bea65989 |
