This commit is contained in:
Miguel Palhas
2026-02-05 14:57:31 +00:00
parent 616a3929cd
commit afb7ef8c68
5 changed files with 64 additions and 60 deletions
+5 -5
View File
@@ -34,11 +34,11 @@
"4, monitor:eDP-1"
];
windowrulev2 = [
"noinitialfocus, class:bevy-.*"
"float, class:bevy-.*"
"size 800 600, class:bevy-.*"
"move 100%-800 100%-600, class:bevy-.*"
windowrule = [
"no_initial_focus on, match:class bevy-.*"
"float on, match:class bevy-.*"
"size 800 600, match:class bevy-.*"
"move 100%-800 100%-600, match:class bevy-.*"
];
};
+26 -22
View File
@@ -56,7 +56,11 @@ in
misc = {
disable_hyprland_logo = true;
disable_splash_rendering = true;
new_window_takes_over_fullscreen = 2;
on_focus_under_fullscreen = 2;
};
ecosystem = {
no_update_news = true;
};
xwayland = {
@@ -122,40 +126,40 @@ in
"special:yazi, on-created-empty:[float; size 1400 1000; move center] kitty --session sessions/yazi, persistent:false"
];
windowrulev2 = [
windowrule = [
# imv
"float, class:imv"
"move cursor -50% -50%, class:imv"
"float on, match:class imv"
"move cursor -50% -50%, match:class imv"
"float, title:termfilechooser"
"move center, title:termfilechooser"
"float on, match:title termfilechooser"
"move center, match:title termfilechooser"
# bluetooth
"float, class:blueman-manager"
"move cursor -50% -50%, class:blueman-manager"
"size 600 400, class:blueman-manager"
"float on, match:class blueman-manager"
"move cursor -50% -50%, match:class blueman-manager"
"size 600 400, match:class blueman-manager"
# pavucontrol
"float, class:pavucontrol"
"move cursor -50% -50%, class:pavucontrol"
"size 600 600, class:pavucontrol"
"float on, match:class pavucontrol"
"move cursor -50% -50%, match:class pavucontrol"
"size 600 600, match:class pavucontrol"
# metamask
"float, class:chrome-nkbihfbeogaeaoehlefnkodbefgpgknn-.*"
"float on, match:class chrome-nkbihfbeogaeaoehlefnkodbefgpgknn-.*"
# bitwarden, chrome
"float, class:chrome-nngceckbapebfimnlniiiahkandclblb-.*"
"float on, match:class chrome-nngceckbapebfimnlniiiahkandclblb-.*"
# no gaps when only window
"bordersize 0, floating:0, onworkspace:w[t1]"
"rounding 0, floating:0, onworkspace:w[t1]"
"bordersize 0, floating:0, onworkspace:w[tg1]"
"rounding 0, floating:0, onworkspace:w[tg1]"
"bordersize 0, floating:0, onworkspace:f[1]"
"rounding 0, floating:0, onworkspace:f[1]"
"border_size 0, match:float 0, match:workspace w[t1]"
"rounding 0, match:float 0, match:workspace w[t1]"
"border_size 0, match:float 0, match:workspace w[tg1]"
"rounding 0, match:float 0, match:workspace w[tg1]"
"border_size 0, match:float 0, match:workspace f[1]"
"rounding 0, match:float 0, match:workspace f[1]"
"move center, onworkspace:special:terminal"
"move center, onworkspace:special:yazi"
"move center, match:workspace special:terminal"
"move center, match:workspace special:yazi"
];
"$mod" = "SUPER";
+11 -11
View File
@@ -89,18 +89,18 @@ let
local size=$1
local color=$2
# Unset existing rules for single-window workspaces
hyprctl keyword windowrulev2 "unset, floating:0, onworkspace:w[t1]"
hyprctl keyword windowrulev2 "unset, floating:0, onworkspace:w[tg1]"
hyprctl keyword windowrulev2 "unset, floating:0, onworkspace:f[1]"
hyprctl keyword windowrulev2 "unset, fullscreen:1"
hyprctl keyword windowrule "unset, match:float 0, match:workspace w[t1]"
hyprctl keyword windowrule "unset, match:float 0, match:workspace w[tg1]"
hyprctl keyword windowrule "unset, match:float 0, match:workspace f[1]"
hyprctl keyword windowrule "unset, match:fullscreen 1"
# Re-add with specified border size
hyprctl keyword windowrulev2 "bordersize $size, floating:0, onworkspace:w[t1]"
hyprctl keyword windowrulev2 "rounding 0, floating:0, onworkspace:w[t1]"
hyprctl keyword windowrulev2 "bordersize $size, floating:0, onworkspace:w[tg1]"
hyprctl keyword windowrulev2 "rounding 0, floating:0, onworkspace:w[tg1]"
hyprctl keyword windowrulev2 "bordersize $size, floating:0, onworkspace:f[1]"
hyprctl keyword windowrulev2 "rounding 0, floating:0, onworkspace:f[1]"
hyprctl keyword windowrulev2 "bordersize $size, fullscreen:1"
hyprctl keyword windowrule "border_size $size, match:float 0, match:workspace w[t1]"
hyprctl keyword windowrule "rounding 0, match:float 0, match:workspace w[t1]"
hyprctl keyword windowrule "border_size $size, match:float 0, match:workspace w[tg1]"
hyprctl keyword windowrule "rounding 0, match:float 0, match:workspace w[tg1]"
hyprctl keyword windowrule "border_size $size, match:float 0, match:workspace f[1]"
hyprctl keyword windowrule "rounding 0, match:float 0, match:workspace f[1]"
hyprctl keyword windowrule "border_size $size, match:fullscreen 1"
# Set border color
hyprctl keyword general:col.active_border "$color"
}
+16 -16
View File
@@ -38,27 +38,27 @@
"WEBKIT_DISABLE_DMABUF_RENDERER, 1"
];
windowrulev2 = [
windowrule = [
# ethui-dev
"workspace 2, title:ethui-dev.*"
"noinitialfocus, title:ethui-dev.*"
"float, title:ethui-dev - dialog.*"
"workspace 2, match:title ethui-dev.*"
"no_initial_focus on, match:title ethui-dev.*"
"float on, match:title ethui-dev - dialog.*"
"workspace 1, title:ethui.*"
"noinitialfocus, title:ethui.*"
"float, title:ethui - dialog.*"
"workspace 1, match:title ethui.*"
"no_initial_focus on, match:title ethui.*"
"float on, match:title ethui - dialog.*"
"workspace 1, title:^\\[bevy\\].*"
"workspace 1, match:title ^\\[bevy\\].*"
"workspace 3 silent, class:bevy-.*"
"noinitialfocus, class:bevy-.*"
"fullscreen, class:bevy-.*"
"workspace 3 silent, match:class bevy-.*"
"no_initial_focus on, match:class bevy-.*"
"fullscreen on, match:class bevy-.*"
"workspace 1 silent, title:egui-.*"
"bordersize 0, title:egui-.*"
"float, title:egui-.*"
"noblur, title:egui-.*"
"move 100%-w-20 100%-h-20, title:egui-.*"
"workspace 1 silent, match:title egui-.*"
"border_size 0, match:title egui-.*"
"float on, match:title egui-.*"
"no_blur on, match:title egui-.*"
"move 100%-w-20 100%-h-20, match:title egui-.*"
];
render = {