Giter VIP home page Giter VIP logo

sddm's Introduction

Logo
Catppuccin for SDDM

Previews

🌻 Latte
πŸͺ΄ FrappΓ©
🌺 Macchiato
🌿 Mocha

Usage

  1. Ensure you have the dependencies.
  2. Get your preferred theme from the releases page.
  3. Unzip the contents of the release into /usr/share/sddm/themes/
  4. Edit the file in /etc/sddm.conf/ and change the theme in there to catppuccin-<flavour>. For example, catppuccin-mocha.
  • If you don't have this file make one with .conf extension and make sure it has these two lines within the config:
[Theme]
Current=catppuccin-flavour

Dependencies

Arch Based OS

pacman -Syu qt6-svg qt6-declarative

Debian Based OS

apt install --no-install-recommends qml-module-qtquick-layouts qml-module-qtquick-controls2 libqt6svg6

RPM Based OS

dnf install qt6-qtquickcontrols2 qt6-qtsvg

Solus OS

eopkg install qt6-quickcontrols2 qt6-svg

NixOS

This theme is available in nixpkgs catppuccin-sddm.

Add the package to systemPackages, you can customize the theme by overriding the attributes:

environment.systemPackages = [(
  pkgs.catppuccin-sddm.override {
    flavor = "mocha";
    font  = "Noto Sans";
    fontSize = "9";
    background = "${./wallpaper.png}";
    loginBackground = true;
  }
)];

Then set it as the theme in the sddm configuration, change the suffix to the flavor you set in the package override:

displayManager.sddm = {
  enable = true;
  theme = "catppuccin-mocha";
  package = pkgs.kdePackages.sddm;
};

Configuration

  • Font: The chosen font
  • FontSize: The text size
  • ClockEnabled: Whether the clock is on or off, this should be set to either true or false
  • CustomBackground: When this is true it will read from Background to render the custom background image, this should be set to either true or false
  • Background: This is the location of the background image, it is recomended to use the provided backgrounds/ directory to store the images
  • LoginBackground: This is a extra background around the login panel, this should be set to either true or false

πŸ’ Thanks to

Β 

Copyright Β© 2021-present Catppuccin Org

sddm's People

Contributors

alchzh avatar donutdev avatar elkrien avatar elysasrc avatar isabelincorp avatar isabelroses avatar jorgeloopzz avatar lplawlor avatar nekowinston avatar nullcub3 avatar oplexz avatar pocco81 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  avatar  avatar

sddm's Issues

Reboot and other buttons not working

Hi, the reboot and other buttons in theme do not work for me, i.e. there is no response from them after clicking.. I am not sure how to debug, so I need some help..

System:
Arch Linux x86_64
HP Notebook
Intel i3-6100U (4) @ 2.300GHz
Intel Skylake GT2 [HD Graphics]
Linux 6.6.13-1-lts
Hyprland

image

Log:

sddm-greeter --test-mode --theme /usr/share/sddm/themes/catppuccin-macchiato/
High-DPI autoscaling Enabled
Reading from "/usr/local/share/wayland-sessions/hyprland.desktop"
Reading from "/usr/share/wayland-sessions/hyprland.desktop"
Parsing xkb rules from "/usr/share/X11/xkb/rules/evdev.xml"
Loading theme configuration from "/usr/share/sddm/themes/catppuccin-macchiato//theme.conf"
Socket error:  "QLocalSocket::connectToServer: Invalid name"
Loading file:///usr/share/sddm/themes/catppuccin-macchiato//Main.qml...
file:///usr/share/sddm/themes/catppuccin-macchiato//Main.qml:18:3: QML Image: Cannot open: file:///usr/share/sddm/themes/catppuccin-macchiato//backgrounds/wall.jpg
Adding view for "eDP-1" QRect(0,0 1366x768)
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
QIODevice::write (QLocalSocket): device not open
QIODevice::write (QLocalSocket): device not open
QIODevice::write (QLocalSocket): device not open

I am a novice, so thank you for your time and patience.

