Using Via/Vial with Chromium on Linux

Posted on July 24, 2024 by vhs
Tags: linux, via

Linux does not give your browser write access to devices (e.g /dev/hidraw3) which is needed for Via to modify the device’s firmware.

So you need to change the permissions of the device first to let it be writable by world. The premissions will be reset next time the device is mounted so you would just need to disconnect and reconnect your keyboard.

Finding the keyboard

This command will give you information about the various devices mounted in your filesystem. Look for hints about the manufacturer of the keyboard - at the very least, use it to remove some devices from consideration.

#as admin
ls /dev/hidraw* | xargs -I  {} bash -c "udevadm info --query=all --name={$1}"

Once you’ve identified the device. change the permissions

Changing permissions

#as admin
chmod a+rw /dev/<yourdevice>

Now you access vial.rocks or usevia.app and change your keymap.