summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2022-11-18 18:21:52 +0100
committerRobert Günzler <r@gnzler.io>2022-11-18 18:38:23 +0100
commit0227628fbffc6dd8be20e197a98807c099c3be4f (patch)
tree9aac4ba4549b3ba9104fb304f7b8796816193573 /bin
parentc2bba945c8124c4af3168e3f522985802ce7ce5a (diff)
bin: drop vncez
Diffstat (limited to 'bin')
-rwxr-xr-xbin/vncez31
1 files changed, 0 insertions, 31 deletions
diff --git a/bin/vncez b/bin/vncez
deleted file mode 100755
index f82f524..0000000
--- a/bin/vncez
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-set -e
-[ -n "$DEBUG" ] && set -x
-
-if [ -n "$1" ]; then
-	printf "usage: %s\n" "$(basename "$0")"
-	printf "\n"
-	printf "launches a vnc server and client, creating a loopback X window\n"
-	exit 2
-fi
-
-server_args=
-if [ -n "$OUTPUT" ]; then
-	server_args="-o ${OUTPUT}"
-fi
-
-
-trap '{ printf "\n=> killing everything...\n"; }' INT
-trap '{ killall -9 wayvnc gvncviewer; notify-send "stopped output mirror" "cleaned up viewer window and workspace"; }' EXIT
-
-# echo "=> starting wshowkeys"
-# swaymsg exec "wshowkeys -a bottom -a left -F 'Iosevka Sparkle 25' -t 1" >/dev/null
-echo "=> starting wayvnc"
-swaymsg exec "wayvnc -r ${server_args} 0.0.0.0"
-echo "=> starting viewer"
-swx -w __vnc -- x11fy gvncviewer "0.0.0.0"
-
-notify-send 'started output mirror' 'the vnc viewer X window was moved to new workspace\nyou can screen cast the desktop using it'
-while true; do
-	sleep $((1024*1024))
-done