(Fix): Fixed extra directory not existing and populating the directory.

This commit is contained in:
2026-07-18 21:05:09 +05:30
parent 30c396ab9e
commit 89fafb892b
4 changed files with 74 additions and 0 deletions

13
extra/config.toml Normal file
View File

@@ -0,0 +1,13 @@
# latchd config — see src/config/config.go for all defaults.
# only include values you want to override.
# tty = 2
# pam_service = "latchd"
# system_shell = "/bin/sh"
# focus_behaviour = "default"
[power_controls]
# [[power_controls.entries]]
# hint = "Hibernate"
# key = "F3"
# cmd = "systemctl hibernate"

5
extra/lemurs.pam Normal file
View File

@@ -0,0 +1,5 @@
#%PAM-1.0
auth include login
account include login
session include login
password include login

15
extra/lemurs.service Normal file
View File

@@ -0,0 +1,15 @@
[Unit]
Description=latchd display manager
After=systemd-user-sessions.service plymouth-quit-wait.service getty@tty2.service
Conflicts=getty@tty2.service
[Service]
ExecStart=/usr/bin/latchd
StandardInput=tty
TTYPath=/dev/tty2
TTYReset=yes
TTYVHangup=yes
Type=idle
[Install]
Alias=display-manager.service

41
extra/xsetup.sh Executable file
View File

@@ -0,0 +1,41 @@
#!/bin/sh
# sourced by latchd before starting an X11 session.
# runs the user's xprofile, xinitrc fragments, and xsession.
_xexec="$1"
shift
# source shell profiles
if [ -f /etc/profile ]; then
. /etc/profile
fi
shell="${SHELL##*/}"
case "$shell" in
zsh) [ -f "$HOME/.zprofile" ] && . "$HOME/.zprofile" ;;
bash) [ -f "$HOME/.bash_profile" ] && . "$HOME/.bash_profile" ;;
*) [ -f "$HOME/.profile" ] && . "$HOME/.profile" ;;
esac
# source x profiles
[ -f /etc/xprofile ] && . /etc/xprofile
[ -f "$HOME/.xprofile" ] && . "$HOME/.xprofile"
# run xinitrc.d scripts
for _f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$_f" ] && . "$_f"
done
# run Xsession.d scripts
for _f in /etc/X11/Xsession.d/*; do
[ -x "$_f" ] && . "$_f"
done
# load xresources
if [ -f "$HOME/.Xresources" ]; then
xrdb -merge "$HOME/.Xresources"
fi
# run xsession
[ -f "$HOME/.xsession" ] && . "$HOME/.xsession"
exec $_xexec "$@"