Add migration script to enable GPU in voxtype if Vulkan is available (#5203)

This commit is contained in:
Stefan Gründel
2026-04-22 13:53:52 +02:00
committed by GitHub
parent d4f4592dd2
commit 1c65d1db0f
+16
View File
@@ -0,0 +1,16 @@
echo "Enable GPU in voxtype if Vulkan is available"
if omarchy-cmd-present voxtype; then
if omarchy-hw-vulkan; then
echo "Vulkan is available, enabling GPU in voxtype"
sudo voxtype setup gpu --enable || true
fi
# see https://github.com/peteonrails/voxtype/commit/ce6e9919cbe54cb8808dcb3cdd3bcb3260d7b900
# earlier versions of voxtype hard-coded the non-GPU backend in the systemd service file,
# so we need to re-run setup to update it to use /usr/bin/voxtype (the symlink)
voxtype setup systemd
systemctl --user restart voxtype
omarchy-restart-waybar
fi