Files
home/.local/bin/openrgb-launcher.sh
T
valknarandClaude Sonnet 5 918cab2d3d feat: track OpenRGB single-instance fix and RQuickShare desktop files
Adds a headless OpenRGB autostart entry plus a launcher wrapper that
focuses the existing GUI window instead of spawning a duplicate
instance, and tracks the customized RQuickShare autostart/launcher
desktop entries.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-15 05:58:35 +02:00

10 lines
396 B
Bash
Executable File

#!/bin/bash
# Focuses the existing OpenRGB GUI window if one is already open,
# otherwise starts a new GUI (which connects to the headless
# autostart server instead of spawning a duplicate server instance).
if hyprctl clients -j | jq -e '.[] | select(.class == "openrgb")' > /dev/null; then
exec hyprctl dispatch focuswindow "class:^(openrgb)$" 2>/dev/null
else
exec /usr/bin/openrgb
fi