Bash : Add Sway autostart.

This commit is contained in:
Dmitry Voronin 2024-03-28 06:48:00 +03:00
parent 0e50ddd4dd
commit 7bd7ba028d

View file

@ -16,3 +16,8 @@ function bashrc() {
# Export all functions. # Export all functions.
export -f $(find_function | tr '\n' ' ') export -f $(find_function | tr '\n' ' ')
# Autostart Sway.
if [[ -z ${DISPLAY} ]] && [[ "$(tty)" = "/dev/tty1" ]]; then
exec sway
fi