df8a59d03bcdbffcc7c5ea5d2b7ae3f2e325c3da
wayviewer
A small Wayland-friendly VNC viewer written in C++.
Build
Dependencies:
- CMake 3.16+
- C++17 compiler
- SDL2 development files
- libvncclient development files
- pkg-config
Install
./install.sh
Uninstall:
./install.sh uninstall
System install:
./install.sh --system
Custom prefix:
./install.sh --prefix /path/to/prefix
Build Manually
cmake --preset default
cmake --build --preset default
For a debug build:
cmake --preset debug
cmake --build --preset debug
Run
./build/wayviewer HOST:5900
Use ./build/wayviewer --help for all options.
Launcher
Launching wayviewer without arguments from wofi opens graphical prompts for:
- server address
- username
- password
- quality
Install the binary and desktop entry into your user prefix:
cmake --install build
Then open wofi in drun mode and choose wayviewer.
Source Layout
src/main.cpp: process entry pointsrc/options.*: command-line parsing and wofi or terminal promptssrc/vnc_client.*: VNC client setup and callbackssrc/viewer_state.*: framebuffer state and dirty rectanglessrc/input.*: SDL input translationsrc/sdl_app.*: SDL window, rendering, and event loop
Why?
Because I needed a VNC viewer that didnt suck and so here it is. Provided with no warranty to anyone who wants to build off of this hunk of complete trash
Languages
C++
90.1%
Shell
7.3%
CMake
2.6%