autologin

This commit is contained in:
thek4n 2025-11-13 19:43:39 +03:00
parent 5c96138aca
commit 1db4989005
3 changed files with 10 additions and 3 deletions

View File

@ -0,0 +1,4 @@
[Service]
Type=simple
ExecStart=
ExecStart=-/sbin/agetty --noreset --noclear --autologin thek4n - ${TERM}

View File

@ -1,5 +1,7 @@
# Sway config sourcer # Sway config sourcer
exec swaylock -f
set $mod Mod4 set $mod Mod4
set $ws1 "1 Browser" set $ws1 "1 Browser"
@ -13,8 +15,9 @@ set $ws8 "8💬Social"
set $ws9 "9🎵Music" set $ws9 "9🎵Music"
set $ws10 "10🍿Media" set $ws10 "10🍿Media"
# set $primary DVI-I-1 # Example variables.d:
# set $secondary VGA-1 #set $primary DVI-I-1
#set $secondary VGA-1
include ~/.config/sway/variables.d/*.conf include ~/.config/sway/variables.d/*.conf
include ~/.config/sway/other.conf include ~/.config/sway/other.conf

View File

@ -4,7 +4,7 @@ if [[ "${TTY}" =~ /dev/tty* ]]; then
setfont cyr-sun16 setfont cyr-sun16
fi fi
if [ "${TTY}" = "/dev/tty1" ] && [ -z "${WAYLAND_DISPLAY}" ] && [ -n "${XDG_VTNR}" ] && [ "${XDG_VTNR}" -eq 1 ] && systemctl -q is-active graphical.target; then if [ "${TTY}" = "/dev/tty1" ] && [ -z "${WAYLAND_DISPLAY}" ] && [ -z "${DISPLAY}" ]; then
wayland_dir="${XDG_STATE_HOME:-${HOME}/.local/state}/wayland" wayland_dir="${XDG_STATE_HOME:-${HOME}/.local/state}/wayland"
mkdir -p "${wayland_dir}" mkdir -p "${wayland_dir}"
exec sway >> "${wayland_dir}/sway.log" 2>&1 exec sway >> "${wayland_dir}/sway.log" 2>&1