Hyprland-dotfiles/hypr/scripts/toggle-animations.sh
Stephan Raabe 4ee14513e8 Updates
2024-04-22 15:52:39 +02:00

13 lines
391 B
Bash
Executable File

#!/bin/bash
cache_file="$HOME/.cache/toggle_animation"
if [[ $(cat $HOME/dotfiles/hypr/conf/animation.conf) == *"disabled"* ]]; then
echo ":: Toggle blocked by disabled.conf variation."
else
if [ -f $cache_file ] ;then
hyprctl keyword animations:enabled true
rm $cache_file
else
hyprctl keyword animations:enabled false
touch $cache_file
fi
fi