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

11 lines
338 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 ''
hyprctl reload
fi
scripts/hyprsettings tickle