From 28ea7040012d71230eff8f50df31c3b0511a9877 Mon Sep 17 00:00:00 2001
From: Seymur Bagirov <megadestroyer230@gmail.com>
Date: Mon, 22 Jan 2024 23:41:45 +0400
Subject: [PATCH] fix armcord exec-once

this makes it that when i launch armcord with rofi, it doesn't create a
new instance, but just opens the window of the already active instance
---
 hypr/autostart.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hypr/autostart.conf b/hypr/autostart.conf
index 714b75a..afc141b 100755
--- a/hypr/autostart.conf
+++ b/hypr/autostart.conf
@@ -9,7 +9,7 @@ exec-once=[workspace 1 silent] steam
 exec-once= xembedsniproxy & # for wine system tray
 exec-once=solaar --window=hide
 exec-once=blueman-applet
-exec-once=armcord & disown
+exec-once=hyprctl dispatch exec "armcord --enable-features=WaylandWindowDecorations,WebRTCPipeWireCapturer --ozone-platform-hint=wayland"
 # exec-once=wallengine --screen-root HDMI-A-2 1383845959
 # exec-once=/home/themystery/.local/share/JetBrains/Toolbox/bin/jetbrains-toolbox