diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2022-09-21 02:48:21 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2022-09-21 02:48:21 +0300 |
commit | 5c79d147c57080d149afc8e69de6b69a91041a23 (patch) | |
tree | 878940cd1dc74e56aeff399a7066864c0cdf89bd /dotfiles/.profile | |
parent | 24ac3cd2e11c114ef4c8ae1284953c8928f4a820 (diff) | |
download | swayrice-5c79d147c57080d149afc8e69de6b69a91041a23.tar.gz swayrice-5c79d147c57080d149afc8e69de6b69a91041a23.zip |
launch dbus only when launching sway
Diffstat (limited to 'dotfiles/.profile')
-rw-r--r-- | dotfiles/.profile | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/dotfiles/.profile b/dotfiles/.profile index 320c1ae..5657155 100644 --- a/dotfiles/.profile +++ b/dotfiles/.profile @@ -39,12 +39,11 @@ eval "$(dircolors "$HOME/.config/dir_colors")" . "$HOME/.config/lf/icons" -export $(dbus-launch) - # Start sway automatically upon login on tty1 or tty2 if [ -z $DISPLAY ] && [ $(tty) = /dev/tty1 ] || [ $(tty) = /dev/tty2 ]; then - # DBUS variables (for Artix) - exec sway -d 2> ~/.cache/sway.log 1> /dev/null && clear && exit - mv ~/.cache/sway.log ~/.cache/sway-crash-$(date +"%Y-%m-%dT%H:%M").log + # DBUS variables (for Artix) + export $(dbus-launch) + exec sway -d 2> ~/.cache/sway.log 1> /dev/null && clear && exit + mv ~/.cache/sway.log ~/.cache/sway-crash-$(date +"%Y-%m-%dT%H:%M").log fi |