Skip to content

Commit 5e9947d

Browse files
committed
feat: update hyprland config to v0.53
Signed-off-by: Reputable2722 <153411261+Reputable2772@users.noreply.github.com>
1 parent 9bc6733 commit 5e9947d

14 files changed

Lines changed: 56 additions & 58 deletions

File tree

Users/WickedWizard/Programs/Browsers/firefox.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ in
4040
bind = [
4141
"SUPER, V, exec, firefox"
4242
];
43-
windowrulev2 = [
44-
"workspace 1, initialClass:(firefox)"
43+
windowrule = [
44+
"match:initial_class (firefox), workspace 1"
4545
];
4646
};
4747
}

Users/WickedWizard/Programs/Browsers/junction.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"x-scheme-handler/junction" = [ "re.sonny.Junction.desktop" ];
2323
};
2424

25-
wayland.windowManager.hyprland.settings.windowrulev2 = [
26-
"tag +dialog, class:(re.sonny.Junction)"
25+
wayland.windowManager.hyprland.settings.windowrule = [
26+
"match:class (re.sonny.Junction), tag +dialog"
2727
];
2828
}

Users/WickedWizard/Programs/Browsers/librewolf.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
bind = [
3333
"SUPER, B, exec, librewolf"
3434
];
35-
windowrulev2 = [
36-
"workspace 3, initialClass:(librewolf)"
35+
windowrule = [
36+
"match:initial_class (librewolf), workspace 3"
3737
];
3838
};
3939
}

Users/WickedWizard/Programs/Desktop/Hyprland/Hypr/hyprland.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
general = {
2929
layout = "dwindle";
3030
resize_on_border = true;
31-
no_border_on_floating = true;
3231
};
3332

3433
cursor = {
@@ -40,6 +39,7 @@
4039

4140
monitor = [
4241
"eDP-1,1920x1080@60,0x0,1"
42+
"HDMI-A-1,1024x768@60,1920x0,1,transform,0"
4343
];
4444

4545
misc = {
Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,29 @@
11
{
22
wayland.windowManager.hyprland.settings = {
3-
windowrulev2 = [
3+
windowrule = [
44
# Fullscreen should inhibit idle
5-
"idleinhibit fullscreen, class:^(*)$"
6-
"idleinhibit fullscreen, title:^(*)$"
7-
"idleinhibit fullscreen, fullscreen:1"
5+
"match:fullscreen true, idle_inhibit fullscreen"
86

97
# Picture-in-Picture for any windows tagged pip
10-
"float, tag:pip"
11-
"pin, tag:pip"
12-
"keepaspectratio, tag:pip"
13-
"noborder, tag:pip"
14-
"plugin:hyprbars:nobar, tag:pip"
15-
"size 480 270, tag:pip"
16-
"minsize 240 135, tag:pip"
17-
"maxsize 960 540, tag:pip"
18-
"move 100%-490 100%-280, tag:pip"
8+
"match:tag pip, float on"
9+
"match:tag pip, pin on"
10+
"match:tag pip, keep_aspect_ratio on"
11+
"match:tag pip, decorate off"
12+
# "match:tag pip, plugin:hyprbars:nobar"
1913

20-
# make pop-up file dialogs floating, centred, and pinned
21-
"tag +dialog, title:(Progress|Save File|Save As)"
22-
# "tag +dialog, title:(Open|Progress|Save File|Save As)"
23-
"tag +dialog, class:(xdg-desktop-portal-gtk)"
24-
"float, tag:dialog"
25-
"center, tag:dialog"
26-
"pin, tag:dialog"
27-
"noborder, tag:dialog"
14+
"match:tag pip, size 480 270"
15+
"match:tag pip, min_size 240 135"
16+
"match:tag pip, max_size 960 540"
17+
"match:tag pip, move 100%-490 100%-280"
18+
19+
# Make pop-up file dialogs floating, centred, and pinned
20+
"match:title (Progress|Save File|Save As), tag +dialog"
21+
"match:class xdg-desktop-portal-gtk, tag +dialog"
22+
23+
"match:tag dialog, float on"
24+
"match:tag dialog, center on"
25+
"match:tag dialog, pin on"
26+
"match:tag dialog, decorate off"
2827
];
2928
};
3029
}

Users/WickedWizard/Programs/Desktop/Hyprland/copyq.nix

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@
1818
"SUPER, C, exec, copyq toggle"
1919
];
2020
windowrule = [
21-
"float, initialClass:com.github.hluk.copyq"
22-
"float, initialClass:com.github.hluk.copyq"
23-
"opaque, initialClass:com.github.hluk.copyq"
24-
"dimaround, initialClass:com.github.hluk.copyq"
25-
"stayfocused, initialClass:com.github.hluk.copyq"
21+
"match:initial_class com.github.hluk.copyq, float on"
22+
"match:initial_class com.github.hluk.copyq, opaque on"
23+
"match:initial_class com.github.hluk.copyq, dim_around on"
24+
"match:initial_class com.github.hluk.copyq, stay_focused on"
2625
];
2726
};
2827
}

Users/WickedWizard/Programs/Desktop/Hyprland/wofi.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@
4949
"SUPER, R, exec, wofi --show run"
5050
"SUPER, period, exec, ${pkgs.wofi-emoji}/bin/wofi-emoji"
5151
];
52-
windowrulev2 = [
53-
"float, initialClass:wofi"
54-
"stayfocused, initialClass:wofi"
55-
"dimaround on, initialClass:wofi"
52+
windowrule = [
53+
"match:initial_class wofi, float on"
54+
"match:initial_class wofi, stay_focused on"
55+
"match:initial_class wofi, dim_around on"
5656
];
5757
};
5858

Users/WickedWizard/Programs/Misc/xwaylandvideobridge.nix

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
kdePackages.xwaylandvideobridge
66
];
77

8-
wayland.windowManager.hyprland.settings.windowrulev2 = [
9-
"opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$"
10-
"noanim,class:^(xwaylandvideobridge)$"
11-
"noinitialfocus,class:^(xwaylandvideobridge)$"
12-
"maxsize 1 1,class:^(xwaylandvideobridge)$"
13-
"noblur,class:^(xwaylandvideobridge)$"
8+
wayland.windowManager.hyprland.settings.windowrule = [
9+
"match:class ^(xwaylandvideobridge)$, opacity 0.0 override 0.0 override"
10+
"match:class ^(xwaylandvideobridge)$, anim off"
11+
"match:class ^(xwaylandvideobridge)$, initial_focus off"
12+
"match:class ^(xwaylandvideobridge)$, max_size 1 1"
13+
"match:class ^(xwaylandvideobridge)$, blur off"
1414
];
1515
}

Users/WickedWizard/Programs/Productivity/newsflash.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
services.flatpak.packages = [ "io.gitlab.news_flash.NewsFlash" ];
33

4-
wayland.windowManager.hyprland.settings.windowrulev2 = [
5-
"workspace 2, initialTitle:(Newsflash)"
4+
wayland.windowManager.hyprland.settings.windowrule = [
5+
"match:initial_title (Newsflash), workspace 2"
66
];
77

88
programs.autostart.flatpaks = [ "io.gitlab.news_flash.NewsFlash" ];

Users/WickedWizard/Programs/Productivity/safeeyes.nix

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ in
2424
{
2525
home.packages = [ safeeyes ];
2626

27-
wayland.windowManager.hyprland.settings.windowrulev2 = [
28-
"fullscreen,initialClass:^(Safeeyes)$"
29-
"stayfocused,initialClass:^(Safeeyes)$"
30-
"focusonactivate,initialClass:^(Safeeyes)$"
27+
wayland.windowManager.hyprland.settings.windowrule = [
28+
"match:initial_class ^(Safeeyes)$, fullscreen on"
29+
"match:initial_class ^(Safeeyes)$, stay_focused on"
30+
"match:initial_class ^(Safeeyes)$, focus_on_activate on"
3131
];
3232

33-
# programs.autostart.packages = [ safeeyes ];
33+
programs.autostart.packages = [ safeeyes ];
3434
}

0 commit comments

Comments
 (0)