From 333c30a3fb20e7815fbb48d802c688a82951a843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Sun, 5 Nov 2023 18:32:29 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(hypr):=20added=20new=20perform?= =?UTF-8?q?ance=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit disabled aw because of weird time calculations (have to investigate further) --- .config/hypr/keybinds/binds.conf | 4 ++++ .config/hypr/scripts/autostart | 6 +++--- .config/hypr/scripts/performance | 16 ++++++++++++++++ 3 files changed, 23 insertions(+), 3 deletions(-) create mode 100755 .config/hypr/scripts/performance diff --git a/.config/hypr/keybinds/binds.conf b/.config/hypr/keybinds/binds.conf index 684933b0..1d1c102a 100644 --- a/.config/hypr/keybinds/binds.conf +++ b/.config/hypr/keybinds/binds.conf @@ -163,3 +163,7 @@ bindle=,XF86AudioLowerVolume,exec,swayosd --output-volume lower bindle=,XF86AudioMute,exec,swayosd --output-volume mute-toggle bindle=,XF86AudioMicMute,exec,exec swayosd --input-volume mute-toggle + + +# Disable anim, blur, etc +bind=SUPER,F1,exec,~/.config/hypr/scripts/performance diff --git a/.config/hypr/scripts/autostart b/.config/hypr/scripts/autostart index aadc44b4..e3f496d9 100755 --- a/.config/hypr/scripts/autostart +++ b/.config/hypr/scripts/autostart @@ -45,9 +45,9 @@ kitty --class btop-kitty btop & kitty --class nvtop-kitty nvtop & # Activity Watch -aw-server-rust & -aw-watcher-window-wayland & -aw-watcher-afk & +# aw-server-rust & +# aw-watcher-window-wayland & +# aw-watcher-afk & #Launch autostart apps dex -a -s ~/.config/autostart/ & # Easyeffects, Spotify, Discord and Thunderbird diff --git a/.config/hypr/scripts/performance b/.config/hypr/scripts/performance new file mode 100755 index 00000000..5c9cbd94 --- /dev/null +++ b/.config/hypr/scripts/performance @@ -0,0 +1,16 @@ +#!/usr/bin/env sh + +HYPRGAMEMODE=$(hyprctl getoption animations:enabled | awk 'NR==2{print $2}') +if [ "$HYPRGAMEMODE" = 1 ]; then + hyprctl --batch "\ + keyword animations:enabled 0;\ + keyword decoration:drop_shadow 0;\ + keyword decoration:blur:enabled 0;\ + keyword general:gaps_in 0;\ + keyword general:gaps_out 0;\ + keyword general:border_size 1;\ + keyword decoration:rounding 0" + exit +fi + +hyprctl reload