aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorawy <awy@tutamail.com>2024-08-27 16:05:07 +0300
committerawy <awy@tutamail.com>2024-08-27 16:05:07 +0300
commite9808486fc6e81f1cc62677f0514a04b28a12125 (patch)
tree1ee7a267b5e6a2257243e131fa1646552006d287
parenta5936e2d55d13233080d383a1a14d0fb3ee22f75 (diff)
tidy
-rwxr-xr-x.config/hypr/start7
-rwxr-xr-xrice.sh16
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
diff --git a/rice.sh b/rice.sh
index 17ad2a6..aa41bc0 100755
--- a/rice.sh
+++ b/rice.sh
@@ -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