]> git.immae.eu Git - perso/Immae/Config/Ansible.git/blobdiff - roles/tools/files/ssh/rc
Add pavucontrol and ssh
[perso/Immae/Config/Ansible.git] / roles / tools / files / ssh / rc
diff --git a/roles/tools/files/ssh/rc b/roles/tools/files/ssh/rc
new file mode 100644 (file)
index 0000000..35b7d34
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+if [ -n "$DISPLAY" ]; then
+  export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority"
+  read protocol cookie
+  xauth remove $DISPLAY
+  xauth add $DISPLAY "$protocol" "$cookie"
+fi