aboutsummaryrefslogtreecommitdiff
path: root/local
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-02-25 08:17:44 +0100
committerKarel Kočí <cynerd@email.cz>2022-02-25 08:17:44 +0100
commitea86783651f5561bc735f7393a6d1b8aca81b4d5 (patch)
tree31b8e9f85f4f2c8538473849d632da67972397ee /local
parent9ca5e516ee02940ae7c8c56254940d6ace009c20 (diff)
downloadmyconfigs-ea86783651f5561bc735f7393a6d1b8aca81b4d5.tar.gz
myconfigs-ea86783651f5561bc735f7393a6d1b8aca81b4d5.tar.bz2
myconfigs-ea86783651f5561bc735f7393a6d1b8aca81b4d5.zip
sway: improve integration
Diffstat (limited to 'local')
-rwxr-xr-xlocal/bin/sshvnc4
-rwxr-xr-xlocal/bin/startsway2
2 files changed, 4 insertions, 2 deletions
diff --git a/local/bin/sshvnc b/local/bin/sshvnc
index 8b6fa0d..af133b4 100755
--- a/local/bin/sshvnc
+++ b/local/bin/sshvnc
@@ -9,9 +9,9 @@ while lsof -i:$localport; do
done
ssh -L "$localport":localhost:5900 "$target" \
- 'x11vnc -bg -localhost -display :0'
+ 'start-stop-daemon -v -w 1000 -bmp "/var/run/user/$(id -u)/sshvnc.pid" -e WAYLAND_DISPLAY=wayland-1 -S wayvnc localhost 5900'
vncviewer "localhost:$localport"
-ssh "$target" 'x11vnc -remote stop -localhost -display :0'
+ssh "$target" 'start-stop-daemon -v -p /var/run/user/$(id -u)/sshvnc.pid -K wayvnc'
ssh -O cancel -L "$localport":localhost:5900 "$target"
diff --git a/local/bin/startsway b/local/bin/startsway
index 995362e..63163ee 100755
--- a/local/bin/startsway
+++ b/local/bin/startsway
@@ -14,5 +14,7 @@ export force_s3tc_enable=true
# Fix firefox touchscreen gestures and force wayland
export MOZ_USE_XINPUT2=1
export MOZ_ENABLE_WAYLAND=1
+# Java application do not display properly
+export _JAVA_AWT_WM_NONREPARENTING=1
exec dbus-run-session sway