diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2020-12-06 16:28:30 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2020-12-06 16:28:30 +0300 |
commit | d76ec5f5eb0feb3bc483556e8872de2c5deba044 (patch) | |
tree | abde99a2e9fa84dbd60464a41959fd15ec99b0c7 | |
parent | 60c2cc122f2389d66be3868489aff59e61589ab7 (diff) | |
download | swayrice-d76ec5f5eb0feb3bc483556e8872de2c5deba044.tar.gz swayrice-d76ec5f5eb0feb3bc483556e8872de2c5deba044.zip |
Save debug log for sway.
Sway's been segfaulting too much on me lately.
-rw-r--r-- | dotfiles/.profile | 3 |
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 |