Clone this into XDG_CONFIG_HOME
(usually ~/.config/
) and chill
Symlink to /etc/udev/hwdb.d
:
rm -d /etc/udev/hwdb.d # if exists
sudo ln -s "$(realpath ./hwdb.d)" /etc/udev/hwdb.d
If you're using different disk partition (or btrfs subvolume) between
/etc/udev
and XDG_CONFIG_HOME
, you'll mostly have a trouble to apply
proper hwdb in every reboot. In this case:
- do a hard copy:
sudo cp ./hwdb.d/* /etc/udev/hwdb.d/
- (not working)
or edit/etc/fstab
to addx-systemd.automount,x-systemd.before=systemd.hwdb-update.service
option in your partition containing this config folder.
Rebooting will apply changes. To instant apply, do:
sudo systemd-hwdb update --strict # this one compiles hwdb.bin
sudo udevadm trigger
and re-plug the devices
rm -r ~/.local/share/applications
ln -s "$(realpath ./applications)" ~/.local/share/applications