diff options
Diffstat (limited to 'dotfiles/.profile')
-rw-r--r-- | dotfiles/.profile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/dotfiles/.profile b/dotfiles/.profile index a675b1a..3f89bab 100644 --- a/dotfiles/.profile +++ b/dotfiles/.profile @@ -51,7 +51,14 @@ eval "$(dircolors "$HOME/.config/dir_colors")" . "$HOME/.config/lf/icons" # Start sway automatically upon login on tty1 or tty2 -if [ -z $DISPLAY ] && [ $(tty) = /dev/tty1 ] || [ $(tty) = /dev/tty2 ]; then - exec dbus-run-session sway 2> ~/.cache/sway.log +if [ -z $DISPLAY ]; then + if [ $(tty) = /dev/tty1 ] || [ $(tty) = /dev/tty2 ]; then + exec dbus-run-session sway 2> ~/.cache/sway.log + elif [ $(tty) = /dev/tty3 ]; then + pipewire & wireplumber & pipewire-pulse & pipewire-jack & + exec dbus-run-session niri --session + fi fi + + |