From 808df0dbe842b37649be6985f5d2bbfcc1136f3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Fri, 10 Nov 2023 14:26:20 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(hypr):=20new=20rules=20and=20s?= =?UTF-8?q?cratchpads?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/hypr/keybinds/binds.conf | 5 +-- .config/hypr/pyprland.json | 17 ++++++++-- .config/hypr/themes/luna/rules.conf | 48 +++++++++++++++++++++-------- 3 files changed, 53 insertions(+), 17 deletions(-) diff --git a/.config/hypr/keybinds/binds.conf b/.config/hypr/keybinds/binds.conf index d45d51f6..4e056c0a 100644 --- a/.config/hypr/keybinds/binds.conf +++ b/.config/hypr/keybinds/binds.conf @@ -12,13 +12,12 @@ bind=SUPER,F,fullscreen,0 bind=SUPER,Z,exec,pypr zoom ## Applications -bind=SUPER,W,exec,librewolf +bind=SUPER,W,exec,~/.config/hypr/scripts/custom_app_launch librewolf bind=SUPERSHIFT,C,exec,~/.config/hypr/scripts/custom_app_launch code bind=SUPER,O,exec,~/.config/hypr/scripts/custom_app_launch obsidian bind=SUPERSHIFT,O,exec,~/.config/hypr/scripts/custom_app_launch office bind=SUPERSHIFT,E,exec, ~/.config/hypr/scripts/custom_app_launch nemo bind=SUPER,RETURN,exec,kitty -bind=SUPERSHIFT,V,exec,easyeffects # Launchers bind=SUPER, 23, exec, rofi -show drun -theme ~/.config/rofi/style.rasi # tab @@ -27,6 +26,8 @@ bind=SUPER, 23, exec, rofi -show drun -theme ~/.config/rofi/style.rasi # tab bind=SUPER,V,exec,pypr toggle volume bind=SUPER, 51, exec, pypr toggle terminal && hyprctl dispatch bringactivetotop ## Backslash bind=SUPER, B, exec, pypr toggle btop && hyprctl dispatch bringactivetotop +bind=SUPERSHIFT, G, exec, pypr toggle galculator && hyprctl dispatch bringactivetotop +bind=SUPERSHIFT, B, exec, pypr toggle bluetooth && hyprctl dispatch bringactivetotop bind=SUPER,E,exec,pypr toggle yazi && hyprctl dispatch bringactivetotop # Screenshotting diff --git a/.config/hypr/pyprland.json b/.config/hypr/pyprland.json index f2ccf443..7a85e03b 100644 --- a/.config/hypr/pyprland.json +++ b/.config/hypr/pyprland.json @@ -11,7 +11,8 @@ "command": "pavucontrol", "unfocus": "hide", "animation": "fromLeft", - "margin": 20 + "margin": 20, + "lazy": true }, "terminal": { "command": "kitty --class scratchpad" @@ -20,7 +21,19 @@ "command": "kitty --class scratchpad yazi" }, "btop": { - "command": "kitty --class scratchpad btop" + "command": "kitty --class scratchpad btop", + "lazy": true + }, + "galculator": { + "command": "galculator", + "lazy": true + }, + "bluetooth": { + "command": "blueman-manager", + "animation": "fromRight", + "unfocus": "hide", + "margin": 20, + "lazy": true } } } diff --git a/.config/hypr/themes/luna/rules.conf b/.config/hypr/themes/luna/rules.conf index 4dd0d258..b329dde2 100644 --- a/.config/hypr/themes/luna/rules.conf +++ b/.config/hypr/themes/luna/rules.conf @@ -1,15 +1,20 @@ ## Autostart -windowrulev2 = workspace 23 silent,class:^(thunderbird)$ -windowrulev2 = workspace 21,silent,class:^(Spotify)$ -windowrulev2 = workspace 22 silent,class:^(discord)$ +windowrulev2 = workspace 23 silent,class:^(.*thunderbird.*)$ +windowrulev2 = workspace 21,silent,class:^(.*Spotify.*)$ +windowrulev2 = workspace 22 silent,class:^(.*discord.*)$ ## Base Rules -$center-float = class:^(center-float)$|^(file-roller)$|^(.*easyeffects.*)$|^(Geeqie)$ +$center-float = class:^(center-float)$|^(.*file-roller.*)$|^(Geeqie)$|^(.*celluloid.*)$ windowrulev2 = float,$center-float windowrulev2 = size 70% 70%,$center-float windowrulev2 = center 1,$center-float +$center-float-mini = class:^(center-float-mini)$|^(.*galculator.*)$ +windowrulev2 = float,$center-float-mini +windowrulev2 = size 30% 40%,$center-float-mini +windowrulev2 = center 1,$center-float-mini + ## Float Rules windowrule = float, xfce-polkit|galculator|wleave|title:Open File|title:Open Folder|title:branchdialog|nwg-look|nm-connection-editor @@ -19,17 +24,17 @@ windowrule = float, xfce-polkit|galculator|wleave|title:Open File|title:Open Fol # Games windowrulev2 = workspace 8,class:^(.*steam_app.*)$ windowrulev2 = workspace 18,class:^(steam)$|(.*atlauncher.*)$|(.*heroic.*)$ -windowrulev2 = workspace 8,class:^(Ryujinx)$|(.*cemu.*)$|(.*dolphin.*)$|(.*RetroArch.*)$|(xemu)$|(.*duckstation.*)$|(rpcs3)$ - -# Tech -windowrulev2 = workspace 26,class:^(nm-connection-editor)$ -windowrulev2 = workspace 9,class:^(virt-manager)$ +windowrulev2 = workspace 8,class:^(.*Ryujinx.*)$|(.*cemu.*)$|(.*dolphin.*)$|(.*RetroArch.*)$|(.*xemu.*)$|(.*duckstation.*)$|(.*rpcs3.*)$ # Media +windowrulev2 = workspace 9,class:^(.*virt-manager.*)$ windowrulev2 = workspace 17,class:^(.*obsproject.*)$ windowrulev2 = workspace 6,class:^(.*vital.*)$|(.*fl64.*)$ -windowrulev2 = workspace 5,class:^(pinta)$ +windowrulev2 = workspace 5,class:^(.*pinta.*)$ +windowrulev2 = workspace 16,class:^(.*easyeffects.*)$|^(.*qpwgraph.*)$ +# Others +windowrulev2 = workspace 10,class:^(.*obsidian.*)$ # Scratchpads $scratchpad = class:^(scratchpad)$ @@ -38,17 +43,34 @@ windowrulev2 = size 70% 70%,$scratchpad windowrulev2 = center 1,$scratchpad windowrulev2 = workspace special silent,$scratchpad -$pavu = class:^(pavucontrol)$ +$pavu = class:^(.*pavucontrol.*)$ windowrulev2 = workspace special silent,$pavu windowrulev2 = float,$pavu windowrulev2 = size 30% 85%,$pavu +$galculator = class:^(.*galculator.*)$ +windowrulev2 = workspace special silent,$galculator + +$blueman = class:^(.*blueman-manager.*)$ +windowrulev2 = float,$blueman +windowrulev2 = size 30% 85%,$blueman +windowrulev2 = workspace special silent,$blueman + ## Specific App Rules -$videobridge = class:^(xwaylandvideobridge)$ +$videobridge = class:^(.*xwaylandvideobridge.*)$ windowrulev2 = opacity 0.0 override 0.0 override, $videobridge windowrulev2 = noanim, $videobridge windowrulev2 = nofocus, $videobridge windowrulev2 = noinitialfocus, $videobridge -windowrulev2 = animation windowsOut, 0, class:(wleave) +windowrulev2 = animation windowsOut, 0, class:(.*wleave.*) + +$zathura = class:^(.*zathura.*)$ +windowrulev2 = float, $zathura +windowrulev2 = size 35% 90%, $zathura +windowrulev2 = center 1, $zathura + +$scrcpy = class:^(.*scrcpy.*)$ +windowrulev2 = center 1,$scrcpy +windowrulev2 = float,$scrcpy