fix: waves-toggle schaltet damage_tracking nur während Shader aktiv aus
This commit is contained in:
@@ -349,7 +349,7 @@ bind = , F6, exec, ~/.config/hypr/scripts/hyprsunset-toggle.sh
|
|||||||
bind = , F7, exec, hyprshade toggle ~/.config/hypr/shaders/vibrance.glsl
|
bind = , F7, exec, hyprshade toggle ~/.config/hypr/shaders/vibrance.glsl
|
||||||
bind = , F8, exec, hyprshade toggle ~/.config/hypr/shaders/grayscale.glsl
|
bind = , F8, exec, hyprshade toggle ~/.config/hypr/shaders/grayscale.glsl
|
||||||
bind = , F9, exec, hyprshade toggle ~/.config/hypr/shaders/invert-colors.glsl
|
bind = , F9, exec, hyprshade toggle ~/.config/hypr/shaders/invert-colors.glsl
|
||||||
bind = , F10, exec, hyprshade toggle ~/.config/hypr/shaders/waves.glsl
|
bind = , F10, exec, ~/.config/hypr/scripts/waves-toggle.sh
|
||||||
|
|
||||||
# Touchpad ein/ausschalten (Fn+F7 = Ctrl+Super+F24 laut Firmware)
|
# Touchpad ein/ausschalten (Fn+F7 = Ctrl+Super+F24 laut Firmware)
|
||||||
bind = CTRL SUPER, F24, exec, /home/tekki/.config/hypr/scripts/touchpad-toggle.sh
|
bind = CTRL SUPER, F24, exec, /home/tekki/.config/hypr/scripts/touchpad-toggle.sh
|
||||||
|
|||||||
Executable
+11
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
SHADER="$HOME/.config/hypr/shaders/waves.glsl"
|
||||||
|
CURRENT=$(hyprctl getoption decoration:screen_shader | grep "str:" | awk '{print $2}' | tr -d '"')
|
||||||
|
|
||||||
|
if [[ "$CURRENT" == "$SHADER" ]]; then
|
||||||
|
hyprshade off
|
||||||
|
hyprctl keyword debug:damage_tracking 2
|
||||||
|
else
|
||||||
|
hyprctl keyword debug:damage_tracking 0
|
||||||
|
hyprshade on "$SHADER"
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user