Code Monkey home page Code Monkey logo

sddm-chili's Introduction

Screenshot of the theme

Chili login theme for SDDM

Chili is hot, just like a real chili! Spice up the login experience for your users, your family and yourself. Chili reduces all the clutter and leaves you with a clean, easy to use, login interface with a modern yet classy touch.

Chili for SDDM is the desktop environment independent adaption of my chili login theme for KDE Plasma with reduced functionality. If you use Plasma as your desktop environment you would likely prefer Chili for KDE Plasma.

Dependencies

  • sddm
  • qt5
  • qt5-quickcontrols
  • qt5-graphicaleffects

Installing the theme

Download the tar archive from openDesktop and extract the contents to the theme directory of SDDM (change the path for the downloaded file if necessary):

$ sudo tar -xzvf ~/Downloads/sddm-chili.tar.gz -C /usr/share/sddm/themes

This will extract all the files to a folder called chili inside of the themes directory of SDDM. After that you will have to point SDDM to the new theme by editing its config file:

$ sudo nano /usr/lib/sddm/sddm.conf.d/sddm.conf

In the [Theme] section set Current=chili. For a more detailed description please refer to the Arch wiki on sddm. Note that, depending on your system setup, a duplicate configuration may exist in /etc/sddm.conf. Usually this takes preference so you want to set the above line in this file if you have it.

Theming the theme

Chili is highly customizable through its included theme.conf file. You can alter the intensity of the background blur and even not have any blur at all. If you have a very big screen and the fonts have a weird size then fix it yourself in the config file. You can even change the avatar size to something that better suits you. And if that wasn't enough still you can translate the power buttons because SDDM is still lacking behind in translations!

  • Change the path of the background image relative to the theme directory: background=assets/background.jpg

  • Adjust the screen dimensions if Chili looks weird: ScreenWidth=6000 ScreenHeight=4000

  • Disable blur or play around with its intensity: blur=true recursiveBlurLoops=4 recursiveBlurRadius=15

  • (De-)Activate a new oultine-only effect for the password field: PasswordFieldOutlined=false

  • Adjust the font size of the whole theme in one go: (Usually somewhere between 10 and 16, be careful) changeFontPointSize=

  • Adjust the size of the avatar image: changeAvatarPixelSize=

  • Translate the labels of the power buttons: translationReboot= translationSuspend= translationPowerOff=

You might see some grey pixels around your avatar image which is caused by the anti-aliasing of the opacity mask. You may change the fill color of the mask which resides in assets/mask.svg to a color that better matches with your avatar colors. Do not change the opacity of the mask! Take note that this might affect other avatar images with different colors present on your system.

License

This project is licensed under the GPLv3 License - see the LICENSE for details

Acknowledgments

Original code is taken from KDE plasmas breeze theme. In specific the breeze SDDM login theme written by David Edmundson. I have rewritten a lot of the logic and layout though to make it work with just SDDM.

Send me a coffee

In the past years I have spent quite some hours on open source projects. If you are the type of person who digs attention to detail, know how much work is involved in it and/or simply likes to support makers with a coffee or a beer I would greatly appreciate your donation on my PayPayl account.

sddm-chili's People

Contributors

marian-hub avatar marianarlt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

sddm-chili's Issues

Suspend/Reboot/Shutdown Misaligned

When using Chili, for some reason the clickable areas of the labels for the action buttons (Suspend, Reboot, Shutdown) are misaligned with where they would logically go. The clickable areas are placed above the actual icons, sized proportionately with the labels and completely operational but still unusual.

For reference, I'm on a fresh build of Arch Linux and my Main.qml file is slightly edited to account for my screen's resolution (1366 x 768). Nothing else in the file nor any other QML file has been changed.

qt5-virtualkeyboard dependency

Chili imports Qt5.VirtualKeyboard, but it is not mentioned on README. Is it considered optional (since Chili works fine without it) or a mistake?

Unable to set Background Images outside chilli theme directory

Hello,
it is not possible to use background images if the file for it is outside the chilli theme directory.
This is possible with other themes e.g. Vortex-SDDM, but I want to get rid of the KDE dependency.

