refactor
This commit is contained in:
parent
e5f3079c82
commit
4048e16bbe
@ -1,9 +1,18 @@
|
||||
|
||||
if [[ "$TTY" =~ /dev/tty* ]]; then
|
||||
if [[ "${TTY}" =~ /dev/tty* ]]; then
|
||||
setterm -blength=0
|
||||
setfont cyr-sun16
|
||||
fi
|
||||
|
||||
if [[ "$TTY" = "/dev/tty1" ]] && [[ $XDG_VTNR -eq 1 ]] && [[ -z $DISPLAY ]] && systemctl -q is-active graphical.target; then
|
||||
exec startx >> ~/.xlogs 2>&1
|
||||
fi
|
||||
if [ "${TTY}" = "/dev/tty1" ] && [ "${XDG_VTNR}" -eq 1 ] && [ -z "${DISPLAY}" ] && systemctl -q is-active graphical.target; then
|
||||
x11_dir="${XDG_STATE_HOME:-${HOME}/.local/state}/x11"
|
||||
mkdir -p "${x11_dir}"
|
||||
exec startx >> "${x11_dir}/x11.log" 2>&1
|
||||
|
||||
fi
|
||||
|
||||
# if [ "${TTY}" = "/dev/tty1" ] && systemctl -q is-active graphical.target; then
|
||||
# wayland_dir="${XDG_STATE_HOME:-${HOME}/.local/state}/wayland"
|
||||
# mkdir -p "${wayland_dir}"
|
||||
# exec sway --unsupported-gpu >> "${wayland_dir}/sway.log" 2>&1
|
||||
# fi
|
||||
|
||||
@ -6,6 +6,7 @@ umask 022
|
||||
export XDG_RUNTIME_DIR="/run/user/$(id -u)"
|
||||
export XDG_CONFIG_HOME="${HOME}/.config"
|
||||
export XDG_DATA_HOME="${HOME}/.local/share"
|
||||
export XDG_STATE_HOME="${HOME}/.local/state"
|
||||
export ZDOTDIR="${XDG_CONFIG_HOME}/zsh"
|
||||
|
||||
for TMPDIR in "${TMPDIR}" "${TMP}" /tmp /var/tmp
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user