From 4ab81bf9b65fb317c9ad39530ac9060f16d77d97 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Fri, 10 Jul 2020 14:33:32 +0200 Subject: bin/vncez: use gvncviewer, remove remmina and move window to scratchpad, making extend to the full output dimensions --- bin/vncez | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'bin') diff --git a/bin/vncez b/bin/vncez index 660db41..068a199 100755 --- a/bin/vncez +++ b/bin/vncez @@ -1,5 +1,4 @@ #!/bin/sh - set -e if [ -n "$1" ]; then @@ -9,15 +8,21 @@ if [ -n "$1" ]; then exit 2 fi -trap '{ pkill wshowkeys; pkill wayvnc; pkill remmina; }' EXIT +server_args= +if [ -n "$OUTPUT" ]; then + server_args="-o ${OUTPUT}" +fi + +trap '{ printf "\n=> killing everything...\n"; pkill wayvnc; pkill gvncviewer; }' 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 -c dmabuf 0.0.0.0 5500" >/dev/null -echo "=> starting remmina" -swx -g "1820,50 720x450" -b none -s -I "org.remmina.Remmina" remmina -c "$HOME"/.local/share/remmina/group_vnc_wayvnc_localhost-5500.remmina +swaymsg exec "wayvnc -c dmabuf -r ${server_args} 0.0.0.0" >/dev/null +echo "=> starting viewer" +swx -b none -S -F '1.0 tl' -- x11fy gvncviewer localhost +notify-send 'started screensharing' 'the vnc viewer window was moved to the scratchpad' while true; do sleep $((1024*1024)) done -- cgit 1.4.1