mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
HostService: add user display name and use it in UI
- Add username/envRealName/realName and displayName to HostService - Resolve real name from `getent passwd $USER` with NOCTALIA_REALNAME override - Use HostService.displayName on the lock screen and in the Control Center profile card
This commit is contained in:
@@ -7,6 +7,7 @@ import Quickshell.Widgets
|
||||
import qs.Commons
|
||||
import qs.Modules.Panels.ControlCenter.Cards
|
||||
import qs.Modules.Panels.Settings
|
||||
import qs.Services.System
|
||||
import qs.Services.UI
|
||||
import qs.Widgets
|
||||
|
||||
@@ -37,7 +38,7 @@ NBox {
|
||||
Layout.fillWidth: true
|
||||
spacing: Style.marginXXS
|
||||
NText {
|
||||
text: Quickshell.env("USER") || "user"
|
||||
text: HostService.displayName
|
||||
font.weight: Style.fontWeightBold
|
||||
font.capitalization: Font.Capitalize
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user