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

Login screen brightness

Tags: None
(comma "," separated)
ik.kde
Registered Member
Posts
31
Karma
0
OS

Login screen brightness

Sat Dec 03, 2016 11:31 am
Is there any way to set default login screen brightness? Because by default it is too bright and hurts my eyes in dark room.

P.S. I am on KDE 5.8.4.

Any help is appreciated.
User avatar
Rog131
Registered Member
Posts
828
Karma
10

Re: Login screen brightness  Topic is solved

Sat Dec 03, 2016 7:57 pm
ik.kde wrote:Is there any way to set default login screen brightness? Because by default it is too bright and hurts my eyes in dark room.

P.S. I am on KDE 5.8.4.




SDDM - Simple Desktop Display Manager

- SDDM wiki: https://en.wikipedia.org/wiki/Simple_De ... ay_Manager
- SDDM theming: https://github.com/sddm/sddm/wiki/Theming
- QML wiki: https://en.wikipedia.org/wiki/QML

As default the KDE is using the SDDM. The default plasma 5 greeter theme is the Breeze.


Plasma 5.8.4 Breeze SDDM theme

The Plasma 5.8.4 Breeze SDDM theme background is set at the /usr/share/sddm/themes/breeze/Background.qml. As default the background color is '#1d99f3'. The user can change a darker color to the background. Color QML Basic Type: http://doc.qt.io/qt-5/qml-color.html

Image

Image background brightness and contrast can be set with the BrightnessContrast QML Type: http://doc.qt.io/qt-5/qml-qtgraphicalef ... trast.html .


Breeze Nightmode

Copying the /usr/share/sddm/themes/breeze/ to /usr/share/sddm/themes/breeze-nightmode/.

Editing the metadata.desktop:
Code: Select all
[SddmGreeterTheme]
Name=Breeze Nightmode
Name[x-test]=xxBreeze Nightmodexx

Description=Breeze Theme with nightmode
Description[x-test]=xxBreeze Theme with nightmodexx

Author=
Copyright=
License=CC-BY-SA
Type=sddm-theme
Version=0.1
Website=https://github.com/sddm/sddm
Screenshot=nightmode.png
MainScript=Main.qml
ConfigFile=theme.conf
TranslationsDirectory=translations
Email=
Theme-Id=breeze-nightmode
Theme-API=2.0


Adding a 'screenshot' - nightmode.png. There is a new option:

Image
Full image: http://imgur.com/XIjf743

Editing the Background.qml:
Code: Select all
/***************************************************************************
* Copyright (c) 2013 Abdurrahman AVCI <abdurrahmanavci@gmail.com>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge,
* publish, distribute, sublicense, and/or sell copies of the Software,
* and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
* OR OTHER DEALINGS IN THE SOFTWARE.
*
***************************************************************************/

import QtQuick 2.2
import QtGraphicalEffects 1.0

FocusScope {
    property alias source: image.source
    property alias fillMode: image.fillMode
    property alias status: image.status

    Rectangle {
        anchors.fill: parent
        color: "#1d99f3"
        MouseArea {
            anchors.fill: parent
            acceptedButtons: Qt.LeftButton | Qt.RightButton
            onDoubleClicked: {
                if (mouse.button == Qt.RightButton)
                    parent.color = 'midnightblue';
                else
                    parent.color = '#1d99f3';
            }
        }
    }

    Image {
        id: image
        anchors.fill: parent

        clip: true
        focus: true
        smooth: true
    }
   
    BrightnessContrast {
        anchors.fill: image
        source: image
        brightness: 0.0
       
        MouseArea {
            anchors.fill: parent
            propagateComposedEvents: true
            acceptedButtons: Qt.LeftButton | Qt.RightButton
            onPressAndHold: {
                if (mouse.button == Qt.RightButton)
                    parent.brightness = '-0.7';
                else
                    parent.brightness = '0.0';
            }
        }
    }
}



When right double clicking the Breeze Nightmode greeter the background is set to the 'midnightblue'. If left double clicked the background color is set to the '#1d99f3'.

Image


With the background image there is an option to lower the brightness pressing and holding the right mouse button. If left mouse button is pressed and hold the brightness will return to the default.

Image


More of the QML

