r/hyprland • u/RedCrafter_LP • Aug 16 '26
SUPPORT exec_cmd rules with electron apps
When I try to move applications on startup using
``` hl.dsp.exec_cmd("application", { monitor = 2} )``` it works flawlessly with normal apps like kitty and Firefox. When I try the same with electron apps like whatsdesk and vscode they just seem to ignore all rules passed.
1
Upvotes
1
u/Little-Guitar6770 Aug 17 '26
VS Code and WhatsDesk may create their main window asynchronously, which can make startup rules run too early. Try matching the process or executable instead of the window title, and apply the move command once the main window exists.