From ae3b7100a9ed0506f237431c465f7b039395f26c Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Tue, 20 Oct 2026 14:15:20 +0200 Subject: [PATCH] Remove the "rounded-window-corners" GNOME extension --- .config/gnome-settings/shell-extensions.ini | 39 +-------------------- .config/gtk-3.0/gtk.css | 4 +++ .config/gtk-4.0/gtk.css | 4 +++ .local/bin/color-palette | 13 +++---- 4 files changed, 14 insertions(+), 46 deletions(-) create mode 100644 .config/gtk-3.0/gtk.css create mode 100644 .config/gtk-4.0/gtk.css diff --git a/.config/gnome-settings/shell-extensions.ini b/.config/gnome-settings/shell-extensions.ini index f8c72a6..0a7d6f3 100644 --- a/.config/gnome-settings/shell-extensions.ini +++ b/.config/gnome-settings/shell-extensions.ini @@ -7,7 +7,7 @@ [org/gnome/shell] -enabled-extensions=['AlphabeticalAppGrid@stuarthayhurst', 'app-hider@lynith.dev', 'appindicator-hider@theophilediot.github.io', 'appindicatorsupport@rgcjonas.gmail.com', 'drive-menu@gnome-shell-extensions.gcampax.github.com', 'forge@jmmaranan.com', 'just-perfection-desktop@just-perfection', 'launch-new-instance@gnome-shell-extensions.gcampax.github.com', 'light-style@gnome-shell-extensions.gcampax.github.com', 'no-screenshot-box@screenshot', 'panel-date-format@keiii.github.com', 'rounded-window-corners@fxgn', 'space-bar@luchrioh'] +enabled-extensions=['AlphabeticalAppGrid@stuarthayhurst', 'app-hider@lynith.dev', 'appindicator-hider@theophilediot.github.io', 'appindicatorsupport@rgcjonas.gmail.com', 'drive-menu@gnome-shell-extensions.gcampax.github.com', 'forge@jmmaranan.com', 'just-perfection-desktop@just-perfection', 'launch-new-instance@gnome-shell-extensions.gcampax.github.com', 'light-style@gnome-shell-extensions.gcampax.github.com', 'no-screenshot-box@screenshot', 'panel-date-format@keiii.github.com', 'space-bar@luchrioh'] disabled-extensions=@as [] @@ -251,43 +251,6 @@ format='%A %B %-d, %Y %H:%M:%S %Z%z' -[org/gnome/shell/extensions/rounded-window-corners-reborn] - -# Rounds all window corners uniformly (e.g., needed for `alacritty`) -# -# The rings drawn by forge sit outside the window frame -# and use a "border-radius" of 13px in -# ~/.config/forge/stylesheet/forge/stylesheet.css so their curves -# stay roughly concentric with the 12px window corners -# -# "padding" stays 0 because forge draws its focus rings outside -# the window frame and they never cover the contents -# -custom-rounded-corner-settings=@a{sv} {} -global-rounded-corner-settings={'padding': <{'left': uint32 0, 'right': 0, 'top': 0, 'bottom': 0}>, 'keepRoundedCorners': <{'maximized': true, 'fullscreen': true}>, 'borderRadius': , 'smoothing': <0.0>, 'borderColor': <(0.6, 0.149, 0.0, 1.0)>, 'enabled': } - -focused-shadow={'horizontalOffset': 0, 'verticalOffset': 4, 'blurOffset': 28, 'spreadRadius': 3, 'opacity': 60} -unfocused-shadow={'horizontalOffset': 0, 'verticalOffset': 2, 'blurOffset': 12, 'spreadRadius': -1, 'opacity': 65} - -# `forge` draws the borders -# => This extension must not -border-width=0 - -# Round GTK3/legacy apps, -# but not libadwaita's ones that are already rounded -skip-libadwaita-app=true -skip-libhandy-app=false - -blacklist=@as [] - -enable-preferences-entry=false - -tweak-kitty-terminal=false - -debug-mode=false - - - [org/gnome/shell/extensions/space-bar] diff --git a/.config/gtk-3.0/gtk.css b/.config/gtk-3.0/gtk.css new file mode 100644 index 0000000..1e30073 --- /dev/null +++ b/.config/gtk-3.0/gtk.css @@ -0,0 +1,4 @@ +/* Window corners of GTK3 apps, + kept in sync with `FORGE_RING_RADIUS` in ~/.local/bin/color-palette + (ring radius = this value + 4px border) */ +decoration { border-radius: 6px; } diff --git a/.config/gtk-4.0/gtk.css b/.config/gtk-4.0/gtk.css new file mode 100644 index 0000000..5ebb379 --- /dev/null +++ b/.config/gtk-4.0/gtk.css @@ -0,0 +1,4 @@ +/* Window corners of libadwaita and GTK4 apps, + kept in sync with `FORGE_RING_RADIUS` in ~/.local/bin/color-palette + (ring radius = this value + 4px border) */ +window.csd { border-radius: 6px; } diff --git a/.local/bin/color-palette b/.local/bin/color-palette index 80a2f7d..7998bec 100755 --- a/.local/bin/color-palette +++ b/.local/bin/color-palette @@ -154,13 +154,10 @@ GNOME_NEUTRALS = { _LIGHTNESS_RESOLUTION = 0.001 -# Corner geometry: -# - Windows are clipped to `WINDOW_RADIUS` -# by the rounded-window-corners-reborn extension -# - forge's rings sit slightly outside the window frame -# => The ring radius adds 1px so the curves stay concentric -# (forge's stock inset is actually 3; see window.js) -WINDOW_RADIUS = 12 +# forge's focus rings sit between a square frame (`alacritty`, GTK3) +# and libadwaita's 12px corners; 10px splits the difference, +# leaving about 2px of mismatch either way +FORGE_RING_RADIUS = 10 # Template for the stylesheet used by the GNOME shell extension `forge` @@ -822,7 +819,7 @@ def render_forge_css(colors: dict[str, str]) -> str: emphasis_dim=as_rgb(colors["emphasis-dim"]), emphasis_dim_a30=as_rgba(colors["emphasis-dim"], alpha=0.3), emphasis_dim_a40=as_rgba(colors["emphasis-dim"], alpha=0.4), - ring_radius=f"{WINDOW_RADIUS + 1}px", + ring_radius=f"{FORGE_RING_RADIUS}px", scheme_name=colors["_scheme"], surface_dim=as_rgb(colors["surface-dim"]), surface_dim_a60=as_rgba(colors["surface-dim"], alpha=0.6),