diff options
-rwxr-xr-x | .config/hypr/start | 7 | ||||
-rwxr-xr-x | rice.sh | 16 |
2 files changed, 15 insertions, 8 deletions
diff --git a/.config/hypr/start b/.config/hypr/start index f52cc13..05c20f4 100755 --- a/.config/hypr/start +++ b/.config/hypr/start @@ -3,4 +3,11 @@ export XDG_RUNTIME_DIR="/tmp/hyprland" mkdir -p $XDG_RUNTIME_DIR chmod 0700 $XDG_RUNTIME_DIR + +gpg-connect-agent updatestartuptty /bye >/dev/null +unset SSH_AGENT_PID +if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then + export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" +fi + exec dbus-launch --exit-with-session Hyprland @@ -41,14 +41,14 @@ cp -rf fast-syntax-highlighting /usr/share/zsh/plugins cd .. rm -rf hyprdots -#doas -u $PERMUSER mkdir -p /home/$PERMUSER/.ssh -#doas -u $PERMUSER mkdir -p /home/$PERMUSER/.gnupg -#doas -u $PERMUSER touch /home/$PERMUSER/.ssh/config -#doas -u $PERMUSER touch /home/$PERMUSER/.gnupg/gpg-agent.conf -#echo 'Match host * exec "gpg-connect-agent UPDATESTARTUPTTY /bye"' > /home/$PERMUSER/.ssh/config -#echo 'enable-ssh-support' > /home/$PERMUSER/.gnupg/gpg-agent.conf -#rc-update add sshd default -#rc-service sshd start +doas -u $PERMUSER mkdir -p /home/$PERMUSER/.ssh +doas -u $PERMUSER mkdir -p /home/$PERMUSER/.gnupg +doas -u $PERMUSER touch /home/$PERMUSER/.ssh/config +doas -u $PERMUSER touch /home/$PERMUSER/.gnupg/gpg-agent.conf +echo 'Match host * exec "gpg-connect-agent UPDATESTARTUPTTY /bye"' > /home/$PERMUSER/.ssh/config +echo 'enable-ssh-support' > /home/$PERMUSER/.gnupg/gpg-agent.conf +rc-update add sshd default +rc-service sshd start chsh -s /bin/zsh $PERMUSER |