From d76ec5f5eb0feb3bc483556e8872de2c5deba044 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Sun, 6 Dec 2020 16:28:30 +0300 Subject: Save debug log for sway. Sway's been segfaulting too much on me lately. --- dotfiles/.profile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3