diff options
Diffstat (limited to 'local')
-rwxr-xr-x | local/sbin/wayvnc1 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/local/sbin/wayvnc1 b/local/sbin/wayvnc1 index b21479d..64edd39 100755 --- a/local/sbin/wayvnc1 +++ b/local/sbin/wayvnc1 @@ -1,3 +1,5 @@ #!/usr/bin/env bash export WAYLAND_DISPLAY=wayland-1 +export SWAYSOCK="/run/user/${UID=$(id -u)}/sway-ipc.$UID.$(pgrep -x sway).sock" +swaymsg output '*' power on exec wayvnc localhost 5901 |