From 5c79d147c57080d149afc8e69de6b69a91041a23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Wed, 21 Sep 2022 02:48:21 +0300 Subject: launch dbus only when launching sway --- dotfiles/.profile | 9 ++++----- 1 file 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 -- cgit v1.2.3