From 7d1f7b5db61bf649abb9d1f01ef9eb70f6507495 Mon Sep 17 00:00:00 2001 From: rope Date: Sat, 1 Aug 2026 22:05:09 +0100 Subject: [PATCH] quickshell: launcher header with nix logo and user@host Co-Authored-By: Claude Opus 5 --- settings/quickshell.nix | 42 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/settings/quickshell.nix b/settings/quickshell.nix index 14ce93d..3aaea75 100644 --- a/settings/quickshell.nix +++ b/settings/quickshell.nix @@ -2319,6 +2319,48 @@ in width: launcherPanel.panelW - 24 spacing: 8 + // Header: who, and where. Both halves are baked in + // at build time — the shell is generated per host, + // so there is nothing to look up at runtime. + // Snowflake is the same recolour trick as the bar's. + Row { + spacing: 8 + + Item { + width: 18 + height: 18 + anchors.verticalCenter: parent.verticalCenter + + Image { + id: launchLogo + anchors.fill: parent + source: "file://" + Commands.nixLogo + sourceSize.width: 18 + sourceSize.height: 18 + smooth: true + visible: false + } + + ColorOverlay { + anchors.fill: launchLogo + source: launchLogo + color: Theme.base0D + } + } + + SText { + anchors.verticalCenter: parent.verticalCenter + text: "${config.home.username}" + color: Theme.base0D + } + + SText { + anchors.verticalCenter: parent.verticalCenter + text: "@${osConfig.networking.hostName}" + color: Theme.base03 + } + } + // Calculator result: appears the moment the query // parses as arithmetic. Click (or ⏎) copies it. Rectangle {