Is there any way to get Kloak installed on Fedora?
I tested it on Fedora 44 and got it running on Sway. You can build it from source, but GNOME Wayland doesn’t expose the protocols it needs, so you’ll need a wlroots-based compositor like Sway.
Here’s what I did:
- Install the dependencies:
sudo dnf install git make gcc pkgconf-pkg-config libevdev-devel libinput-devel wayland-devel libudev-devel libxkbcommon-devel
- Clone and build it:
git clone https://github.com/Whonix/kloak.git
cd kloak
make all
- Install Sway if you don’t already have a wlroots-based compositor:
sudo dnf install sway
Log out, select Sway from the session menu on the login screen, and log back in.
- Check that the required Wayland protocols are available:
wayland-info | grep -E 'zwlr_layer_shell_v1|zwlr_virtual_pointer_manager_v1|zwp_virtual_keyboard_manager_v1'
I could see all three when running Sway. They weren’t available in my GNOME Wayland session.
- Run Kloak from its source directory:
cd ~/kloak
sudo env WAYLAND_DISPLAY="$WAYLAND_DISPLAY" XDG_RUNTIME_DIR="$XDG_RUNTIME_DIR" ./kloak
You need to preserve those environment variables when using sudo; otherwise, Kloak may not find your Wayland display.
On my system, it launched without errors, and I noticed a slight input delay. That confirms it runs, though I haven’t independently verified how effectively it obfuscates input timing.
To stop it: use Kloak’s Right Shift + Esc escape shortcut, then exit Sway with Super + Shift + E to return to the login screen.