From f45424899dac4debfe15b442eaab1af4f9f5ae10 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Mon, 30 Jun 2025 10:59:25 +0200 Subject: [PATCH] fixes gaps and windowrules --- .config/hypr/config/colors.conf | 38 +++++++-------- .config/hypr/config/decorations.conf | 6 ++- .config/hypr/config/monitor.conf | 2 + .config/hypr/config/variables.conf | 17 ++++--- .config/hypr/config/windowrules.conf | 70 ++++++++++++++-------------- .config/hypr/config/workspaces.conf | 3 ++ 6 files changed, 71 insertions(+), 65 deletions(-) diff --git a/.config/hypr/config/colors.conf b/.config/hypr/config/colors.conf index 43f5a30..cd05c0a 100644 --- a/.config/hypr/config/colors.conf +++ b/.config/hypr/config/colors.conf @@ -1,19 +1,19 @@ -$wallpaper = /usr/share/wallpapers/downloaded/pexels-lucadross-4129849.jpg -$background = rgb(111311) -$foreground = rgb(F6DBD0) -$color0 = rgb(3B3E3B) -$color1 = rgb(616371) -$color2 = rgb(9D7552) -$color3 = rgb(7D7E82) -$color4 = rgb(BE6B2C) -$color5 = rgb(868A94) -$color6 = rgb(E69879) -$color7 = rgb(EAC3B4) -$color8 = rgb(A4897E) -$color9 = rgb(616371) -$color10 = rgb(9D7552) -$color11 = rgb(7D7E82) -$color12 = rgb(BE6B2C) -$color13 = rgb(868A94) -$color14 = rgb(E69879) -$color15 = rgb(EAC3B4) \ No newline at end of file +$wallpaper = /usr/share/wallpapers/downloaded/pexels-zetong-li-880728-18780512.jpg +$background = rgb(0D0F10) +$foreground = rgb(FCF1D3) +$color0 = rgb(38393A) +$color1 = rgb(7F4E47) +$color2 = rgb(7D7F54) +$color3 = rgb(8B7C7D) +$color4 = rgb(61868C) +$color5 = rgb(D2D1E6) +$color6 = rgb(F5D782) +$color7 = rgb(F2E3B8) +$color8 = rgb(A99F81) +$color9 = rgb(7F4E47) +$color10 = rgb(7D7F54) +$color11 = rgb(8B7C7D) +$color12 = rgb(61868C) +$color13 = rgb(D2D1E6) +$color14 = rgb(F5D782) +$color15 = rgb(F2E3B8) \ No newline at end of file diff --git a/.config/hypr/config/decorations.conf b/.config/hypr/config/decorations.conf index a548276..b42b632 100644 --- a/.config/hypr/config/decorations.conf +++ b/.config/hypr/config/decorations.conf @@ -8,8 +8,10 @@ source = ~/.config/hypr/config/colors.conf decoration { active_opacity = 1 - inactive_opacity = 0.6 - rounding = 3 + inactive_opacity = 0.7 + rounding = 10 + dim_inactive = true + dim_strength = 0.1 # https://wiki.hyprland.org/0.45.0/Configuring/Variables/#blur blur { diff --git a/.config/hypr/config/monitor.conf b/.config/hypr/config/monitor.conf index 49989d7..d8a1ee0 100644 --- a/.config/hypr/config/monitor.conf +++ b/.config/hypr/config/monitor.conf @@ -7,6 +7,8 @@ monitor = eDP-2, highres@highrr, 0x0, 1, vrr, 0 monitor = DP-2, highres@highrr, auto-left, 1, vrr, 0 +monitor = HDMI-A-1, highres@highrr, auto-left, 1, transform, 1 + # If you need to scale things like steam etc, please uncomment these lines. # Adjust GDK_SCALE accordingly to your liking. #xwayland { diff --git a/.config/hypr/config/variables.conf b/.config/hypr/config/variables.conf index 3e38efe..6cc4a1d 100644 --- a/.config/hypr/config/variables.conf +++ b/.config/hypr/config/variables.conf @@ -4,12 +4,11 @@ source = ~/.config/hypr/config/colors.conf -# Variables wiki https://wiki.hyprland.org/0.45.0/Configuring/Variables/ # -# https://wiki.hyprland.org/0.45.0/Configuring/Variables/#general +# https://wiki.hypr.land/Configuring/Variables/#general general { - gaps_in = 1 - gaps_out = 2 - border_size = 2 + gaps_in = 2 + gaps_out = 1 + border_size = 1 col.active_border = $color2 col.inactive_border = $color4 layout = dwindle # master|dwindle @@ -43,7 +42,7 @@ group { height = 1 indicator_height = 16 rounding = 2 - font_family = "Fira Sans" + font_family = "Roboto Sanss" text_color = $foreground text_offset = -8 font_weight_active = ultraheavy @@ -57,9 +56,9 @@ group { # https://wiki.hyprland.org/0.45.0/Configuring/Variables/#misc misc { - font_family = "Fira Sans" - splash_font_family = "Fira Sans" - disable_hyprland_logo = false + font_family = "Roboto Sans" + splash_font_family = "Roboto Sans" + disable_hyprland_logo = true col.splash = $color2 background_color = $background enable_swallow = true diff --git a/.config/hypr/config/windowrules.conf b/.config/hypr/config/windowrules.conf index 280cdcb..fa59a24 100644 --- a/.config/hypr/config/windowrules.conf +++ b/.config/hypr/config/windowrules.conf @@ -6,40 +6,40 @@ # Float Necessary Windows windowrule = float, title:Rofi -windowrulev2 = float, class:^(org.pulseaudio.pavucontrol) -windowrulev2 = float, class:^()$,title:^(Picture in picture)$ -windowrulev2 = float, class:^()$,title:^(Save File)$ -windowrulev2 = float, class:^()$,title:^(Open File)$ -windowrulev2 = float, class:^(LibreWolf)$,title:^(Picture-in-Picture)$ -windowrulev2 = float, class:^(blueman-manager)$ -windowrulev2 = float, class:^(xdg-desktop-portal-gtk|xdg-desktop-portal-kde|xdg-desktop-portal-hyprland)(.*)$ -windowrulev2 = float, class:^(polkit-gnome-authentication-agent-1|hyprpolkitagent|org.org.kde.polkit-kde-authentication-agent-1)(.*)$ -windowrulev2 = float, class:^(CachyOSHello)$ -windowrulev2 = float, class:^(zenity)$ -windowrulev2 = float, class:^()$,title:^(Steam - Self Updater)$ +windowrule = float, class:^(org.pulseaudio.pavucontrol) +windowrule = float, class:^()$,title:^(Picture in picture)$ +windowrule = float, class:^()$,title:^(Save File)$ +windowrule = float, class:^()$,title:^(Open File)$ +windowrule = float, class:^(LibreWolf)$,title:^(Picture-in-Picture)$ +windowrule = float, class:^(blueman-manager)$ +windowrule = float, class:^(xdg-desktop-portal-gtk|xdg-desktop-portal-kde|xdg-desktop-portal-hyprland)(.*)$ +windowrule = float, class:^(polkit-gnome-authentication-agent-1|hyprpolkitagent|org.org.kde.polkit-kde-authentication-agent-1)(.*)$ +windowrule = float, class:^(CachyOSHello)$ +windowrule = float, class:^(zenity)$ +windowrule = float, class:^()$,title:^(Steam - Self Updater)$ # Increase the opacity -windowrulev2 = opacity 0.92, class:^(thunar|nemo|dolphin)$ -windowrulev2 = opacity 0.96, class:^(discord|armcord|webcord)$ -windowrulev2 = opacity 0.95, title:^(QQ|Telegram)$ -windowrulev2 = opacity 0.95, title:^(NetEase Cloud Music Gtk4)$ +windowrule = opacity 0.92, class:^(thunar|nemo|dolphin)$ +windowrule = opacity 0.96, class:^(discord|armcord|webcord)$ +windowrule = opacity 0.95, title:^(QQ|Telegram)$ +windowrule = opacity 0.95, title:^(NetEase Cloud Music Gtk4)$ # General window rules -windowrulev2 = float, title:^(Picture-in-Picture)$ -windowrulev2 = size 960 540, title:^(Picture-in-Picture)$ -windowrulev2 = move 25%-, title:^(Picture-in-Picture)$ -windowrulev2 = float, title:^(imv|mpv|danmufloat|termfloat|nemo|ncmpcpp)$ -windowrulev2 = move 25%-, title:^(imv|mpv|danmufloat|termfloat|nemo|ncmpcpp)$ -windowrulev2 = size 960 540, title:^(imv|mpv|danmufloat|termfloat|nemo|ncmpcpp)$ -windowrulev2 = pin, title:^(danmufloat)$ -windowrulev2 = rounding 5, title:^(danmufloat|termfloat)$ -windowrulev2 = animation slide right, class:^(kitty|Alacritty)$ -windowrulev2 = noblur, class:^(org.mozilla.firefox)$ +windowrule = float, title:^(Picture-in-Picture)$ +windowrule = size 960 540, title:^(Picture-in-Picture)$ +windowrule = move 25%-, title:^(Picture-in-Picture)$ +windowrule = float, title:^(imv|mpv|danmufloat|termfloat|nemo|ncmpcpp)$ +windowrule = move 25%-, title:^(imv|mpv|danmufloat|termfloat|nemo|ncmpcpp)$ +windowrule = size 960 540, title:^(imv|mpv|danmufloat|termfloat|nemo|ncmpcpp)$ +windowrule = pin, title:^(danmufloat)$ +windowrule = rounding 5, title:^(danmufloat|termfloat)$ +windowrule = animation slide right, class:^(kitty|Alacritty)$ +windowrule = noblur, class:^(org.mozilla.firefox)$ # Decorations related to floating windows on workspaces 1 to 10 -windowrulev2 = bordersize 2, floating:1, onworkspace:w[fv1-10] -windowrulev2 = bordercolor $color4, floating:1, onworkspace:w[fv1-10] -windowrulev2 = rounding 8, floating:1, onworkspace:w[fv1-10] +windowrule = bordersize 2, floating:1, onworkspace:w[fv1-10] +windowrule = bordercolor $color4, floating:1, onworkspace:w[fv1-10] +windowrule = rounding 8, floating:1, onworkspace:w[fv1-10] # Decorations related to tiling windows on workspaces 1 to 10 -windowrulev2 = bordersize 3, floating:0, onworkspace:f[1-10] -windowrulev2 = rounding 4, floating:0, onworkspace:f[1-10] +windowrule = bordersize 3, floating:0, onworkspace:f[1-10] +windowrule = rounding 4, floating:0, onworkspace:f[1-10] # Windows Rules End # # Workspaces Rules https://wiki.hyprland.org/0.45.0/Configuring/Workspace-Rules/ # @@ -51,8 +51,8 @@ windowrulev2 = rounding 4, floating:0, onworkspace:f[1-10] # workspace = special:scratchpad, on-created-empty:$applauncher # no_gaps_when_only deprecated instead workspaces rules with selectors can do the same # Smart gaps from 0.45.0 https://wiki.hyprland.org/0.45.0/Configuring/Workspace-Rules/#smart-gaps -workspace = w[tv1-10], gapsout:5, gapsin:3 -workspace = f[1], gapsout:5, gapsin:3 +#workspace = w[tv1-10], gapsout:5, gapsin:3 +#workspace = f[1], gapsout:5, gapsin:3 # Workspaces Rules End # # Layers Rules # @@ -63,6 +63,6 @@ layerrule = animation fade 50%, wallpaper # Layers Rules End # # Zotero Libreoffice -windowrulev2 = float,class:^(Zotero)$,title:^(Citation Dialog)$ -windowrulev2 = center,class:^(Zotero)$,title:^(Citation Dialog)$ -windowrulev2 = noanim,class:^(Zotero)$,title:^(Citation Dialog)$ +windowrule = float,class:^(Zotero)$,title:^(Citation Dialog)$ +windowrule = center,class:^(Zotero)$,title:^(Citation Dialog)$ +windowrule = noanim,class:^(Zotero)$,title:^(Citation Dialog)$ diff --git a/.config/hypr/config/workspaces.conf b/.config/hypr/config/workspaces.conf index 63dc86e..6d7456b 100644 --- a/.config/hypr/config/workspaces.conf +++ b/.config/hypr/config/workspaces.conf @@ -11,3 +11,6 @@ workspace = 5, monitor:DP-2 workspace = 6, monitor:DP-2 workspace = 7, monitor:DP-2 workspace = 8, monitor:DP-2 + +workspace = 7, monitor:HDMI-A-1 +workspace = 8, monitor:HDMI-A-1