coverScreen is not defined

I'm getting this message in journalctl.

sddm-greeter[1597]: High-DPI autoscaling Enabled
sddm-greeter[1597]: Reading from "/usr/local/share/xsessions/i3-with-shmlog.desktop"
sddm-greeter[1597]: Reading from "/usr/share/xsessions/i3-with-shmlog.desktop"
sddm-greeter[1597]: Reading from "/usr/local/share/xsessions/i3.desktop"
sddm-greeter[1597]: Reading from "/usr/share/xsessions/i3.desktop"
sddm-greeter[1597]: Loading theme configuration from "/usr/share/sddm/themes/catppuccin-mocha/theme.conf"
sddm-greeter[1597]: Connected to the daemon.
sddm-greeter[1597]: Loading file:///usr/share/sddm/themes/catppuccin-mocha/Main.qml...
sddm-greeter[1597]: file:///usr/share/sddm/themes/catppuccin-mocha/Main.qml:18:3: QML Image: Cannot open: file:///usr/share/sddm/themes/catppuccin-mocha/background>
sddm-greeter[1597]: Adding view for "DP-4" QRect(0,0 1920x1080)
sddm-greeter[1597]: Message received from daemon: Capabilities
sddm-greeter[1597]: Message received from daemon: HostName
sddm-greeter[1597]: Reading from "/usr/share/xsessions/i3.desktop"
sddm-greeter[1597]: Message received from daemon: LoginSucceeded
sddm-greeter[1597]: file:///usr/share/sddm/themes/catppuccin-mocha/Components/LoginPanel.qml:142: ReferenceError: coverScreen is not defined

Date format

In Debian 12 (qt5) date format is "Monday, 05 May 2024"
In Arch Linux and Fedora 40 (both qt6) format is "05/20/24"
Is there any way to display the date in long format (as in qt5)?

no icons in the buttons

3 buttons in the left bottom corner is blank and window manager chooser button in the bottom right also blank.
clicking on it also didn't show any popup like it supposed to.

i think its related to this issue prasanthrangan/hyprdots#995 and this line in QtVersion=6 in the medatadata.desktop. i know that the theme use qt5, because some qt5 libs are was listed as dependency in the readme.
why does it set to 6?

related commit 629fe56

also, i can confirm that setting it to 5 or commenting it solve my problem.

Date font isn't set to the theme.conf font

I couldn't open a pull request so I figured I'll open an issue instead. This is just for the sake of using one single font for all components.

import QtQuick 2.12
import SddmComponents 2.0

Clock {
  id: time
  color: config.text
  timeFont.family: config.Font
  dateFont.family: config.Font # add this to all Components/Clock.qml files
  anchors {
    margins: 10
    top: parent.top
    right: parent.right
  }
}

Randomize background

Add an option to grab a random wallpaper from a folder (please).
You could add a boolean option along the lines of RandomBackground that makes it grab a random image from the path specified in Background (the specified path would have to lead to a folder).

[enhancment] accent support

As the title reads with my most recent PR there was no support for accents.
However it is possible to enable accents with something like:

buttonColor="sapphire" # new conf
sapphire="#74c7ec" # prexisting conf

and in the Qml files

color: config.buttonColor

This should in theory add accent support

Current OpenDesktop/Pling zips do not work

          Sorry for "reopening" this issue but the current files don't seem to work.

The zip files contain the correct contents however they require another folder above them.

Example (current state):

β”œβ”€β”€ assets
β”‚  └── angle-down.png
β”œβ”€β”€ backgrounds
β”œβ”€β”€ Components
β”‚  β”œβ”€β”€ Clock.qml
β”‚  β”œβ”€β”€ LoginPanel.qml
β”‚  β”œβ”€β”€ PasswordField.qml
β”‚  β”œβ”€β”€ PowerButton.qml
β”‚  β”œβ”€β”€ RebootButton.qml
β”‚  β”œβ”€β”€ SessionPanel.qml
β”‚  β”œβ”€β”€ SleepButton.qml
β”‚  └── UserField.qml
β”œβ”€β”€ icons
β”‚  β”œβ”€β”€ power.svg
β”‚  β”œβ”€β”€ reboot.svg
β”‚  β”œβ”€β”€ settings.svg
β”‚  └── sleep.svg
β”œβ”€β”€ Main.qml
β”œβ”€β”€ metadata.desktop
β”œβ”€β”€ preview.png
└── theme.conf

Should be:

β”œβ”€β”€ mocha
β”‚  β”œβ”€β”€ assets
β”‚  β”‚  └── angle-down.png
β”‚  β”œβ”€β”€ backgrounds
β”‚  β”œβ”€β”€ Components
β”‚  β”‚  β”œβ”€β”€ Clock.qml
β”‚  β”‚  β”œβ”€β”€ LoginPanel.qml
β”‚  β”‚  β”œβ”€β”€ PasswordField.qml
β”‚  β”‚  β”œβ”€β”€ PowerButton.qml
β”‚  β”‚  β”œβ”€β”€ RebootButton.qml
β”‚  β”‚  β”œβ”€β”€ SessionPanel.qml
β”‚  β”‚  β”œβ”€β”€ SleepButton.qml
β”‚  β”‚  └── UserField.qml
β”‚  β”œβ”€β”€ icons
β”‚  β”‚  β”œβ”€β”€ power.svg
β”‚  β”‚  β”œβ”€β”€ reboot.svg
β”‚  β”‚  β”œβ”€β”€ settings.svg
β”‚  β”‚  └── sleep.svg
β”‚  β”œβ”€β”€ Main.qml
β”‚  β”œβ”€β”€ metadata.desktop
β”‚  β”œβ”€β”€ preview.png
β”‚  └── theme.conf

Originally posted by @EmKaCe in #23 (comment)

Can't install it in nixos unless changing the metadata to qt5

The theme doesn't seem to work if the metadata.desktop holds the QtVersion=6, as added in this PR.

After manually changing it to QtVersion=5 it just works.
I'm not really sure why is this, but I wanted to leave this here in case someone else has the same issue.

My solution:

{ pkgs }:

pkgs.stdenv.mkDerivation {
  name = "catppuccin-macchiato";
  src = pkgs.fetchurl {
    url = "https://github.com/catppuccin/sddm/releases/download/v1.0.0/catppuccin-macchiato.zip";
    sha256 = "1yh4f9xdm81bp8qy2yl5nw35haicfczks958zqr5c68kzr6h6hsa";
  };

  dontUnpack = true;

  installPhase = ''
    mkdir -p $out
    mkdir ./temp
    ${pkgs.unzip}/bin/unzip $src -d ./temp
    cp -R ./temp/catppuccin-macchiato/* $out/
    rm $out/metadata.desktop
    echo "
[SddmGreeterTheme]
Name=Catppuccin macchiato
Description=Soothing pastel theme for SDDM
Type=sddm-theme
Version=2.1
Website=https://github.com/catppuccin/sddm
Screenshot=preview.png
MainScript=Main.qml
ConfigFile=theme.conf
TranslationsDirectory=translations
Theme-Id=Catppuccin
Theme-API=2.0
License=MIT
QtVersion=5" > $out/metadata.desktop
  '';

}

Cannot open backgrounds/wall.jpg

sddm-greeter is throwing the following error

file:///usr/share/sddm/themes/catppuccin-frappe/Main.qml:18:3: QML Image: Cannot open: file:///usr/share/sddm/themes/catppuccin-frappe/backgrounds/wall.jpg

Is there supposed to be a default wall.jpg in backgrounds?

Create ci to update OpenDesktop/Pling files.

We should upload the SDDM theme to OpenDesktop/Pling.

I know that KDE 6 has been released and we are unsure if the current theme works so we should upload just for KDE 5 at the moment.

Personally, I'm unsure what part of this repository needs zipped up so I'd appreciate if you could provide me with it and I can upload it on Catppuccin's account @isabelroses

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.