From 1c65d1db0fc337add4cd0164fc6d093b8952ada9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Gr=C3=BCndel?= Date: Wed, 22 Apr 2026 13:53:52 +0200 Subject: [PATCH] Add migration script to enable GPU in voxtype if Vulkan is available (#5203) --- migrations/1775241210.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 migrations/1775241210.sh diff --git a/migrations/1775241210.sh b/migrations/1775241210.sh new file mode 100644 index 00000000..f6e45eeb --- /dev/null +++ b/migrations/1775241210.sh @@ -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