Files
illogical-impulse/hybrid-vertical/.config/eww/scripts/toggle-nightlight.sh
T
2024-02-22 15:35:06 +07:00

10 lines
354 B
Bash
Executable File

#!/usr/bin/bash
currentshader=$(hyprctl getoption decoration:screen_shader -j | gojq -r '.str')
if [[ "$currentshader" != *"extradark.frag" ]]; then
hyprctl keyword decoration:screen_shader '~/.config/hypr/shaders/extradark.frag'
else
hyprctl keyword decoration:screen_shader '~/.config/hypr/shaders/nothing.frag'
fi
scripts/hyprsettings tickle