update config

This commit is contained in:
lostecho
2023-07-14 18:15:31 +08:00
parent e63470c4e7
commit d663ff61d0
16 changed files with 632 additions and 253 deletions

View File

@@ -7,8 +7,10 @@ swww init
THEMEIS=$(readlink -f ~/.config/waybar/style.css | cut -d '-' -f2)
#show the correct wallpapper based on the theme
if [ $THEMEIS == "dark.css" ]; then
swww img -o DP-2 ~/.config/hypr/wallpaper-dark.jpg
else
swww img -o DP-2 ~/.config/hypr/wallpaper.jpg
fi
#if [ $THEMEIS == "dark.css" ]; then
# swww img -o DP-2 ~/.config/hypr/wallpaper-dark.jpg
#else
# swww img -o DP-2 ~/.config/hypr/wallpaper.jpg
#fi
swww img -o DP-2 ~/.config/hypr/wallpaper-dark.jpg

View File

@@ -0,0 +1,14 @@
#!/usr/bin/env sh
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 general:gaps_in 0;\
keyword general:gaps_out 0;\
keyword general:border_size 1;\
keyword decoration:rounding 0"
exit
fi
hyprctl reload