aboutsummaryrefslogtreecommitdiff
path: root/laptop
diff options
context:
space:
mode:
authorMosder <xmosder12@gmail.com>2025-10-30 16:13:34 +0100
committerMosder <xmosder12@gmail.com>2025-10-30 16:13:34 +0100
commitdb671eee43e0321537de4ad97c445d1efe2a7ee6 (patch)
tree048e0ccbd8ce2496db43d538ea05072176408c19 /laptop
parent49eada44cdeded7ec87feeb1278908731891b0f3 (diff)
laptop - sddm config and monitor mirroring support
Diffstat (limited to 'laptop')
-rw-r--r--laptop/.config/hypr/hyprland.conf6
-rw-r--r--laptop/README.md2
-rw-r--r--laptop/root/etc/sddm.conf139
3 files changed, 146 insertions, 1 deletions
diff --git a/laptop/.config/hypr/hyprland.conf b/laptop/.config/hypr/hyprland.conf
index 80bc8a4..9cf630c 100644
--- a/laptop/.config/hypr/hyprland.conf
+++ b/laptop/.config/hypr/hyprland.conf
@@ -16,7 +16,8 @@ $menu = wofi
################
# See https://wiki.hypr.land/Configuring/Monitors/
-monitor=,highres,auto,1
+monitor=eDP-1,highres,auto,1
+monitor=,preferred,auto,1,mirror,eDP-1
#################
### AUTOSTART ###
@@ -39,6 +40,9 @@ exec-once = $scriptsDir/randomize-wallpaper.sh
exec-once = hyprpaper
exec-once = hypridle
+# Lock after autologin in sddm, to use lockscreen as login
+exec-once = hyprlock
+
#############################
### ENVIRONMENT VARIABLES ###
#############################
diff --git a/laptop/README.md b/laptop/README.md
new file mode 100644
index 0000000..db5b196
--- /dev/null
+++ b/laptop/README.md
@@ -0,0 +1,2 @@
+All files and directories go to the <b>$HOME</b> directory.
+The only exception is the <i>root</i> directory - all files and directories from there go to <b>/</b>.
diff --git a/laptop/root/etc/sddm.conf b/laptop/root/etc/sddm.conf
new file mode 100644
index 0000000..8ebec83
--- /dev/null
+++ b/laptop/root/etc/sddm.conf
@@ -0,0 +1,139 @@
+[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=mosder
+
+
+[General]
+# Which display server should be used.
+# Valid values are: x11, x11-user, wayland. Wayland support is experimental
+DisplayServer=wayland
+
+# 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=
+
+# Cursor size used in the greeter
+CursorSize=
+
+# Cursor theme used in the greeter
+CursorTheme=
+
+# 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=true
+
+# 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
+
+
+[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=kiosk
+
+# 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
+
+