hyprland-dotfiles/config/hypr/scripts/ChangeBlur.sh

17 lines
466 B
Bash
Raw Normal View History

2025-02-20 21:55:10 +00:00
#!/bin/bash
# Script for changing blurs on the fly
notif="$HOME/.config/swaync/images/ja.png"
STATE=$(hyprctl -j getoption decoration:blur:passes | jq ".int")
if [ "${STATE}" == "2" ]; then
hyprctl keyword decoration:blur:size 2
hyprctl keyword decoration:blur:passes 1
notify-send -e -u low -i "$notif" " Less Blur"
else
hyprctl keyword decoration:blur:size 5
hyprctl keyword decoration:blur:passes 2
notify-send -e -u low -i "$notif" " Normal Blur"
fi