diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2022-12-20 00:36:11 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2022-12-20 00:36:11 +0300 |
commit | 16971f5221dfa1b8154b9537432985ad2d43b659 (patch) | |
tree | 48121d70aba36266c78aad867fe74f56f12be11e /dotfiles/.profile | |
parent | bf4229998a0f02b2ead99091e465b8314835e710 (diff) | |
download | swayrice-16971f5221dfa1b8154b9537432985ad2d43b659.tar.gz swayrice-16971f5221dfa1b8154b9537432985ad2d43b659.zip |
sway session improvements
* Fix screen sharing
* Config for xdpw
* Better way of launching sway and dbus
* Terminate all user processes on logout; this is to login to a clean
session on after logout, can be worked around.
Diffstat (limited to 'dotfiles/.profile')
-rw-r--r-- | dotfiles/.profile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/dotfiles/.profile b/dotfiles/.profile index 7cfd00d..00fed07 100644 --- a/dotfiles/.profile +++ b/dotfiles/.profile @@ -44,9 +44,12 @@ eval "$(dircolors "$HOME/.config/dir_colors")" # Start sway automatically upon login on tty1 or tty2 if [ -z $DISPLAY ] && [ $(tty) = /dev/tty1 ] || [ $(tty) = /dev/tty2 ]; then - # DBUS variables (for Artix) - export $(dbus-launch) - exec sway -d 2> ~/.cache/sway.log 1> /dev/null && clear && exit + dbus-run-session sway + if [ $? = 0 ] && [ ! -e ~/.cache/dont-kill ]; then + killall -u $(whoami) + clear + exit + fi mv ~/.cache/sway.log ~/.cache/sway-crash-$(date +"%Y-%m-%dT%H:%M").log fi |