make gaypanel semitransparent

This commit is contained in:
Henry Hiles 2026-10-20 14:49:28 -04:00
commit 412edf1909
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
2 changed files with 16 additions and 4 deletions

View file

@ -45,9 +45,10 @@ in
# The default theme, minus its hardcoded @define-color palette, so the GTK theme's colors show through # The default theme, minus its hardcoded @define-color palette, so the GTK theme's colors show through
environment.etc."xdg/walker/themes/system/style.css".source = environment.etc."xdg/walker/themes/system/style.css".source =
pkgs.runCommand "walker-system-style.css" { } '' pkgs.runCommand "walker-system-style.css" { }
sed '/^@define-color/d' ${pkgs.walker.src}/resources/themes/default/style.css > $out ''
''; sed '/^@define-color/d' ${pkgs.walker.src}/resources/themes/default/style.css > $out
'';
environment.etc.${filename}.source = (pkgs.formats.toml { }).generate "config.toml" { environment.etc.${filename}.source = (pkgs.formats.toml { }).generate "config.toml" {
autostart = [ session-programs ]; autostart = [ session-programs ];
@ -137,6 +138,14 @@ in
} }
]; ];
# # Blur behind gaypanel's semi-transparent background
# layer-rules = [
# {
# match-namespace = [ "^panel$" ];
# blur.disable = false;
# }
# ];
outputs = { outputs = {
HDMI-A-1.position.x = 0; HDMI-A-1.position.x = 0;
DP-3.position.x = 1920; DP-3.position.x = 1920;

View file

@ -55,8 +55,11 @@ let
} }
''; '';
# GNOME-style workspace dots, with the active one stretched into a pill
style = pkgs.writeText "style.css" '' style = pkgs.writeText "style.css" ''
window.panel {
background: alpha(var(--window-bg-color), 0.5);
}
.workspaces button { .workspaces button {
min-width: 8px; min-width: 8px;
min-height: 8px; min-height: 8px;