- MouseArea QML Type: http://doc.qt.io/qt-5/qml-qtquick-mousearea.html


Earlier

- KDE SDDM video background: viewtopic.php?f=289&t=131783#p364567
- SDDM theme time format: viewtopic.php?f=289&t=130484&p=365600#p365600
ik.kde
Registered Member
Posts
31
Karma
0
OS

Re: Login screen brightness

Mon Dec 05, 2016 3:26 am
Thanks for such a detailed answer.

I knew it was sddm and have read man page for sddm and sddm.conf but there is no such info there.

I will play around with sddm settings later today.

Btw what is the name of theme from last screenshot? My default sddm theme doesn't have keyboard layout button in bottom left corner and background image looks nice.
User avatar
Rog131
Registered Member
Posts
828
Karma
10

Re: Login screen brightness

Mon Dec 05, 2016 6:34 pm
ik.kde wrote:Btw what is the name of theme from last screenshot? My default sddm theme doesn't have keyboard layout button in bottom left corner and background image looks nice.


All images are from the standard Breeze theme. I only added the mouse actions to the Background.qml.

The background image is 'Dreamworks-Concept-Art-Collection-22.jpg': http://www.iamag.co/features/dreamworks ... ollection/

Brewing the 'HowTo' to a theme: Breeze Nightmode ...and throwing it to the KDE Store -> https://store.kde.org/p/1164332/ .

YouTube clip with the VirtualBox&Neon: https://youtu.be/j-l1-L6eVpc .
User avatar
Rog131
Registered Member
Posts
828
Karma
10

Re: Login screen brightness

Mon Dec 12, 2016 7:48 pm
... another theme

SDDM Theme Breeze Cover

SDDM Theme Breeze Cover is a modification of the standard Breeze (Plasma 5.8.4) theme.

Added a Win 10 like cover screen to the Breeze greeter.


Image

and if the user wants :

Image

YouTube clip: https://youtu.be/Ew4HR3GvnB8
User avatar
Rog131
Registered Member
Posts
828
Karma
10

Re: Login screen brightness

Sat Jan 14, 2017 10:17 am
Plasma 5.9 (beta)

The Plasma 5.9 Breeze SDDM theme is supporting user configurable background color in the SDDM theme: https://phabricator.kde.org/D2983

Image

Bug 370521 - [Regresion] SDDM breeze theme unable to change backgound: https://bugs.kde.org/show_bug.cgi?id=370521

At the beta stage the kcm-sddm module doesn't have the color picker. The user can add to the /usr/share/sddm/themes/breeze/theme.conf.user the background color and the background type to the configuration file - example:

Code: Select all
[General]
type=color
color=darkgreen


Colors are the Qt supported colors: http://doc.qt.io/qt-5/qml-color.html
User avatar
Rog131
Registered Member
Posts
828
Karma
10

Re: Login screen brightness

Tue Apr 11, 2017 7:19 pm
...another theme: SDDM Theme Breeze Slider
https://store.kde.org/p/1174674/

SDDM Theme Breeze Slider is a modification of the standard Breeze (Plasma 5.9.4) theme.

This sddm theme is using a semitransparent (color: "#F2000000") rectangle. The sddm texts are on the rectangle and moving out the sight when not needed.

Image

The rectangle is moving:
- up when up arrow is pressed
- down when the down arrow is pressed.
- mouse movement will also trigger the down movement.
- after 3 minute inactivity the rectangle is sliding out of sight.

YouTube preview: https://youtu.be/04X4cb9XTkg

Matching lock screen: - Lock screen readability: viewtopic.php?f=289&t=131783&start=45#p372930
Oderus
Registered Member
Posts
3
Karma
0

Re: Login screen brightness

Thu Apr 20, 2017 2:40 am
not sure if this is the correct place to ask but I got this link from the readme included in the sddm theme. Curious if theres a way to change the clock from 24h to 12h?

Thanks
User avatar
Rog131
Registered Member
Posts
828
Karma
10

Re: Login screen brightness

Thu Apr 20, 2017 10:35 am
Oderus wrote:not sure if this is the correct place to ask but I got this link from the readme included in the sddm theme. Curious if theres a way to change the clock from 24h to 12h?

Thanks


Floating clock ?

