33 lines
827 B
Bash
33 lines
827 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
function fancy() {
|
||
|
case ${FANCY} in
|
||
|
"0")
|
||
|
echo "> fancy is set to zero, disabling effects"
|
||
|
hyprctl --batch " \
|
||
|
keyword animations:enabled false; \
|
||
|
keyword decoration:dim_inactive false; \
|
||
|
keyword decoration:drop_shadow false; \
|
||
|
keyword decoration:inactive_opacity 1; \
|
||
|
keyword decoration:blur:enabled false;"
|
||
|
;;
|
||
|
"1")
|
||
|
echo "> fancy is set to one, doing nothing"
|
||
|
;;
|
||
|
"2")
|
||
|
echo "> fancy is set to two, enabling effects"
|
||
|
hyprctl --batch " \
|
||
|
keyword animations:enabled true; \
|
||
|
keyword decoration:dim_inactive true; \
|
||
|
keyword decoration:drop_shadow true; \
|
||
|
keyword decoration:inactive_opacity 0.9; \
|
||
|
keyword decoration:blur:enabled true;"
|
||
|
;;
|
||
|
*)
|
||
|
echo "> unknown fancy level \"${FANCY}\", doing nothing"
|
||
|
;;
|
||
|
esac
|
||
|
}
|
||
|
|
||
|
fancy &> /tmp/logs/fancy.log
|