1
0
mirror of https://gitlab.com/dbrw/ansible-setup.git synced 2026-02-06 03:05:32 +07:00

add docker task

This commit is contained in:
dbrw
2022-07-11 16:34:50 +07:00
parent 2760e8f99d
commit b941dd9f33
7 changed files with 35 additions and 5 deletions

View File

@@ -3,5 +3,8 @@
# Import environemnt to systemd user session
systemctl --user import-environment DISPLAY XAUTHORITY PATH XDG_SESSION_ID
autorandr -c &
xss-lock -- /usr/local/bin/slock -m 'mantull!!' &
# Run graphical-session.target
systemctl --user start --wait xorg.target

View File

@@ -0,0 +1,6 @@
#!/usr/bin/env bash
# Run X on stratup only on /dev/tty1
if [[ "$(tty)" == "/dev/tty1" && ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
exec startx
fi