(Fix): Fixed extra directory not existing and populating the directory.
This commit is contained in:
13
extra/config.toml
Normal file
13
extra/config.toml
Normal 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
5
extra/lemurs.pam
Normal 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
15
extra/lemurs.service
Normal 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
41
extra/xsetup.sh
Executable 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 "$@"
|
||||
Reference in New Issue
Block a user