Files
dotfiles/hypr/scripts/gamemode.sh
Nikolai Papin c9795e2514 feat(hypr): add nwg-dock autostart and MPD control submap;
feat(hypr): add window swallowing for kitty and Steam workspace rules;
feat(waybar): create minimal config for gamemode and add notification panel button;
refactor(waybar): simplify config, merge memory/swap displays, update workspace icons;
refactor(swaync): remove CPU slider and adjust button styling;
experiment(hypr): increase vibrancy and change screenshot sound;
experiment(rmpc): update progress bar symbols;
fix(rofi): add mouse support to all menu configurations;
chore(hypr): update gamemode script to toggle minimal waybar
2025-12-21 22:00:37 +03:00

29 lines
825 B
Bash
Executable File

#!/usr/bin/env sh
STATUSBAR="waybar"
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 $STATUSBAR > /dev/null; then
pkill $STATUSBAR
waybar -c "$HOME/.config/waybar/config_minimal.jsonc" &
fi
exit
fi
if pgrep $STATUSBAR > /dev/null; then
pkill $STATUSBAR
waybar -c "$HOME/.config/waybar/config.jsonc" &
fi
hyprctl reload