From f76624f9ce67bf9bfd0f54887837e81f0767b758 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Tue, 7 Nov 2023 12:51:55 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20perf(hypr):=20new=20base=20rule?= =?UTF-8?q?=20for=20centering=20and=20float=20windows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/cava/config | 2 +- .config/hypr/keybinds/binds.conf | 2 +- .config/hypr/themes/luna/rules.conf | 10 +++++----- .config/waybar/config.jsonc | 3 ++- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.config/cava/config b/.config/cava/config index 2f9aacb4..0c9f8f2f 100644 --- a/.config/cava/config +++ b/.config/cava/config @@ -22,7 +22,7 @@ framerate = 75 # The number of bars (0-200). 0 sets it to auto (fill up console). # Bars' width and space between bars in number of characters. ;bars = 0 -;bar_width = 6 +bar_width = 3 ;bar_spacing = 1 # bar_height is only used for output in "noritake" format ; bar_height = 32 diff --git a/.config/hypr/keybinds/binds.conf b/.config/hypr/keybinds/binds.conf index 1d1c102a..8660fe18 100644 --- a/.config/hypr/keybinds/binds.conf +++ b/.config/hypr/keybinds/binds.conf @@ -17,7 +17,7 @@ bind=SUPER,W,exec,librewolf bind=SUPER,O,exec,~/.config/hypr/scripts/custom_app_launch obsidian bind=SUPERSHIFT,E,exec, ~/.config/hypr/scripts/custom_app_launch nemo bind=SUPER,RETURN,exec,kitty -bind=SUPER,E,exec,kitty --class kitty-yazi yazi +bind=SUPER,E,exec,kitty --class center-float yazi # Launchers bind=SUPER, 23, exec, rofi -show drun -theme ~/.config/rofi/style.rasi # tab diff --git a/.config/hypr/themes/luna/rules.conf b/.config/hypr/themes/luna/rules.conf index bb592089..75bff37e 100644 --- a/.config/hypr/themes/luna/rules.conf +++ b/.config/hypr/themes/luna/rules.conf @@ -41,8 +41,6 @@ windowrule = float, nm-connection-editor ## Other windowrulev2 = center,class:^(kitty)$ -windowrulev2 = opacity 0.80, class:^(Rofi)$ -windowrule = animation slide, Rofi windowrulev2 = animation windowsOut, 0, class:(wleave) windowrule = float, keyb-kitty windowrule = center 1, keyb-kitty @@ -51,10 +49,12 @@ windowrule = size 30% 85%,^(pavucontrol)$ windowrule = float, ^(yazi-geeqie)$ windowrule = size 80% 80%,^(yazi-geeqie)$ windowrule = center 1, ^(yazi-geeqie)$ -windowrule = float, ^(kitty-yazi)$ -windowrule = size 80% 80%,^(kitty-yazi)$ -windowrule = center 1, ^(kitty-yazi)$ windowrulev2 = opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$ windowrulev2 = noanim,class:^(xwaylandvideobridge)$ windowrulev2 = nofocus,class:^(xwaylandvideobridge)$ windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$ + +## Base Rules +windowrule = float, ^(center-float)$ +windowrule = size 70% 70%, ^(center-float)$ +windowrule = center 1, ^(center-float)$ diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc index 568d9970..2a35e327 100644 --- a/.config/waybar/config.jsonc +++ b/.config/waybar/config.jsonc @@ -284,7 +284,8 @@ "reverse": false, "source": "auto", "stereo": true, - "waves": false + "waves": false, + "on-click": "kitty --class center-float cava" }, "custom/music": { "format": "{icon} {}",