diff options
author | Ryan Schanzenbacher <ryan@rschanz.org> | 2024-10-21 14:48:05 -0400 |
---|---|---|
committer | Ryan Schanzenbacher <ryan@rschanz.org> | 2024-10-21 14:48:05 -0400 |
commit | a0ac11339d7f380a63041da46b6f2917a80eed29 (patch) | |
tree | f10faa1b4f0e79438068d775503320290ffac602 /home-config/hypr/perf_mode.sh | |
parent | f4b1d571ae0d6527fd933baadc64e9d67cd56456 (diff) |
Some updates to get locking working again, also added performance mode
script
Diffstat (limited to 'home-config/hypr/perf_mode.sh')
-rwxr-xr-x | home-config/hypr/perf_mode.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/home-config/hypr/perf_mode.sh b/home-config/hypr/perf_mode.sh new file mode 100755 index 0000000..c195688 --- /dev/null +++ b/home-config/hypr/perf_mode.sh | |||
@@ -0,0 +1,14 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | HYPRGAMEMODE=$(hyprctl getoption animations:enabled | awk 'NR==1{print $2}') | ||
3 | if [ "$HYPRGAMEMODE" = 1 ] ; then | ||
4 | hyprctl --batch "\ | ||
5 | keyword animations:enabled 0;\ | ||
6 | keyword decoration:drop_shadow 0;\ | ||
7 | keyword decoration:blur:enabled 0;\ | ||
8 | keyword general:gaps_in 0;\ | ||
9 | keyword general:gaps_out 0;\ | ||
10 | keyword general:border_size 1;\ | ||
11 | keyword decoration:rounding 0" | ||
12 | exit | ||
13 | fi | ||
14 | hyprctl reload | ||