diff --git a/etc/systemd/user/wayvnc.service b/etc/systemd/user/wayvnc.service new file mode 100644 index 0000000..c050f15 --- /dev/null +++ b/etc/systemd/user/wayvnc.service @@ -0,0 +1,13 @@ +[Unit] +Description=A VNC server for wlroots based Wayland compositors +BindsTo=sway-session.target + +[Service] +Type=simple +ExecStart=/usr/bin/wayvnc +Restart=on-failure +RestartSec=1 +TimeoutStopSec=10 + +[Install] +WantedBy=sway-session.target diff --git a/home/default/.config/sway/config b/home/default/.config/sway/config index 2d5b52f..ae01829 100644 --- a/home/default/.config/sway/config +++ b/home/default/.config/sway/config @@ -264,4 +264,7 @@ input "1386:770:Wacom_Intuos_PT_S_Pad" { dwt enable } +# sway-session.target +exec_always systemctl --user start sway-session.target + include /etc/sway/config.d/* diff --git a/packages.txt b/packages.txt index 55479c5..5ed5291 100644 --- a/packages.txt +++ b/packages.txt @@ -356,6 +356,7 @@ w3m wakeonlan waybar wayland-utils +wayvnc wd719x-firmware wdisplays wf-recorder