quickshell: launcher header with nix logo and user@host
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
dcfc7f9573
commit
7d1f7b5db6
1 changed files with 42 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue