diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b2be92b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +result diff --git a/Backgrounds/black_hole.png b/Backgrounds/black-hole.png similarity index 100% rename from Backgrounds/black_hole.png rename to Backgrounds/black-hole.png diff --git a/Backgrounds/hyprland_kath.mp4 b/Backgrounds/hyprland-kath.mp4 similarity index 100% rename from Backgrounds/hyprland_kath.mp4 rename to Backgrounds/hyprland-kath.mp4 diff --git a/Backgrounds/hyprland_kath.png b/Backgrounds/hyprland-kath.png similarity index 100% rename from Backgrounds/hyprland_kath.png rename to Backgrounds/hyprland-kath.png diff --git a/Backgrounds/jake_the_dog.mp4 b/Backgrounds/jake-the-dog.mp4 similarity index 100% rename from Backgrounds/jake_the_dog.mp4 rename to Backgrounds/jake-the-dog.mp4 diff --git a/Backgrounds/jake_the_dog.png b/Backgrounds/jake-the-dog.png similarity index 100% rename from Backgrounds/jake_the_dog.png rename to Backgrounds/jake-the-dog.png diff --git a/Backgrounds/japanese_aesthetic.png b/Backgrounds/japanese-aesthetic.png similarity index 100% rename from Backgrounds/japanese_aesthetic.png rename to Backgrounds/japanese-aesthetic.png diff --git a/Backgrounds/pixel_sakura_static.png b/Backgrounds/pixel-sakura-static.png similarity index 100% rename from Backgrounds/pixel_sakura_static.png rename to Backgrounds/pixel-sakura-static.png diff --git a/Backgrounds/pixel_sakura.gif b/Backgrounds/pixel-sakura.gif similarity index 100% rename from Backgrounds/pixel_sakura.gif rename to Backgrounds/pixel-sakura.gif diff --git a/Backgrounds/post-apocalyptic_hacker.png b/Backgrounds/post-apocalyptic-hacker.png similarity index 100% rename from Backgrounds/post-apocalyptic_hacker.png rename to Backgrounds/post-apocalyptic-hacker.png diff --git a/Backgrounds/purple_leaves.png b/Backgrounds/purple-leaves.png similarity index 100% rename from Backgrounds/purple_leaves.png rename to Backgrounds/purple-leaves.png diff --git a/README.md b/README.md index 21d9cfc..5bf584b 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [sddm-astronaut-theme](https://github.com/Keyitdev/sddm-astronaut-theme) is a series of themes for the [SDDM](https://github.com/sddm/sddm/) display manager made by **[Keyitdev](https://github.com/Keyitdev)**. -It's written using the latest version of Qt, which is **Qt6**. Its key features include **virtual keyboard support** and an **installation script**. This theme also support **animated wallpapers**. You can easily change its appearance by choosing another of the ten pre-made themes or creating your own. Each of these themes was created by modifying just one file - **[config](./Themes/astronaut.conf)**. +It's written using the latest version of Qt, which is **Qt6**. Its key features include **virtual keyboard support** and an **installation script**. This theme also supports **animated wallpapers**. You can easily change its appearance by choosing another of the ten pre-made themes or creating your own. Each of these themes was created by modifying just one file - **[config](./Themes/astronaut.conf)**. All themes were created for 1080p. However, they should work well in other resolutions. @@ -53,7 +53,7 @@ https://github.com/user-attachments/assets/181d48c2-f152-45f5-b568-21145be180f6 ```sh sh -c "$(curl -fsSL https://raw.githubusercontent.com/keyitdev/sddm-astronaut-theme/master/setup.sh)" ``` -> Works on distributions using pacman, xbps-install, dnf, zypper. +> Works on distributions using pacman, xbps-install, dnf, zypper. > Remember to always read the scripts you run from the internet. ### Manual Installation @@ -103,7 +103,7 @@ All available configs are in [Themes](./Themes/) directory. ## Previewing a theme -You can preview the set theme without logging out by runnning: +You can preview the set theme without logging out by running: ```sh sddm-greeter-qt6 --test-mode --theme /usr/share/sddm/themes/sddm-astronaut-theme/ ``` @@ -111,9 +111,9 @@ sddm-greeter-qt6 --test-mode --theme /usr/share/sddm/themes/sddm-astronaut-theme ## Sources -Initially the theme was independed fork of [MarianArlt's theme](https://github.com/MarianArlt/sddm-sugar-dark) but now the project has come a long way and started to significantly deviate from the original. -Many of the wallpapers and fonts used in this project are very popular and copied from one user to another, so I don't know who the original creator is. -I also redesigned many of them, but here are links to some of the orginal artists who created these wonderful wallpapers: +Initially the theme was independent fork of [MarianArlt's theme](https://github.com/MarianArlt/sddm-sugar-dark), but now the project has come a long way and started to significantly deviate from the original. +Many of the wallpapers and fonts used in this project are very popular and copied from one user to another, so I don't know who the original creator is. +I also redesigned many of them, but here are links to some of the original artists who created these wonderful wallpapers: - Astronaut: [wallpaper](https://wallhaven.cc/w/e76pew), [font](https://fonts.google.com/specimen/Open+Sans/about) - Black hole: [wallpaper](https://images2.alphacoders.com/114/1141632.jpg), [font](https://www.1001fonts.com/espacion-font.html) @@ -124,7 +124,7 @@ I also redesigned many of them, but here are links to some of the orginal artist - Hyprland Kath: [wallpaper](https://motionbgs.com/andvari-last-origin), [font](https://www.1001fonts.com/pixelon-font.html) - Pixel sakura: [wallpaper](https://imgur.com/gallery/sakura-tree-with-petals-flying-off-t5tg4N8), [font](https://www.1001fonts.com/arcadeclassic-font.html) - Jake the dog: [wallpaper](https://motionbgs.com/jake-the-dog), [font](https://fontmeme.com/fonts/thunderman-font/) - + ## Supporting project You can support me simply by dropping a **star** on **[github](https://github.com/Keyitdev/sddm-astronaut-theme)** or giving a **subscription** on **[YouTube](http://www.youtube.com/channel/UCVoGVyAP2sHPQyegwBMJKyQ?sub_confirmation=1)**. @@ -133,5 +133,5 @@ If you enjoyed it and would like to show your appreciation, you can make a **[do [![Ko-fi](https://img.shields.io/badge/support_me_on_ko--fi-F16061?style=for-the-badge&logo=kofi&logoColor=f5f5f5)](https://ko-fi.com/keyitdev) -Distributed under the **[GPLv3+](https://www.gnu.org/licenses/gpl-3.0.html) License**. +Distributed under the **[GPLv3+](https://www.gnu.org/licenses/gpl-3.0.html) License**. Copyright (C) 2022-2025 Keyitdev. diff --git a/Themes/astronaut.conf b/Themes/astronaut.conf index 5b2f982..c588d66 100644 --- a/Themes/astronaut.conf +++ b/Themes/astronaut.conf @@ -4,7 +4,7 @@ ScreenWidth="1920" ScreenHeight="1080" ScreenPadding="" -# Default 0, Options: from 0 to min(screen width/2,screen height/2). +# Default 0, Options: from 0 to min(screen width/2,screen height/2). Font="Open Sans" FontSize="13" @@ -23,7 +23,7 @@ DateFormat="dddd d MMMM" # Default Locale.LongFormat. HeaderText="" -# You can put somehting fun. +# You can put something fun. #################### Background #################### @@ -131,9 +131,9 @@ HideSystemButtons="false" HideLoginButton="false" ForceLastUser="true" -# If set to true last successfully logged in user appeares automatically in the username field. +# If set to true last successfully logged in user appears automatically in the username field. PasswordFocus="true" -# Automaticaly focuses password field. +# Automatically focuses password field. HideCompletePassword="true" # Hides the password while typing. AllowEmptyPassword="false" @@ -159,4 +159,4 @@ TranslateReboot="" TranslateShutdown="" TranslateSessionSelection="" TranslateVirtualKeyboardButtonOn="" -TranslateVirtualKeyboardButtonOff="" \ No newline at end of file +TranslateVirtualKeyboardButtonOff="" diff --git a/Themes/black_hole.conf b/Themes/black-hole.conf similarity index 95% rename from Themes/black_hole.conf rename to Themes/black-hole.conf index 90dd9a4..971a6c2 100644 --- a/Themes/black_hole.conf +++ b/Themes/black-hole.conf @@ -4,7 +4,7 @@ ScreenWidth="1920" ScreenHeight="1080" ScreenPadding="5" -# Default 0, Options: from 0 to min(screen width/2,screen height/2). +# Default 0, Options: from 0 to min(screen width/2,screen height/2). Font="ESPACION" FontSize="12" @@ -23,7 +23,7 @@ DateFormat="dddd d" # Default Locale.LongFormat. HeaderText="" -# You can put somehting fun. +# You can put something fun. #################### Background #################### @@ -32,7 +32,7 @@ BackgroundPlaceholder="" # Background displayed before the actual background is loaded. # Use only if the background is a video, otherwise leave blank. # Connected with: Background. -Background="Backgrounds/black_hole.png" +Background="Backgrounds/black-hole.png" # Must be a relative path. # Supports: png, jpg, jpeg, webp, gif, avi, mp4, mov, mkv, m4v, webm. BackgroundSpeed="" @@ -131,9 +131,9 @@ HideSystemButtons="false" HideLoginButton="false" ForceLastUser="true" -# If set to true last successfully logged in user appeares automatically in the username field. +# If set to true last successfully logged in user appears automatically in the username field. PasswordFocus="true" -# Automaticaly focuses password field. +# Automatically focuses password field. HideCompletePassword="true" # Hides the password while typing. AllowEmptyPassword="false" @@ -159,4 +159,4 @@ TranslateReboot="" TranslateShutdown="" TranslateSessionSelection="" TranslateVirtualKeyboardButtonOn="" -TranslateVirtualKeyboardButtonOff="" \ No newline at end of file +TranslateVirtualKeyboardButtonOff="" diff --git a/Themes/cyberpunk.conf b/Themes/cyberpunk.conf index 1a30820..b63cd45 100644 --- a/Themes/cyberpunk.conf +++ b/Themes/cyberpunk.conf @@ -4,7 +4,7 @@ ScreenWidth="1920" ScreenHeight="1080" ScreenPadding="0" -# Default 0, Options: from 0 to min(screen width/2,screen height/2). +# Default 0, Options: from 0 to min(screen width/2,screen height/2). Font="KogniGear" FontSize="12" @@ -23,7 +23,7 @@ DateFormat="M/dd 2077" # Default Locale.LongFormat. HeaderText="Loading ..." -# You can put somehting fun. +# You can put something fun. #################### Background #################### @@ -131,9 +131,9 @@ HideSystemButtons="true" HideLoginButton="false" ForceLastUser="true" -# If set to true last successfully logged in user appeares automatically in the username field. +# If set to true last successfully logged in user appears automatically in the username field. PasswordFocus="true" -# Automaticaly focuses password field. +# Automatically focuses password field. HideCompletePassword="true" # Hides the password while typing. AllowEmptyPassword="false" @@ -159,4 +159,4 @@ TranslateReboot="" TranslateShutdown="" TranslateSessionSelection="" TranslateVirtualKeyboardButtonOn="" -TranslateVirtualKeyboardButtonOff="" \ No newline at end of file +TranslateVirtualKeyboardButtonOff="" diff --git a/Themes/hyprland_kath.conf b/Themes/hyprland-kath.conf similarity index 94% rename from Themes/hyprland_kath.conf rename to Themes/hyprland-kath.conf index edc8e9e..c7f9cdf 100644 --- a/Themes/hyprland_kath.conf +++ b/Themes/hyprland-kath.conf @@ -4,7 +4,7 @@ ScreenWidth="1920" ScreenHeight="1080" ScreenPadding="" -# Default 0, Options: from 0 to min(screen width/2,screen height/2). +# Default 0, Options: from 0 to min(screen width/2,screen height/2). Font="pixelon" FontSize="12" @@ -23,16 +23,16 @@ DateFormat="dddd d" # Default Locale.LongFormat. HeaderText="" -# You can put somehting fun. +# You can put something fun. #################### Background #################### -BackgroundPlaceholder="Backgrounds/hyprland_kath.png" +BackgroundPlaceholder="Backgrounds/hyprland-kath.png" # Must be a relative path. # Background displayed before the actual background is loaded. # Use only if the background is a video, otherwise leave blank. # Connected with: Background. -Background="Backgrounds/hyprland_kath.mp4" +Background="Backgrounds/hyprland-kath.mp4" # Must be a relative path. # Supports: png, jpg, jpeg, webp, gif, avi, mp4, mov, mkv, m4v, webm. BackgroundSpeed="1.0" @@ -131,9 +131,9 @@ HideSystemButtons="true" HideLoginButton="false" ForceLastUser="true" -# If set to true last successfully logged in user appeares automatically in the username field. +# If set to true last successfully logged in user appears automatically in the username field. PasswordFocus="true" -# Automaticaly focuses password field. +# Automatically focuses password field. HideCompletePassword="true" # Hides the password while typing. AllowEmptyPassword="false" @@ -159,4 +159,4 @@ TranslateReboot="" TranslateShutdown="" TranslateSessionSelection="" TranslateVirtualKeyboardButtonOn="" -TranslateVirtualKeyboardButtonOff="" \ No newline at end of file +TranslateVirtualKeyboardButtonOff="" diff --git a/Themes/jake_the_dog.conf b/Themes/jake-the-dog.conf similarity index 94% rename from Themes/jake_the_dog.conf rename to Themes/jake-the-dog.conf index 3204741..a639056 100644 --- a/Themes/jake_the_dog.conf +++ b/Themes/jake-the-dog.conf @@ -4,7 +4,7 @@ ScreenWidth="1920" ScreenHeight="1080" ScreenPadding="" -# Default 0, Options: from 0 to min(screen width/2,screen height/2). +# Default 0, Options: from 0 to min(screen width/2,screen height/2). Font="Thunderman" FontSize="12" @@ -23,16 +23,16 @@ DateFormat="dddd d" # Default Locale.LongFormat. HeaderText="" -# You can put somehting fun. +# You can put something fun. #################### Background #################### -BackgroundPlaceholder="Backgrounds/jake_the_dog.png" +BackgroundPlaceholder="Backgrounds/jake-the-dog.png" # Must be a relative path. # Background displayed before the actual background is loaded. # Use only if the background is a video, otherwise leave blank. # Connected with: Background. -Background="Backgrounds/jake_the_dog.mp4" +Background="Backgrounds/jake-the-dog.mp4" # Must be a relative path. # Supports: png, jpg, jpeg, webp, gif, avi, mp4, mov, mkv, m4v, webm. BackgroundSpeed="1.2" @@ -131,9 +131,9 @@ HideSystemButtons="false" HideLoginButton="false" ForceLastUser="true" -# If set to true last successfully logged in user appeares automatically in the username field. +# If set to true last successfully logged in user appears automatically in the username field. PasswordFocus="true" -# Automaticaly focuses password field. +# Automatically focuses password field. HideCompletePassword="true" # Hides the password while typing. AllowEmptyPassword="false" @@ -159,4 +159,4 @@ TranslateReboot="" TranslateShutdown="" TranslateSessionSelection="" TranslateVirtualKeyboardButtonOn="" -TranslateVirtualKeyboardButtonOff="" \ No newline at end of file +TranslateVirtualKeyboardButtonOff="" diff --git a/Themes/japanese_aesthetic.conf b/Themes/japanese-aesthetic.conf similarity index 95% rename from Themes/japanese_aesthetic.conf rename to Themes/japanese-aesthetic.conf index 4ef2c56..c6f5ef0 100644 --- a/Themes/japanese_aesthetic.conf +++ b/Themes/japanese-aesthetic.conf @@ -4,7 +4,7 @@ ScreenWidth="1920" ScreenHeight="1080" ScreenPadding="" -# Default 0, Options: from 0 to min(screen width/2,screen height/2). +# Default 0, Options: from 0 to min(screen width/2,screen height/2). Font="Electroharmonix" FontSize="12" @@ -23,7 +23,7 @@ DateFormat="dddd d" # Default Locale.LongFormat. HeaderText="" -# You can put somehting fun. +# You can put something fun. #################### Background #################### @@ -32,7 +32,8 @@ BackgroundPlaceholder="" # Background displayed before the actual background is loaded. # Use only if the background is a video, otherwise leave blank. # Connected with: Background. -Background="Backgrounds/japanese_aesthetic.png" +Background="Backgrounds/japanese-aesthetic.png" + # Must be a relative path. # Supports: png, jpg, jpeg, webp, gif, avi, mp4, mov, mkv, m4v, webm. BackgroundSpeed="" @@ -131,9 +132,9 @@ HideSystemButtons="false" HideLoginButton="false" ForceLastUser="true" -# If set to true last successfully logged in user appeares automatically in the username field. +# If set to true last successfully logged in user appears automatically in the username field. PasswordFocus="true" -# Automaticaly focuses password field. +# Automatically focuses password field. HideCompletePassword="true" # Hides the password while typing. AllowEmptyPassword="false" @@ -159,4 +160,4 @@ TranslateReboot="" TranslateShutdown="" TranslateSessionSelection="" TranslateVirtualKeyboardButtonOn="" -TranslateVirtualKeyboardButtonOff="" \ No newline at end of file +TranslateVirtualKeyboardButtonOff="" diff --git a/Themes/pixel_sakura_static.conf b/Themes/pixel-sakura-static.conf similarity index 95% rename from Themes/pixel_sakura_static.conf rename to Themes/pixel-sakura-static.conf index 118cbf7..24858ab 100644 --- a/Themes/pixel_sakura_static.conf +++ b/Themes/pixel-sakura-static.conf @@ -4,7 +4,7 @@ ScreenWidth="1920" ScreenHeight="1080" ScreenPadding="" -# Default 0, Options: from 0 to min(screen width/2,screen height/2). +# Default 0, Options: from 0 to min(screen width/2,screen height/2). Font="arcadeclassic" FontSize="11" @@ -23,7 +23,7 @@ DateFormat="dddd d" # Default Locale.LongFormat. HeaderText="" -# You can put somehting fun. +# You can put something fun. #################### Background #################### @@ -32,7 +32,7 @@ BackgroundPlaceholder="" # Background displayed before the actual background is loaded. # Use only if the background is a video, otherwise leave blank. # Connected with: Background. -Background="Backgrounds/pixel_sakura_static.png" +Background="Backgrounds/pixel-sakura-static.png" # Must be a relative path. # Supports: png, jpg, jpeg, webp, gif, avi, mp4, mov, mkv, m4v, webm. BackgroundSpeed="" @@ -131,9 +131,9 @@ HideSystemButtons="true" HideLoginButton="true" ForceLastUser="true" -# If set to true last successfully logged in user appeares automatically in the username field. +# If set to true last successfully logged in user appears automatically in the username field. PasswordFocus="true" -# Automaticaly focuses password field. +# Automatically focuses password field. HideCompletePassword="true" # Hides the password while typing. AllowEmptyPassword="false" @@ -159,4 +159,4 @@ TranslateReboot="" TranslateShutdown="" TranslateSessionSelection="" TranslateVirtualKeyboardButtonOn="" -TranslateVirtualKeyboardButtonOff="" \ No newline at end of file +TranslateVirtualKeyboardButtonOff="" diff --git a/Themes/pixel_sakura.conf b/Themes/pixel-sakura.conf similarity index 95% rename from Themes/pixel_sakura.conf rename to Themes/pixel-sakura.conf index 582f6da..30f75b6 100644 --- a/Themes/pixel_sakura.conf +++ b/Themes/pixel-sakura.conf @@ -4,7 +4,7 @@ ScreenWidth="1920" ScreenHeight="1080" ScreenPadding="" -# Default 0, Options: from 0 to min(screen width/2,screen height/2). +# Default 0, Options: from 0 to min(screen width/2,screen height/2). Font="arcadeclassic" FontSize="11" @@ -23,7 +23,7 @@ DateFormat="dddd d" # Default Locale.LongFormat. HeaderText="" -# You can put somehting fun. +# You can put something fun. #################### Background #################### @@ -32,7 +32,7 @@ BackgroundPlaceholder="" # Background displayed before the actual background is loaded. # Use only if the background is a video, otherwise leave blank. # Connected with: Background. -Background="Backgrounds/pixel_sakura.gif" +Background="Backgrounds/pixel-sakura.gif" # Must be a relative path. # Supports: png, jpg, jpeg, webp, gif, avi, mp4, mov, mkv, m4v, webm. BackgroundSpeed="" @@ -131,9 +131,9 @@ HideSystemButtons="true" HideLoginButton="true" ForceLastUser="true" -# If set to true last successfully logged in user appeares automatically in the username field. +# If set to true last successfully logged in user appears automatically in the username field. PasswordFocus="true" -# Automaticaly focuses password field. +# Automatically focuses password field. HideCompletePassword="true" # Hides the password while typing. AllowEmptyPassword="false" @@ -159,4 +159,4 @@ TranslateReboot="" TranslateShutdown="" TranslateSessionSelection="" TranslateVirtualKeyboardButtonOn="" -TranslateVirtualKeyboardButtonOff="" \ No newline at end of file +TranslateVirtualKeyboardButtonOff="" diff --git a/Themes/post-apocalyptic_hacker.conf b/Themes/post-apocalyptic-hacker.conf similarity index 95% rename from Themes/post-apocalyptic_hacker.conf rename to Themes/post-apocalyptic-hacker.conf index 1532898..f4bd7d8 100644 --- a/Themes/post-apocalyptic_hacker.conf +++ b/Themes/post-apocalyptic-hacker.conf @@ -4,7 +4,7 @@ ScreenWidth="1920" ScreenHeight="1080" ScreenPadding="" -# Default 0, Options: from 0 to min(screen width/2,screen height/2). +# Default 0, Options: from 0 to min(screen width/2,screen height/2). Font="Fragile Bombers Attack" FontSize="15" @@ -23,7 +23,7 @@ DateFormat="dddd d" # Default Locale.LongFormat. HeaderText="" -# You can put somehting fun. +# You can put something fun. #################### Background #################### @@ -32,7 +32,7 @@ BackgroundPlaceholder="" # Background displayed before the actual background is loaded. # Use only if the background is a video, otherwise leave blank. # Connected with: Background. -Background="Backgrounds/post-apocalyptic_hacker.png" +Background="Backgrounds/post-apocalyptic-hacker.png" # Must be a relative path. # Supports: png, jpg, jpeg, webp, gif, avi, mp4, mov, mkv, m4v, webm. BackgroundSpeed="" @@ -131,9 +131,9 @@ HideSystemButtons="true" HideLoginButton="false" ForceLastUser="true" -# If set to true last successfully logged in user appeares automatically in the username field. +# If set to true last successfully logged in user appears automatically in the username field. PasswordFocus="true" -# Automaticaly focuses password field. +# Automatically focuses password field. HideCompletePassword="true" # Hides the password while typing. AllowEmptyPassword="false" @@ -159,4 +159,4 @@ TranslateReboot="" TranslateShutdown="" TranslateSessionSelection="" TranslateVirtualKeyboardButtonOn="" -TranslateVirtualKeyboardButtonOff="" \ No newline at end of file +TranslateVirtualKeyboardButtonOff="" diff --git a/Themes/purple_leaves.conf b/Themes/purple-leaves.conf similarity index 95% rename from Themes/purple_leaves.conf rename to Themes/purple-leaves.conf index 8d3c1c2..bc89e03 100644 --- a/Themes/purple_leaves.conf +++ b/Themes/purple-leaves.conf @@ -4,7 +4,7 @@ ScreenWidth="1920" ScreenHeight="1080" ScreenPadding="" -# Default 0, Options: from 0 to min(screen width/2,screen height/2). +# Default 0, Options: from 0 to min(screen width/2,screen height/2). Font="Open Sans" FontSize="" @@ -23,7 +23,7 @@ DateFormat="dddd d" # Default Locale.LongFormat. HeaderText="" -# You can put somehting fun. +# You can put something fun. #################### Background #################### @@ -32,7 +32,7 @@ BackgroundPlaceholder="" # Background displayed before the actual background is loaded. # Use only if the background is a video, otherwise leave blank. # Connected with: Background. -Background="Backgrounds/purple_leaves.png" +Background="Backgrounds/purple-leaves.png" # Must be a relative path. # Supports: png, jpg, jpeg, webp, gif, avi, mp4, mov, mkv, m4v, webm. BackgroundSpeed="" @@ -131,9 +131,9 @@ HideSystemButtons="false" HideLoginButton="false" ForceLastUser="true" -# If set to true last successfully logged in user appeares automatically in the username field. +# If set to true last successfully logged in user appears automatically in the username field. PasswordFocus="true" -# Automaticaly focuses password field. +# Automatically focuses password field. HideCompletePassword="true" # Hides the password while typing. AllowEmptyPassword="false" @@ -159,4 +159,4 @@ TranslateReboot="" TranslateShutdown="" TranslateSessionSelection="" TranslateVirtualKeyboardButtonOn="" -TranslateVirtualKeyboardButtonOff="" \ No newline at end of file +TranslateVirtualKeyboardButtonOff="" diff --git a/build.nix b/build.nix new file mode 100644 index 0000000..e302dab --- /dev/null +++ b/build.nix @@ -0,0 +1,57 @@ +{ + pkgs, +}: +let + inherit (pkgs) + lib + kdePackages + stdenvNoCC + ; + themeNames = [ + "astronaut" + "black-hole" + "cyberpunk" + "hyprland-kath" + "jake-the-dog" + "japanese-aesthetic" + "pixel-sakura" + "pixel-sakura-static" + "post-apocalyptic-hacker" + "purple-leaves" + ]; + mkTheme = + { + name ? "astronaut", + }: + assert (lib.assertMsg (lib.elem name themeNames) ""); + stdenvNoCC.mkDerivation { + name = "sddm-theme-${name}"; + pname = "sddm-theme-astronaut"; + version = "1.3.0"; + src = ./.; + dontConfigure = true; + buildPhase = "sed -i 's|ConfigFile=Themes/astronaut.conf|ConfigFile=Themes/${name}.conf|' metadata.desktop"; + OUTDIR = "share/sddm/themes/sddm-theme-astronaut"; + installPhase = '' + mkdir -p $out/$OUTDIR/ + cp -r Components Assets Backgrounds Themes $out/$OUTDIR + mv metadata.desktop Main.qml $out/$OUTDIR + ''; + passthru.packages = with kdePackages; [ + qtmultimedia + qtsvg + qtvirtualkeyboard + ]; + }; + themes = + lib.listToAttrs ( + lib.forEach themeNames (name: { + name = "sddm-theme-${name}"; + value = lib.makeOverridable mkTheme { inherit name; }; + }) + ) + // { + default = lib.makeOverridable mkTheme { name = "astronaut"; }; + }; +in +themes diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..8c2542d --- /dev/null +++ b/flake.lock @@ -0,0 +1,48 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1748026580, + "narHash": "sha256-rWtXrcIzU5wm/C8F9LWvUfBGu5U5E7cFzPYT1pHIJaQ=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "11cb3517b3af6af300dd6c055aeda73c9bf52c48", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "25.05", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs", + "utils": "utils" + } + }, + "utils": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1763015150, + "narHash": "sha256-oozfpD14IEiTMMqr7fNGfzzoBzWJiuNxh2Twnzu1Mkg=", + "owner": "NewDawn0", + "repo": "nixUtils", + "rev": "18a4515bf3be337612c675b5bfb0ce70d04c9c06", + "type": "github" + }, + "original": { + "owner": "NewDawn0", + "repo": "nixUtils", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..714081f --- /dev/null +++ b/flake.nix @@ -0,0 +1,33 @@ +{ + description = "Default flake template"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs?ref=25.05"; + utils = { + url = "github:NewDawn0/nixUtils"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; + outputs = + { + utils, + ... + }: + { + checks = utils.lib.eachSystem { } ( + p: with p; { + deadnix = pkgs.runCommand "deadnix" { + nativeBuildInputs = [ pkgs.deadnix ]; + } "deadnix --fail ${./.} && touch $out"; + typos = pkgs.runCommand "typos" { + nativeBuildInputs = [ pkgs.typos ]; + } "typos --format brief && touch $out"; + } + ); + formatter = utils.lib.eachSystem { } (p: p.pkgs.alejandra); + overlays.default = _: prev: { + sddm-themes = (prev.sddm-themes or { }) // (import ./build.nix { inherit (prev) pkgs; }); + }; + packages = utils.lib.eachSystem { } (p: (import ./build.nix { inherit (p) pkgs; })); + }; +} diff --git a/setup.sh b/setup.sh index fefe4c0..6e2ad62 100755 --- a/setup.sh +++ b/setup.sh @@ -81,7 +81,7 @@ install_gum() { dnf) sudo dnf install -y gum ;; zypper) sudo zypper install -y gum ;; xbps-install) sudo xbps-install -y gum ;; - # refrence https://github.com/basecamp/omakub/issues/222 + # reference https://github.com/basecamp/omakub/issues/222 apt) sudo mkdir -p /etc/apt/keyrings curl -fsSL https://repo.charm.sh/apt/gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/charm.gpg @@ -153,7 +153,7 @@ install_theme() { # Select theme variant select_theme() { [[ ! -f "$METADATA" ]] && { error "Install theme first"; return 1; } - + local theme=$(choose "${THEMES[@]}" || echo "astronaut") sudo sed -i "s|^ConfigFile=.*|ConfigFile=Themes/${theme}.conf|" "$METADATA" info "Selected theme: $theme" @@ -171,7 +171,7 @@ enable_sddm() { preview_theme(){ local log_file="/tmp/${THEME_NAME}_$DATE.txt" - + sddm-greeter-qt6 --test-mode --theme /usr/share/sddm/themes/sddm-astronaut-theme/ > $log_file 2>&1 & greeter_pid=$! @@ -187,9 +187,8 @@ preview_theme(){ kill "$greeter_pid" fi - local theme="$(sed -n 's|^ConfigFile=Themes/\(.*\)\.conf|\1|p' $METADATA)" - info "Preview closed ($theme theme found)." + info "Preview closed ($theme theme found)." info "Log file: $log_file" }