From 918cab2d3dc75cf05987569d689502ecf46a7c26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Sat, 15 Aug 2026 05:58:35 +0200 Subject: [PATCH] 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 --- .config/autostart/OpenRGB.desktop | 9 +++++++++ .config/autostart/RQuickShare.desktop | 8 ++++++++ .gitignore | 10 ++++++++++ .local/bin/openrgb-launcher.sh | 9 +++++++++ .local/share/applications/org.openrgb.OpenRGB.desktop | 11 +++++++++++ .local/share/applications/rquickshare.desktop | 9 +++++++++ 6 files changed, 56 insertions(+) create mode 100644 .config/autostart/OpenRGB.desktop create mode 100644 .config/autostart/RQuickShare.desktop create mode 100755 .local/bin/openrgb-launcher.sh create mode 100644 .local/share/applications/org.openrgb.OpenRGB.desktop create mode 100644 .local/share/applications/rquickshare.desktop diff --git a/.config/autostart/OpenRGB.desktop b/.config/autostart/OpenRGB.desktop new file mode 100644 index 0000000..99a8311 --- /dev/null +++ b/.config/autostart/OpenRGB.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Categories=Utility; +Comment=OpenRGB 0.9+ (1.0rc3), for controlling RGB lighting. +Icon=OpenRGB +Name=OpenRGB +StartupNotify=true +Terminal=false +Type=Application +Exec=/usr/bin/openrgb --profile "falcon" --server diff --git a/.config/autostart/RQuickShare.desktop b/.config/autostart/RQuickShare.desktop new file mode 100644 index 0000000..6b83477 --- /dev/null +++ b/.config/autostart/RQuickShare.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Type=Application +Version=1.0 +Name=RQuickShare +Comment=RQuickSharestartup script +Exec=/usr/bin/rquickshare +StartupNotify=false +Terminal=false \ No newline at end of file diff --git a/.gitignore b/.gitignore index b303c98..1736dd1 100755 --- a/.gitignore +++ b/.gitignore @@ -59,5 +59,15 @@ !.config/kitty/kitty.conf !.config/kitty/themes/ !.config/kitty/themes/noctalia.conf +!.config/autostart/ +!.config/autostart/OpenRGB.desktop +!.config/autostart/RQuickShare.desktop +!.local/ +!.local/bin/ +!.local/bin/openrgb-launcher.sh +!.local/share/ +!.local/share/applications/ +!.local/share/applications/org.openrgb.OpenRGB.desktop +!.local/share/applications/rquickshare.desktop !LICENSE !README.md diff --git a/.local/bin/openrgb-launcher.sh b/.local/bin/openrgb-launcher.sh new file mode 100755 index 0000000..650fc48 --- /dev/null +++ b/.local/bin/openrgb-launcher.sh @@ -0,0 +1,9 @@ +#!/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 diff --git a/.local/share/applications/org.openrgb.OpenRGB.desktop b/.local/share/applications/org.openrgb.OpenRGB.desktop new file mode 100644 index 0000000..3400421 --- /dev/null +++ b/.local/share/applications/org.openrgb.OpenRGB.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Type=Application +Version=1.5 +Name=OpenRGB +Comment=Control RGB lighting +Icon=org.openrgb.OpenRGB +StartupWMClass=openrgb +TryExec=openrgb +Exec=/home/valknar/.local/bin/openrgb-launcher.sh +Terminal=false +Categories=Utility; diff --git a/.local/share/applications/rquickshare.desktop b/.local/share/applications/rquickshare.desktop new file mode 100644 index 0000000..7f7e849 --- /dev/null +++ b/.local/share/applications/rquickshare.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Categories=Development; +Exec=env GDK_BACKEND=x11 WEBKIT_DISABLE_COMPOSITING_MODE=1 WEBKIT_DISABLE_DMABUF_RENDERER=1 rquickshare +Icon=rquickshare +Name=RQuickShare +Terminal=false +Type=Application +X-Desktop-File-Install-Version=0.28 +StartupWMClass=rquickshare