Files
omarchy-pkgs/pkgbuilds/grok-bot/grok-bot.sh
T
Tobi Lutke dbee603e5b Add grok-bot 0.18.0
Package the official Grok Bot Linux .deb (internal name: sand) for Arch.
Wraps /opt/Grok Bot/sand with a Wayland launcher and grok-bot desktop entry.

Linux has no latest feed; update-pkgver.sh resolves version+commit from the
darwin-arm64 sand feed and HEAD-checks the Linux deb before pinning.
2026-08-13 10:17:24 -04:00

17 lines
507 B
Bash
Executable File

#!/bin/bash
XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
export ELECTRON_OZONE_PLATFORM_HINT="${ELECTRON_OZONE_PLATFORM_HINT:-wayland}"
export NIXOS_OZONE_WL="${NIXOS_OZONE_WL:-1}"
if [[ -f $XDG_CONFIG_HOME/grok-bot-flags.conf ]]; then
GROK_BOT_USER_FLAGS="$(sed 's/#.*//' "$XDG_CONFIG_HOME/grok-bot-flags.conf" | tr '\n' ' ')"
fi
exec "/opt/Grok Bot/sand" \
--ozone-platform=wayland \
--enable-features=UseOzonePlatform,WaylandWindowDecorations \
--enable-wayland-ime \
"$@" $GROK_BOT_USER_FLAGS