add some files

This commit is contained in:
Tobias Strobel 2022-05-03 21:40:41 +02:00
parent a8c59e69cb
commit 481612fd84
12 changed files with 133 additions and 6 deletions

View file

@ -2,8 +2,18 @@
# ~/.bash_profile
#
[[ "$TTY" == /dev/tty* ]] || return 0
export $(systemctl --user show-environment)
export GPG_TTY="$TTY"
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/gnupg/S.gpg-agent.ssh"
systemctl --user import-environment GPG_TTY SSH_AUTH_SOCK
if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then
exec sway
systemd-cat -t sway sway
systemctl --user stop graphical-session.target
systemctl --user unset-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
fi
[[ -f ~/.bashrc ]] && . ~/.bashrc