This commit is contained in:
lickthecheese 2019-08-16 09:54:57 -04:00
parent b768a0c373
commit 99cea9cf84
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,10 @@
[Unit]
Description=SSH Key Agent
[Service]
Type=forking
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
ExecStart=/usr/bin/ssh-agent -a $SSH_AUTH_SOCK
[Install]
WantedBy=default.target

View file

@ -1,5 +1,11 @@
#!/bin/bash
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
export PATH=$PATH:/home/ltc/bin
[ -f ~/.bashrc ] && source "$HOME/.bashrc"
[ "$(tty)" = "/dev/tty1" ] && ! pgrep -x i3 > /dev/null && exec startx