small updates

This commit is contained in:
Tyler Starr 2023-01-19 15:36:55 -08:00
parent dea8430811
commit e55366048c
2 changed files with 3 additions and 14 deletions

View File

@ -1,17 +1,3 @@
export SSH_AUTH_SOCK=${HOME}/.ssh/agent
if ! pgrep -u ${USER} ssh-agent > /dev/null; then
rm -f ${SSH_AUTH_SOCK}
fi
if [ ! -S ${SSH_AUTH_SOCK} ]; then
eval $(ssh-agent -a ${SSH_AUTH_SOCK} 2> /dev/null)
fi
if test -z "${XDG_RUNTIME_DIR}"; then
export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir
if ! test -d "${XDG_RUNTIME_DIR}"; then
mkdir "${XDG_RUNTIME_DIR}"
chmod 0700 "${XDG_RUNTIME_DIR}"
fi
fi
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
startx
fi

View File

@ -28,6 +28,9 @@
- nerd-fonts # Iconic font aggregator, collection and patcher
- xdotool # Command-line X11 automation tool
- flameshot # Powerful yet simple to use screenshot software for GNU/Linux
- cups
- hplip
- system-config-printer
state: present
become: true