aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dotfiles/.profile3
1 files changed, 2 insertions, 1 deletions
diff --git a/dotfiles/.profile b/dotfiles/.profile
index 3b9d5a3..02e6b4a 100644
--- a/dotfiles/.profile
+++ b/dotfiles/.profile
@@ -38,6 +38,7 @@ eval "$(dircolors "$HOME/.config/dir_colors")"
if [ -z $DISPLAY ] && [ $(tty) = /dev/tty1 ] || [ $(tty) = /dev/tty2 ]; then
# DBUS variables (for Artix)
export $(dbus-launch)
- sway > ~/.cache/sway.log 2>&1 && clear && exit
+ 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