Files
dotfiles/hypr/scripts/gamemode.sh
Nikolai Papin f30e7d0085 feat: add hyprland sound system with event-triggered audio feedback;
feat: implement new hyprland plugins (hyprfocus, hyprbars, dynamic-cursors);
refactor: reorganize hyprland autostart with delay staging and plugin configuration;
feat: add notification urgency-based sound system to swaync;
feat: enhance waybar with battery module, mpd controls, and dock bar;
refactor: update waybar taskbar with active window indicators and sorting;
feat: add hyprland shutdown sound and login audio greeting;
fix: adjust cava sleep timer and mpd sticker database configuration;
feat: update rmpc keybindings for improved playlist management;
fix: modify rofi keybindings for better navigation;
chore: add zsh aliases and misspell corrections;
refactor: update styling across swaync, waybar, and hyprland with new border radii and accent colors.
2025-12-29 20:47:57 +03:00

28 lines
777 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
$HOME/.config/waybar/run.sh
fi
exit
fi
if pgrep waybar > /dev/null; then
pkill waybar
$HOME/.config/waybar/run.sh
fi
hyprctl reload