feat: ssh-agent on startup

This commit is contained in:
AngeD 2023-10-28 12:45:10 +02:00
parent 3416889521
commit 409c6993f2
5 changed files with 7 additions and 4 deletions

View File

@ -1 +0,0 @@
/home/ange/bin/wallpaper

View File

@ -1 +0,0 @@
/home/ange/bin/wallpaper

View File

@ -1,3 +1,9 @@
if ! pgrep -u "$USER" ssh-agent > /dev/null; then
ssh-agent > "$XDG_RUNTIME_DIR/ssh-agent.env"
fi
. "$XDG_RUNTIME_DIR/ssh-agent.env"
[ "$XDG_VTNR" = 1 ] && { [ "$XDG_VTNR" = 1 ] && {
GUILOG="$HOME/.local/share/gui.log" GUILOG="$HOME/.local/share/gui.log"

View File

@ -4,8 +4,7 @@
#(i3status | while read line; do xsetroot -name "$line"; done) & #(i3status | while read line; do xsetroot -name "$line"; done) &
# startup # startup
eval "$(ssh-agent)" autorandr -c
wallpaper &
xss-lock -n screensaver -- lock & xss-lock -n screensaver -- lock &
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 || # arch /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 || # arch
/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 || # debian /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 || # debian