Files
dotfiles/hypr/scripts/gamemode.sh
Nikolai Papin 9faceb2309 feat: add new waybar top configuration with separate config and style files;
feat: add waybar colors.css for centralized color definitions;
experiment: change cava visual style to solid blue foreground and disable gradient;
chore: remove nwg-dock-hyprland from hyprland autostart and toggle scripts;
refactor: update waybar launch commands to use new config_top.jsonc and style_top.css;
refactor: simplify gamemode.sh by removing STATUSBAR variable and updating waybar commands;
chore: add placeholder config_bottom.jsonc and style_bottom.css for future dual-bar setup
2025-12-23 17:02:09 +03:00

28 lines
905 B
Bash
Executable File

#!/usr/bin/env sh
HYPRGAMEMODE=$(hyprctl getoption animations:enabled | awk 'NR==1{print $2}')
if [ "$HYPRGAMEMODE" = 1 ] ; then
hyprctl --batch "\
keyword animations:enabled 0;\
keyword decoration:shadow:enabled 0;\
keyword decoration:blur:enabled 0;\
keyword decoration:blur:ignore_opacity 1;\
keyword decoration:blur:new_optimizations 1;\
keyword decoration:blur:xray 1;\
keyword decoration:active_opacity 1;\
keyword plugin:hyprfocus:fade_opacity 1"
if pgrep waybar > /dev/null; then
pkill waybar
# TODO: lite waybar version
waybar -c "$HOME/.config/waybar/config_top.jsonc" -s "$HOME/.config/waybar/style_top.css" &
fi
exit
fi
if pgrep waybar > /dev/null; then
pkill waybar
waybar -c "$HOME/.config/waybar/config_top.jsonc" -s "$HOME/.config/waybar/style_top.css" &
fi
hyprctl reload