#!/bin/sh -eux # reset x11vnc x11vnc -R stop; # reset input devices for device in $(xinput --list --id-only) do xinput --disable "$device" && xinput --enable "$device"; done;