diff options
| author | Robert Günzler <r@gnzler.io> | 2020-06-13 14:23:57 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2020-06-13 14:23:57 +0200 |
| commit | 85e4f3c44aa01c6fea732965a747f26731adab73 (patch) | |
| tree | 7a42f106448a6029e9f5816967c7311ce4084b22 /bin/vncez | |
| parent | 898cd6f445cc995b8383a73ecd1a27c19560f92d (diff) | |
move some scripts from bin/hibiki to bin
Diffstat (limited to 'bin/vncez')
| -rwxr-xr-x | bin/vncez | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/bin/vncez b/bin/vncez new file mode 100755 index 0000000..660db41 --- /dev/null +++ b/bin/vncez @@ -0,0 +1,23 @@ +#!/bin/sh + +set -e + +if [ -n "$1" ]; then + printf "usage: %s\n" "$(basename "$0")" + printf "\n" + printf "launches wayvnc(1), wshowkeys(1) and remmina(1)\n" + exit 2 +fi + +trap '{ pkill wshowkeys; pkill wayvnc; pkill remmina; }' 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 + +while true; do + sleep $((1024*1024)) +done |