diff --git a/bin/dwm b/bin/dwm deleted file mode 100755 index dcbf3b6..0000000 --- a/bin/dwm +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -cd -exec dwm \ - "$@" - diff --git a/bin/instvnc b/bin/instvnc new file mode 100755 index 0000000..9c1a774 --- /dev/null +++ b/bin/instvnc @@ -0,0 +1,15 @@ +#!/bin/sh -e + +display="$(grep "$LOGNAME" /etc/tigervnc/vncserver.users | head -n 1 | awk -F '=' '{ print $1 }')" +echo "Using display: $display" +test -n "$display" + +set -x +cd +exec \ + screen \ + -d \ + -m \ + vncserver \ + "$display" +