Initial commit
This commit is contained in:
commit
209ba130c0
4852 changed files with 1517959 additions and 0 deletions
11
.config/ml4w/sddm/readme.txt
Normal file
11
.config/ml4w/sddm/readme.txt
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# CURRENTLY WORK IN PROGRESS TO CREATE A SDDM THEME
|
||||
|
||||
# Install sugar dark as a base
|
||||
yay -S sddm-sugar-dark
|
||||
|
||||
# In the [Theme] section simply add the themes name: Current=sugar-dark
|
||||
# Copy from /usr/lib/sddm/sddm.conf.d/default.conf
|
||||
/etc/sddm.conf.d/sddm.conf
|
||||
|
||||
# Test the theme
|
||||
sddm-greeter --test-mode --theme /usr/share/sddm/themes/sugar-dark
|
||||
12
.config/ml4w/sddm/scripts/disable.sh
Executable file
12
.config/ml4w/sddm/scripts/disable.sh
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
figlet -f smslant "Disable SDDM"
|
||||
if [ -f /etc/systemd/system/display-manager.service ]; then
|
||||
if gum confirm "Do you want to disable the current display manager?" ;then
|
||||
sudo rm /etc/systemd/system/display-manager.service
|
||||
echo ":: Current display manager removed."
|
||||
echo ":: Please reboot your system."
|
||||
fi
|
||||
else
|
||||
echo ":: No Display Manager enabled."
|
||||
fi
|
||||
sleep 3
|
||||
12
.config/ml4w/sddm/scripts/enable.sh
Executable file
12
.config/ml4w/sddm/scripts/enable.sh
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
figlet -f smslant "Enable SDDM"
|
||||
if [ -f /etc/systemd/system/display-manager.service ]; then
|
||||
echo ":: Display Manager is already enabled."
|
||||
else
|
||||
if gum confirm "Do you want to enable SDDM as your display manager?" ;then
|
||||
sudo systemctl enable sddm.service
|
||||
echo ":: Display manager SDDM has been enabled."
|
||||
echo ":: Please reboot your system!"
|
||||
fi
|
||||
fi
|
||||
sleep 3
|
||||
38
.config/ml4w/sddm/scripts/wallpaper.sh
Executable file
38
.config/ml4w/sddm/scripts/wallpaper.sh
Executable file
|
|
@ -0,0 +1,38 @@
|
|||
#!/bin/bash
|
||||
# _ _ _ _ _ _
|
||||
# | | | |_ __ __| | __ _| |_ ___ ___ __| | __| |_ __ ___
|
||||
# | | | | '_ \ / _` |/ _` | __/ _ \ / __|/ _` |/ _` | '_ ` _ \
|
||||
# | |_| | |_) | (_| | (_| | || __/ \__ \ (_| | (_| | | | | | |
|
||||
# \___/| .__/ \__,_|\__,_|\__\___| |___/\__,_|\__,_|_| |_| |_|
|
||||
# |_|
|
||||
#
|
||||
# by Stephan Raabe (2024)
|
||||
# -----------------------------------------------------
|
||||
cache_file="$HOME/.config/ml4w/cache/current_wallpaper"
|
||||
sleep 1
|
||||
clear
|
||||
figlet -f smslant "Set Wallpaper"
|
||||
echo
|
||||
echo "Set the current wallpaper as SDDM wallpaper."
|
||||
echo
|
||||
if [ ! -d /etc/sddm.conf.d/ ]; then
|
||||
sudo mkdir /etc/sddm.conf.d
|
||||
echo "Folder /etc/sddm.conf.d created."
|
||||
fi
|
||||
|
||||
sudo cp $HOME/.config/ml4w/sddm/sddm.conf /etc/sddm.conf.d/
|
||||
echo "File /etc/sddm.conf.d/sddm.conf updated."
|
||||
|
||||
current_wallpaper=$(cat "$cache_file")
|
||||
extension="${current_wallpaper##*.}"
|
||||
|
||||
sudo cp $current_wallpaper /usr/share/sddm/themes/sugar-candy/Backgrounds/current_wallpaper.$extension
|
||||
echo "Current wallpaper copied into /usr/share/sddm/themes/sugar-candy/Backgrounds/"
|
||||
new_wall=$(echo $current_wallpaper | sed "s|$HOME/wallpaper/||g")
|
||||
sudo cp $HOME/.config/ml4w/sddm/theme.conf /usr/share/sddm/themes/sugar-candy/
|
||||
sudo sed -i 's/CURRENTWALLPAPER/'"current_wallpaper.$extension"'/' /usr/share/sddm/themes/sugar-candy/theme.conf
|
||||
|
||||
echo "File theme.conf updated in /usr/share/sddm/themes/sugar-candy/"
|
||||
|
||||
echo "DONE! Please logout to test sddm."
|
||||
sleep 3
|
||||
138
.config/ml4w/sddm/sddm.conf
Normal file
138
.config/ml4w/sddm/sddm.conf
Normal file
|
|
@ -0,0 +1,138 @@
|
|||
[Autologin]
|
||||
# Whether sddm should automatically log back into sessions when they exit
|
||||
Relogin=false
|
||||
|
||||
# Name of session file for autologin session (if empty try last logged in)
|
||||
Session=
|
||||
|
||||
# Username for autologin session
|
||||
User=
|
||||
|
||||
[General]
|
||||
# Which display server should be used.
|
||||
# Valid values are: x11, x11-user, wayland. Wayland support is experimental
|
||||
DisplayServer=x11
|
||||
|
||||
# Comma-separated list of environment variables to be set
|
||||
GreeterEnvironment=
|
||||
|
||||
# Halt command
|
||||
HaltCommand=/usr/bin/systemctl poweroff
|
||||
|
||||
# Input method module
|
||||
InputMethod=
|
||||
|
||||
# Comma-separated list of Linux namespaces for user session to enter
|
||||
Namespaces=
|
||||
|
||||
# Initial NumLock state. Can be on, off or none.
|
||||
# If property is set to none, numlock won't be changed
|
||||
# NOTE: Currently ignored if autologin is enabled.
|
||||
Numlock=none
|
||||
|
||||
# Reboot command
|
||||
RebootCommand=/usr/bin/systemctl reboot
|
||||
|
||||
|
||||
[Theme]
|
||||
# Current theme name
|
||||
Current=sugar-candy
|
||||
|
||||
# Cursor size used in the greeter
|
||||
CursorSize=24
|
||||
|
||||
# Cursor theme used in the greeter
|
||||
CursorTheme=Bibata-Modern-Ice
|
||||
|
||||
# Number of users to use as threshold
|
||||
# above which avatars are disabled
|
||||
# unless explicitly enabled with EnableAvatars
|
||||
DisableAvatarsThreshold=7
|
||||
|
||||
# Enable display of custom user avatars
|
||||
EnableAvatars=false
|
||||
|
||||
# Global directory for user avatars
|
||||
# The files should be named <username>.face.icon
|
||||
FacesDir=/usr/share/sddm/faces
|
||||
|
||||
# Font used in the greeter
|
||||
Font=
|
||||
|
||||
# Theme directory path
|
||||
# ThemeDir=/usr/share/sddm/themes
|
||||
ThemeDir=/usr/share/sddm/themes
|
||||
|
||||
[Users]
|
||||
# Default $PATH for logged in users
|
||||
DefaultPath=/usr/local/sbin:/usr/local/bin:/usr/bin
|
||||
|
||||
# Comma-separated list of shells.
|
||||
# Users with these shells as their default won't be listed
|
||||
HideShells=
|
||||
|
||||
# Comma-separated list of users that should not be listed
|
||||
HideUsers=
|
||||
|
||||
# Maximum user id for displayed users
|
||||
MaximumUid=60513
|
||||
|
||||
# Minimum user id for displayed users
|
||||
MinimumUid=1000
|
||||
|
||||
# Remember the session of the last successfully logged in user
|
||||
RememberLastSession=true
|
||||
|
||||
# Remember the last successfully logged in user
|
||||
RememberLastUser=true
|
||||
|
||||
# When logging in as the same user twice, restore the original session, rather than create a new one
|
||||
ReuseSession=true
|
||||
|
||||
|
||||
[Wayland]
|
||||
# Path of the Wayland compositor to execute when starting the greeter
|
||||
CompositorCommand=weston --shell=fullscreen-shell.so
|
||||
|
||||
# Enable Qt's automatic high-DPI scaling
|
||||
EnableHiDPI=true
|
||||
|
||||
# Path to a script to execute when starting the desktop session
|
||||
SessionCommand=/usr/share/sddm/scripts/wayland-session
|
||||
|
||||
# Comma-separated list of directories containing available Wayland sessions
|
||||
SessionDir=/usr/local/share/wayland-sessions,/usr/share/wayland-sessions
|
||||
|
||||
# Path to the user session log file
|
||||
SessionLogFile=.local/share/sddm/wayland-session.log
|
||||
|
||||
|
||||
[X11]
|
||||
# Path to a script to execute when starting the display server
|
||||
DisplayCommand=/usr/share/sddm/scripts/Xsetup
|
||||
|
||||
# Path to a script to execute when stopping the display server
|
||||
DisplayStopCommand=/usr/share/sddm/scripts/Xstop
|
||||
|
||||
# Enable Qt's automatic high-DPI scaling
|
||||
EnableHiDPI=true
|
||||
|
||||
# Arguments passed to the X server invocation
|
||||
ServerArguments=-nolisten tcp
|
||||
|
||||
# Path to X server binary
|
||||
ServerPath=/usr/bin/X
|
||||
|
||||
# Path to a script to execute when starting the desktop session
|
||||
SessionCommand=/usr/share/sddm/scripts/Xsession
|
||||
|
||||
# Comma-separated list of directories containing available X sessions
|
||||
SessionDir=/usr/local/share/xsessions,/usr/share/xsessions
|
||||
|
||||
# Path to the user session log file
|
||||
SessionLogFile=.local/share/sddm/xorg-session.log
|
||||
|
||||
# Path to Xephyr binary
|
||||
XephyrPath=/usr/bin/Xephyr
|
||||
|
||||
|
||||
138
.config/ml4w/sddm/theme.conf
Normal file
138
.config/ml4w/sddm/theme.conf
Normal file
|
|
@ -0,0 +1,138 @@
|
|||
[General]
|
||||
|
||||
Background="Backgrounds/CURRENTWALLPAPER"
|
||||
#Background="/home/patrick/dotfiles/.config/ml4w/assets/wallpaper3.png"
|
||||
|
||||
## Path relative to the theme root directory. Most standard image file formats are allowed including support for transparency. (e.g. background.jpeg/illustration.GIF/Foto.png/undraw.svgz)
|
||||
|
||||
DimBackgroundImage="0.0"
|
||||
## Double between 0 and 1 used for the alpha channel of a darkening overlay. Use to darken your background image on the fly.
|
||||
|
||||
ScaleImageCropped="true"
|
||||
## Whether the image should be cropped when scaled proportionally. Setting this to false will fit the whole image instead, possibly leaving white space. This can be exploited beautifully with illustrations (try it with "undraw.svg" included in the theme).
|
||||
|
||||
# ScreenWidth="2560"
|
||||
# ScreenHeight="1440"
|
||||
## Adjust to your resolution to help SDDM speed up on calculations
|
||||
|
||||
|
||||
|
||||
## [Blur Settings]
|
||||
|
||||
FullBlur="false"
|
||||
PartialBlur="true"
|
||||
## Enable or disable the blur effect; if HaveFormBackground is set to true then PartialBlur will trigger the BackgroundColor of the form element to be partially transparent and blend with the blur.
|
||||
|
||||
BlurRadius="100"
|
||||
## Set the strength of the blur effect. Anything above 100 is pretty strong and might slow down the rendering time. 0 is like setting false for any blur.
|
||||
|
||||
|
||||
|
||||
## [Design Customizations]
|
||||
|
||||
HaveFormBackground="false"
|
||||
## Have a full opacity background color behind the form that takes slightly more than 1/3 of screen estate; if PartialBlur is set to true then HaveFormBackground will trigger the BackgroundColor of the form element to be partially transparent and blend with the blur.
|
||||
|
||||
FormPosition="left"
|
||||
## Position of the form which takes roughly 1/3 of screen estate. Can be left, center or right.
|
||||
|
||||
BackgroundImageHAlignment="center"
|
||||
## Horizontal position of the background picture relative to its visible area. Applies when ScaleImageCropped is set to false or when HaveFormBackground is set to true and FormPosition is either left or right. Can be left, center or right; defaults to center if none is passed.
|
||||
|
||||
BackgroundImageVAlignment="center"
|
||||
## As before but for the vertical position of the background picture relative to its visible area.
|
||||
|
||||
MainColor="white"
|
||||
## Used for all elements when not focused/hovered etc. Usually the best effect is achieved by having this be either white or a very dark grey like #444 (not black for smoother antialias)
|
||||
## Colors can be HEX or Qt names (e.g. red/salmon/blanchedalmond). See https://doc.qt.io/qt-5/qml-color.html
|
||||
|
||||
AccentColor="#fb884f"
|
||||
## Used for elements in focus/hover/pressed. Should be contrasting to the background and the MainColor to achieve the best effect.
|
||||
|
||||
BackgroundColor="#444"
|
||||
## Used for the user and session selection background as well as for ScreenPadding and FormBackground when either is true. If PartialBlur and FormBackground are both enabled this color will blend with the blur effect.
|
||||
|
||||
OverrideLoginButtonTextColor=""
|
||||
## The text of the login button may become difficult to read depending on your color choices. Use this option to set it independently for legibility.
|
||||
|
||||
InterfaceShadowSize="6"
|
||||
## Integer used as multiplier. Size of the shadow behind the user and session selection background. Decrease or increase if it looks bad on your background. Initial render can be slow no values above 5-7.
|
||||
|
||||
InterfaceShadowOpacity="0.6"
|
||||
## Double between 0 and 1. Alpha channel of the shadow behind the user and session selection background. Decrease or increase if it looks bad on your background.
|
||||
|
||||
RoundCorners="20"
|
||||
## Integer in pixels. Radius of the input fields and the login button. Empty for square. Can cause bad antialiasing of the fields.
|
||||
|
||||
ScreenPadding="0"
|
||||
## Integer in pixels. Increase or delete this to have a padding of color BackgroundColor all around your screen. This makes your login greeter appear as if it was a canvas. Cool!
|
||||
|
||||
Font="Noto Sans"
|
||||
## If you want to choose a custom font it will have to be available to the X root user. See https://wiki.archlinux.org/index.php/fonts#Manual_installation
|
||||
|
||||
FontSize="11"
|
||||
## Only set a fixed value if fonts are way too small for your resolution. Preferrably kept empty.
|
||||
|
||||
|
||||
|
||||
## [Interface Behavior]
|
||||
|
||||
ForceRightToLeft="false"
|
||||
## Revert the layout either because you would like the login to be on the right hand side or SDDM won't respect your language locale for some reason. This will reverse the current position of FormPosition if it is either left or right and in addition position some smaller elements on the right hand side of the form itself (also when FormPosition is set to center).
|
||||
|
||||
ForceLastUser="true"
|
||||
## Have the last successfully logged in user appear automatically in the username field.
|
||||
|
||||
ForcePasswordFocus="true"
|
||||
## Give automatic focus to the password field. Together with ForceLastUser this makes for the fastest login experience.
|
||||
|
||||
ForceHideCompletePassword="true"
|
||||
## If you don't like to see any character at all not even while being entered set this to true.
|
||||
|
||||
ForceHideVirtualKeyboardButton="false"
|
||||
## Do not show the button for the virtual keyboard at all. This will completely disable functionality for the virtual keyboard even if it is installed and activated in sddm.conf
|
||||
|
||||
ForceHideSystemButtons="false"
|
||||
## Completely disable and hide any power buttons on the greeter.
|
||||
|
||||
AllowEmptyPassword="false"
|
||||
## Enable login for users without a password. This is discouraged. Makes the login button always enabled.
|
||||
|
||||
AllowBadUsernames="false"
|
||||
## Do not change this! Uppercase letters are generally not allowed in usernames. This option is only for systems that differ from this standard! Also shows username as is instead of capitalized.
|
||||
|
||||
|
||||
|
||||
## [Locale Settings]
|
||||
|
||||
Locale=""
|
||||
## The time and date locale should usually be set in your system settings. Only hard set this if something is not working by default or you want a seperate locale setting in your login screen.
|
||||
|
||||
HourFormat="HH:mm"
|
||||
## Defaults to Locale.ShortFormat - Accepts "long" or a custom string like "hh:mm A". See http://doc.qt.io/qt-5/qml-qtqml-date.html
|
||||
|
||||
DateFormat="dddd, d of MMMM"
|
||||
## Defaults to Locale.LongFormat - Accepts "short" or a custom string like "dddd, d 'of' MMMM". See http://doc.qt.io/qt-5/qml-qtqml-date.html
|
||||
|
||||
|
||||
|
||||
## [Translations]
|
||||
|
||||
HeaderText="Welcome!"
|
||||
## Header can be empty to not display any greeting at all. Keep it short.
|
||||
|
||||
## SDDM may lack proper translation for every element. Suger defaults to SDDM translations. Please help translate SDDM as much as possible for your language: https://github.com/sddm/sddm/wiki/Localization. These are in order as they appear on screen.
|
||||
|
||||
TranslatePlaceholderUsername=""
|
||||
TranslatePlaceholderPassword=""
|
||||
TranslateShowPassword=""
|
||||
TranslateLogin=""
|
||||
TranslateLoginFailedWarning=""
|
||||
TranslateCapslockWarning=""
|
||||
TranslateSession=""
|
||||
TranslateSuspend=""
|
||||
TranslateHibernate=""
|
||||
TranslateReboot=""
|
||||
TranslateShutdown=""
|
||||
TranslateVirtualKeyboardButton=""
|
||||
## These don't necessarily need to translate anything. You can enter whatever you want here.
|
||||
Loading…
Add table
Add a link
Reference in a new issue