This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[SOLVED]Hostname in login and lock screens

Tags: None
(comma "," separated)
patdae
Registered Member
Posts
2
Karma
0
Hi,
How to add the host name (as text) to the login and lock screens ?
My systems run with : Arch Linux x86_64, 5.18.9-arch1-1, Plasma 5.25.2, sddm 0.19.0, KWin, Breeze.

Thanks for your attention,
P.

Last edited by patdae on Sun Jul 10, 2022 11:00 am, edited 1 time in total.
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS
Hi!

You could fork/copy an existing theme and customize it displaying what you need, see e.g. ArchWiki — SDDM — Editing themes.
patdae
Registered Member
Posts
2
Karma
0
I found myself a solution :
Add the following in Clock.qml to display the host name and change its color :
Code: Select all
QQC2.Label {
        text: sddm.hostName
        color: "#ffff00"
        font.pointSize: 64
        Layout.alignment: Qt.AlignHCenter
    }

This solve only for the login screen. For the lock screen I have no solution right now !


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell