16 lines
365 B
Bash
16 lines
365 B
Bash
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
|
gpgconf --launch gpg-agent
|
|
gpg-connect-agent updatestartuptty /bye
|
|
|
|
[ "$XDG_VTNR" = 1 ] && {
|
|
GUILOG="$HOME/.local/share/gui.log"
|
|
|
|
mkdir -p "$(dirname "$GUILOG")"
|
|
mv "$GUILOG" "$GUILOG.old" 2> /dev/null
|
|
|
|
export XDG_CURRENT_DESKTOP=Unity
|
|
exec startx > "$GUILOG" 2>&1
|
|
}
|
|
|
|
# vim: ft=zsh
|