breeze-slider/Floaterclock.qml
or after the installation
/usr/share/sddm/themes/breeze-slider/Floaterclock.qml

line 23 is
Code: Select all
text: Qt.formatTime(timeSource.data["Local"]["DateTime"], " hh:mm ")


Image

change it to the
Code: Select all
text: Qt.formatTime(timeSource.data["Local"]["DateTime"])

Image

or
Code: Select all
text: Qt.formatTime(timeSource.data["Local"]["DateTime"], " hh:mm A ")

Image

More of the Qml datetime formats: http://doc.qt.io/qt-5/qml-qtqml-date.html#details


SDDM language and locales - in general

The SDDM is following the system locales: What locale settings sddm respects?
https://www.bountysource.com/issues/379 ... m-respects


Example at here (Arch Linux)

Writing /etc/default/locale
Code: Select all
LC_TIME="en_US.utf8"


and adding to the /lib/systemd/system/sddm.service
Code: Select all
[Service]

EnvironmentFile=-/etc/default/locale


After reboot the time format is using US time format.

Note !
When launched from the terminal:
Code: Select all
sddm-greeter --test --theme /usr/share/sddm/themes/breeze-slider/

The SDDM is using users locales.
Oderus
Registered Member
Posts
3
Karma
0

Re: Login screen brightness

Fri Apr 21, 2017 5:23 pm
Rog131 wrote:
Oderus wrote:not sure if this is the correct place to ask but I got this link from the readme included in the sddm theme. Curious if theres a way to change the clock from 24h to 12h?

Thanks


Floating clock ?

breeze-slider/Floaterclock.qml
or after the installation
/usr/share/sddm/themes/breeze-slider/Floaterclock.qml

line 23 is
Code: Select all
text: Qt.formatTime(timeSource.data["Local"]["DateTime"], " hh:mm ")


Image

change it to the
Code: Select all
text: Qt.formatTime(timeSource.data["Local"]["DateTime"])

Image

or
Code: Select all
text: Qt.formatTime(timeSource.data["Local"]["DateTime"], " hh:mm A ")

Image

More of the Qml datetime formats: http://doc.qt.io/qt-5/qml-qtqml-date.html#details


SDDM language and locales - in general

The SDDM is following the system locales: What locale settings sddm respects?
https://www.bountysource.com/issues/379 ... m-respects


Example at here (Arch Linux)

Writing /etc/default/locale
Code: Select all
LC_TIME="en_US.utf8"


and adding to the /lib/systemd/system/sddm.service
Code: Select all
[Service]

EnvironmentFile=-/etc/default/locale


After reboot the time format is using US time format.

Note !
When launched from the terminal:
Code: Select all
sddm-greeter --test --theme /usr/share/sddm/themes/breeze-slider/

The SDDM is using users locales.



Thank you so much for the support and speedy reply. This worked perfectly.

Cheers
Oderus
Registered Member
Posts
3
Karma
0

Login Icons

Tue May 16, 2017 6:29 pm
Hi! I've been trying to change the initial icons for login (power shutdown suspend reboot) But i cannot seem to locate where the images are to change them. I've done extensive file searching but still can't find it, unless i've already changed it and some sort of icon cache for the sddm exists. Any ideas how i can accomplish changing them? Or really I just need the path to them :)

Thank You
User avatar
Rog131
Registered Member
Posts
828
Karma
10

Re: Login screen brightness

Wed Mar 14, 2018 3:51 pm
SDDM Theme Breeze Slider 2: https://store.kde.org/p/1222217/

By editing the theme.conf text file the user can set:

- Slider color and transparency
- Buttons: suspend, reboot, shutdown and search
- Clock time/date/format/place...
- Background: color/image/slide/video

Preview clip: From Breeze Slider 2 SDDM theme to Breeze Custom Lock.mp4 - https://youtu.be/rCDBdGe8va0

Image
Full image:https://imgur.com/zNVecy3

Clip is using:
- Breeze Slider 2 SDDM theme: https://store.kde.org/p/1222217/
- ImageSplash: https://store.kde.org/p/1173958/
- Video wallpaper: https://store.kde.org/p/1213488/
- Breeze Custom Lock Screen: https://store.kde.org/p/1216681/


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]