Update Uncommon-tips-&-tricks.md

Fix the gamemode.sh script
This commit is contained in:
Yassine IBRAHIMI 2024-02-19 14:55:43 +01:00 committed by Mihai Fufezan
parent 1a4345c6e0
commit 75e0ba1cf8

View file

@ -130,7 +130,7 @@ For increased performance in games, or for less distractions at a keypress
```bash
#!/usr/bin/env sh
HYPRGAMEMODE=$(hyprctl getoption animations:enabled | awk 'NR==2{print $2}')
HYPRGAMEMODE=$(hyprctl getoption animations:enabled | awk 'NR==1{print $2}')
if [ "$HYPRGAMEMODE" = 1 ] ; then
hyprctl --batch "\
keyword animations:enabled 0;\