Bash : Add Sway autostart.
This commit is contained in:
parent
0e50ddd4dd
commit
7bd7ba028d
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue