From fbd6b8867548053c0511d4797a814d5150412e48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Sat, 18 Nov 2023 01:45:51 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(hypr):=20pyprland=20new=20rule?= =?UTF-8?q?s=20and=20changes=20to=20the=20scratchpads?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/hypr/pyprland.toml | 2 +- .config/hypr/scripts/rofi/keybindings | 3 +-- .config/hypr/themes/luna/rules.conf | 14 ++++---------- 3 files changed, 6 insertions(+), 13 deletions(-) diff --git a/.config/hypr/pyprland.toml b/.config/hypr/pyprland.toml index c3afaa71..f44f9ecb 100644 --- a/.config/hypr/pyprland.toml +++ b/.config/hypr/pyprland.toml @@ -5,7 +5,7 @@ plugins = ["scratchpads", "expose", "magnify"] command = "pavucontrol" unfocus = "hide" animation = "fromLeft" -margin = 20 +position = "1% 8%" lazy = true [scratchpads.terminal] diff --git a/.config/hypr/scripts/rofi/keybindings b/.config/hypr/scripts/rofi/keybindings index a452cf0e..25cbab34 100755 --- a/.config/hypr/scripts/rofi/keybindings +++ b/.config/hypr/scripts/rofi/keybindings @@ -1,5 +1,4 @@ #!/usr/bin/bash CONFIG=$(rofi -show file-browser-extended -theme ~/.config/rofi/style.rasi -file-browser-stdout -file-browser-dir "$HOME"/.config/keyb/bindings) -hyprctl dispatch exec "[float;center;size 35% 80%] kitty keyb -k '$CONFIG'" - +hyprctl dispatch exec "[float;size 35% 80%;center 1] kitty keyb -k '$CONFIG'" diff --git a/.config/hypr/themes/luna/rules.conf b/.config/hypr/themes/luna/rules.conf index dd75b83f..56dfc583 100644 --- a/.config/hypr/themes/luna/rules.conf +++ b/.config/hypr/themes/luna/rules.conf @@ -41,20 +41,14 @@ windowrulev2 = workspace 2,class:^(.*Code.*)$ ## Scratchpads $scratchpad = class:^(scratchpad)$ windowrulev2 = float,$scratchpad -windowrulev2 = size 70% 70%,$scratchpad windowrulev2 = center 1,$scratchpad -windowrulev2 = workspace special silent,$scratchpad +windowrulev2 = size 70% 70%,$scratchpad +windowrulev2 = workspace special:scratchpad silent,$scratchpad $sideScratchpad = class:^(.*pavucontrol.*)$|^(.*localsend.*)$|(.*blueman-manager.*)$ -windowrulev2 = workspace special silent,$sideScratchpad +windowrulev2 = workspace special:sideScratchpad silent,$sideScratchpad +windowrulev2 = size 30% 90%,$sideScratchpad windowrulev2 = float,$sideScratchpad -windowrulev2 = size 30% 85%,$sideScratchpad - -# $miniScratchpad = class:^(.*galculator.*)$ -# windowrulev2 = workspace special silent,$miniScratchpad -# windowrulev2 = float,$miniScratchpad -# windowrulev2 = size 30% 40%,$miniScratchpad -# windowrulev2 = center 1,$scratchpad ## Specific App Rules