Replies: 2 comments 1 reply
|
If you run rofi 2.0 or git, the build in one should work fine. I am curious why not use that? I am not sure how hyprland deals with focus changes being requested while rofi has focus in it current 'overarching' layer. I think you might get a better answer from the hyprland people then here. |
1 reply
🛠️ Solution: Fixing Focus Race Conditions in Rofi + HyprlandThe reason your script works in the terminal but fails in Rofi—even when hardcoded—is that Rofi is still the "active" window when the The Fix: Detached Subshell with a DelayYou need to allow Rofi to exit completely before the Update your else
# Using ( ... ) & detaches the process, allowing Rofi to close immediately.
# The 0.1s sleep ensures the Rofi window is gone before the focus shift happens.
( sleep 0.1 && hyprctl dispatch focuswindow address:"$ROFI_INFO" ) &
fi |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi, having some very strange problem with my rofi-script:
rofi -show w -modes "w:/home/ars/.config/hypr/scripts/new.sh"hyprctl dispatchprints "ok" (If> /dev/nullis removed)... But nothing happens...hyprctl dispatch focuswindow address:0x556adebccb20it won't work from rofi, but will work from terminal.Please, help, any direction, adivce will be appreciated.
All reactions