Browse Source
2.) Increased Blur Settings 3.) Tweaked and Cleaned up scripts, some small tweak only like adding a bell icon - > Gamemode toggle (Super Shift G) will now reload previous wallpaper once back to normal modified - > The pywalSwww.sh is integrated in Refresh.sh to update rofi backgroundpull/78/head
14 changed files with 69 additions and 34 deletions
@ -1,9 +1,12 @@ |
|||||||
#!/bin/bash |
#!/bin/bash |
||||||
|
|
||||||
|
dunstify -u low -i "$dunst_notif" |
||||||
|
|
||||||
wifi="$(nmcli r wifi | awk 'FNR = 2 {print $1}')" |
wifi="$(nmcli r wifi | awk 'FNR = 2 {print $1}')" |
||||||
if [ "$wifi" == "enabled" ]; then |
if [ "$wifi" == "enabled" ]; then |
||||||
rfkill block all & |
rfkill block all & |
||||||
dunstify -t 1000 'airplane mode: active' |
dunstify -u normal -i "$dunst_notif" -t 1000 'airplane mode: active' |
||||||
else |
else |
||||||
rfkill unblock all & |
rfkill unblock all & |
||||||
dunstify -t 1000 'airplane mode: inactive' |
dunstify -u normal -i "$dunst_notif" -t 1000 'airplane mode: inactive' |
||||||
fi |
fi |
||||||
|
|||||||
@ -1,13 +1,15 @@ |
|||||||
#!/bin/bash |
#!/bin/bash |
||||||
|
|
||||||
|
dunst_notif="$HOME/.config/dunst/images/bell.png" |
||||||
|
|
||||||
STATE=$(hyprctl -j getoption decoration:blur:passes | jq ".int") |
STATE=$(hyprctl -j getoption decoration:blur:passes | jq ".int") |
||||||
|
|
||||||
if [ "${STATE}" == "2" ]; then |
if [ "${STATE}" == "2" ]; then |
||||||
hyprctl keyword decoration:blur:size 3 |
hyprctl keyword decoration:blur:size 2 |
||||||
hyprctl keyword decoration:blur:passes 1 |
hyprctl keyword decoration:blur:passes 1 |
||||||
notify-send "Less blur" |
dunstify -u low -i "$dunst_notif" "Less blur" |
||||||
else |
else |
||||||
hyprctl keyword decoration:blur:size 7.8 |
hyprctl keyword decoration:blur:size 6 |
||||||
hyprctl keyword decoration:blur:passes 2 |
hyprctl keyword decoration:blur:passes 2 |
||||||
notify-send "Normal blur" |
dunstify -u low -i "$dunst_notif" "Normal blur" |
||||||
fi |
fi |
||||||
|
|||||||
@ -1,16 +1,27 @@ |
|||||||
#!/bin/bash |
#!/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}') |
HYPRGAMEMODE=$(hyprctl getoption animations:enabled | awk 'NR==2{print $2}') |
||||||
if [ "$HYPRGAMEMODE" = 1 ] ; then |
if [ "$HYPRGAMEMODE" = 1 ] ; then |
||||||
hyprctl --batch "\ |
hyprctl --batch "\ |
||||||
keyword animations:enabled 0;\ |
keyword animations:enabled 0;\ |
||||||
keyword decoration:drop_shadow 0;\ |
keyword decoration:drop_shadow 0;\ |
||||||
keyword decoration:blur 0;\ |
keyword decoration:blur:passes 0;\ |
||||||
keyword general:gaps_in 0;\ |
keyword general:gaps_in 0;\ |
||||||
keyword general:gaps_out 0;\ |
keyword general:gaps_out 0;\ |
||||||
keyword general:border_size 1;\ |
keyword general:border_size 1;\ |
||||||
keyword decoration:rounding 0" |
keyword decoration:rounding 0" |
||||||
swww kill |
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 |
exit |
||||||
fi |
fi |
||||||
hyprctl reload |
hyprctl reload |
||||||
|
|||||||
Loading…
Reference in new issue