You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use the Raycast window manager extension to manage my window size and position and I'm now trying to automate that process using bunch.
I'm just starting and this is what I have:
---
title: Setup LX
---
# This should only be run with all the screens already connected
# apps tha should be in sidecar should already be there
# Open apps that are not already open
# % tells the bunch not to close them if the bunch is closed
%Arc
%Notion Calendar
%WhatsApp
%Obsidian
%Discord
%Spotify
%Bambu Studio
%Superhuman
%Reeder
%Code - Insiders
# Figuring out which screens are connected
nr_of_displays = $ system_profiler SPDisplaysDataType | grep -c Resolution
sidecar_on = $ system_profiler SPDisplaysDataType | grep -c "Sidecar"
big_lg_on = $ system_profiler SPDisplaysDataType | grep -c "LG HDR DQHD"
(log nr_of_displays is set to ${nr_of_displays})
(log sidecar_on is set to ${sidecar_on})
(log big_lg_on is set to ${big_lg_on})
# Moving windows based on connected displays
if nr_of_displays is greater than 1
(input source ABC) # international keyboard whenever I'm not only on the laptop
if big_lg_on is greater than 0
if sidecar_on is greater than 0
(log inside sidecar)
%Arc^
{~^2}
else
# do nothing for now
end
else
# do nothing for now
end
else
(input source PT) #laptop keyboard
end
My problem is that I'm unable to get Arc to focus, everything is working as intended but when I do this:
%Arc^
{~^2}
It doesn't focus on Arc so although Raycast registers the keys and moves the window it doesn' move Arc as it is not the App in focus...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I use the Raycast window manager extension to manage my window size and position and I'm now trying to automate that process using bunch.
I'm just starting and this is what I have:
My problem is that I'm unable to get Arc to focus, everything is working as intended but when I do this:
It doesn't focus on Arc so although Raycast registers the keys and moves the window it doesn' move Arc as it is not the App in focus...
What did I miss?
Beta Was this translation helpful? Give feedback.
All reactions