It is possible to get the directory with the desired background images via a "bind"-mount into the themes directory, but this is a dirty workaround.

Is there a technical reason why it is possible with some themes and not with others?
And more important it can be fixed?

black screen on ubuntu 18.04

System journal log:

aug 26 04:10:55 kolba sddm-greeter[6889]: file:///usr/share/sddm/themes/chili/Main.qml:211:21: QML PropertyChanges: Cannot assign to non-existent property "y"
aug 26 04:10:56 kolba sddm-greeter[6889]: file:///usr/share/sddm/themes/chili/Main.qml:212: ReferenceError: mainStack is not defined
aug 26 04:10:56 kolba sddm-greeter[6889]: Adding view for "DVI-I-1" QRect(0,0 1600x1200)
aug 26 04:10:56 kolba sddm-greeter[6889]: Loading file:///usr/share/sddm/themes/chili/Main.qml...
aug 26 04:10:56 kolba sddm-greeter[6889]: file:///usr/share/sddm/themes/chili/Main.qml:211:21: QML PropertyChanges: Cannot assign to non-existent property "y"
aug 26 04:10:56 kolba sddm-greeter[6889]: file:///usr/share/sddm/themes/chili/Main.qml:212: ReferenceError: mainStack is not defined

dependencies on Arch Linux

On Arch Linux these necessary packages do not come automatically with sddm:

  • qt5-quickcontrols
  • qt5-graphicaleffects

Might be worth to mention in readme

Chili does not correctly read last logged-in user

SDDM's last logged in user, when set in /var/lib/sddm/state.conf, under [Last] and User=username, is ignored by Chili. Default SDDM theme, and every other I tested, reads this field correctly without issue. When the theme is set to Chili though, the last user seems to end up being the last user added to the system from that monitor for some reason. In my case, one monitor defaults to the second user added, the other the third - even after repeated logins and reboots as the original user.

All SDDM configs show SDDM should be functioning as intended:

/var/lib/sddm/state.conf:

[Last]
# Name of the last logged-in user.
# This user will be preselected when the login screen appears
User=gctypo


# Name of the session for the last logged-in user.
# This session will be preselected when the login screen appears.
Session=/usr/share/xsessions/i3-with-shmlog.desktop 

Excerpt from /etc/sddm.conf.d/sddm.conf:

[Theme]
Current=chili

[Users]
RememberLastUser=true

/usr/share/sddm/themes/chili/theme.conf:

[General]
background=assets/background.jpg

ScreenWidth=1440
ScreenHeight=900

blur=true
recursiveBlurLoops=4
recursiveBlurRadius=10

PasswordFieldOutlined=false

PowerIconSize=
FontPointSize=
AvatarPixelSize=

translationReboot=
translationSuspend=
translationPowerOff=

To reproduce:

  1. Have a user
  2. Install SDDM, then sddm-chili
  3. Ensure RememberLastUser=true and theme is Current=chili
  4. Add a new user with useradd
  5. Reboot, check SDDM preselected user
  6. Log in as original user, verify contents of /var/lib/sddm/state.conf, then log out
  7. Check SDDM preselected user
  8. Reboot, log in as original user
  9. Plug in second monitor
  10. Repeat steps 4-7
  11. Change theme back to default, log out
  12. Check SDDM preselected user

Wrong url in readme

I noticed the download url in the readme file points to the KDE theme page instead of this one.
Maybe this could be confusing to some.

Thank you for the theme!

The on-screen keyboard opens automatically

The problem is that when you click on the password entry area, the on-screen keyboard opens automatically. I use kubuntu 18.04 and plasma 5.12.5. I know that you don't recommend using this version of the theme with plasma, but the default built-in store offers exactly that:
screenshot_20180615_134307

Missing session chooser

Most themes allow some sort of session selection (Plasma, Gnome, Wayland, ...). Please add this feature.

how to enter username and password ?

Thanks for your beautiful job!
actually I need to enter username and password with your theme because I'm part of an Active directory system and I have bunch of usernames and passwords, for example sometime is like this [email protected] and sometime like this [email protected]
in some themes there is a button called other and you can enter both of them (user and password)
any solution ?
Thnx in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.