14 changed files with 69 additions and 34 deletions
@ -1,9 +1,12 @@
|
||||
#!/bin/bash |
||||
|
||||
dunstify -u low -i "$dunst_notif" |
||||
|
||||
wifi="$(nmcli r wifi | awk 'FNR = 2 {print $1}')" |
||||
if [ "$wifi" == "enabled" ]; then |
||||
rfkill block all & |
||||
dunstify -t 1000 'airplane mode: active' |
||||
dunstify -u normal -i "$dunst_notif" -t 1000 'airplane mode: active' |
||||
else |
||||
rfkill unblock all & |
||||
dunstify -t 1000 'airplane mode: inactive' |
||||
dunstify -u normal -i "$dunst_notif" -t 1000 'airplane mode: inactive' |
||||
fi |
||||
|
||||
@ -1,13 +1,15 @@
|
||||
#!/bin/bash |
||||
|
||||
dunst_notif="$HOME/.config/dunst/images/bell.png" |
||||
|
||||
STATE=$(hyprctl -j getoption decoration:blur:passes | jq ".int") |
||||
|
||||
if [ "${STATE}" == "2" ]; then |
||||
hyprctl keyword decoration:blur:size 3 |
||||
hyprctl keyword decoration:blur:size 2 |
||||
hyprctl keyword decoration:blur:passes 1 |
||||
notify-send "Less blur" |
||||
dunstify -u low -i "$dunst_notif" "Less blur" |
||||
else |
||||
hyprctl keyword decoration:blur:size 7.8 |
||||
hyprctl keyword decoration:blur:size 6 |
||||
hyprctl keyword decoration:blur:passes 2 |
||||
notify-send "Normal blur" |
||||
dunstify -u low -i "$dunst_notif" "Normal blur" |
||||
fi |
||||
|
||||
@ -1,16 +1,27 @@
|
||||
#!/bin/bash |
||||
|
||||
dunst_notif="$HOME/.config/dunst/images/bell.png" |
||||
SCRIPTSDIR="$HOME/.config/hypr/scripts" |
||||
|
||||
|
||||
HYPRGAMEMODE=$(hyprctl getoption animations:enabled | awk 'NR==2{print $2}') |
||||
if [ "$HYPRGAMEMODE" = 1 ] ; then |
||||
hyprctl --batch "\ |
||||
keyword animations:enabled 0;\ |
||||
keyword decoration:drop_shadow 0;\ |
||||
keyword decoration:blur 0;\ |
||||
keyword decoration:blur:passes 0;\ |
||||
keyword general:gaps_in 0;\ |
||||
keyword general:gaps_out 0;\ |
||||
keyword general:border_size 1;\ |
||||
keyword decoration:rounding 0" |
||||
swww kill |
||||
notify-send "animations off" |
||||
dunstify -u low -i "$dunst_notif" "animations off" |
||||
exit |
||||
else |
||||
swww init && swww img "$HOME/.config/rofi/.current_wallpaper" |
||||
sleep 0.5 |
||||
${SCRIPTSDIR}/RefreshNoWaybar.sh |
||||
dunstify -u low -i "$dunst_notif" "Animations turned on" |
||||
exit |
||||
fi |
||||
hyprctl reload |
||||
hyprctl reload |
||||
|
||||
Loading…
Reference in new issue