Simple Window Manager - SWM

So, I love this. Thanks for building and sharing it. My main question is, I'd like to assign some keyboard shortcuts to like 4 or 5 of the configurations that I've set up. I have a ultra wide screen, 5120x1440, so I divided my screen into two rows and 4 columns, and I want to be able to use a keyboard shortcut to assign a window to one of those zones, basically. I'm not sure how to go about doing this?

@Mike_Earley you can use built in tools for keyboard shortcuts. its easier if you set "Custom move/resize window" actions with percentages like this

this should move your window to second column of first row

0 x 0 0
0 0 0 0

also you can create custom icons on swm fyi. you can find a template and description on first post

This is beyond awesome,

is there a way to drag and select the grid instead of click and click ?

it is designed to click and click, not drag,
I would also like to drag

@ageorgios i'm investigating cause of crash. drag feature to will be nice addition. i will share a new release after figuring out how it will work and some testing

1 Like

Hello and thank you for making this preset. I have read and reread all posts provided and am unable to activate the grid by right clicking on the yellow minimize button. The preset used to work flawlessly however when executed all I see the small spinning wheel. Monterey 12.7.6 any and all help/assistance would be greatly appreciated. Thank you.

hi @Edgard_Malagon did you tested previous versions. also i recommend resetting variables for each test.
BTT settings > Scripting BTT > Reset all variables

make these one checked
BetterTouchTool Settings > Scripting > Allow external BetterTouchTool scripting
macOS Settings > Security & Privacy > Accessibility > BetterTouchTool > Allow
macOS Settings > Security & Privacy > Automation > BetterTouchTool > Allow

Hello @yw4z thank you for your reply and assistance! I double and triple checked and have the settings checked as prescibed above. Tested every single version available resetting variables before every test and nothing :frowning: All I get is the lil spinning wheel.

@Edgard_Malagon
spinning wheel indicates webkit stucks on loading SWM. here is an another method
• Make sure notifications for BTT enabled on macOS settings
• Install latest version of SWM ( that has a debug feature)
• Goto /Users/YourUserName/Library/Application Support/BetterTouchTool/PresetBundles/Some-Random-Characters-Simple Window Manager - SWM/SWM/Prefs.js
change "DV=DevMode=0" to "DV=DevMode=1" in Prefs.js file

Normally SWM should send a notification if there are any problems while loading. There may be incompatibility issues exist with old webkit/macOS versions and latest BTT if you cannot see a notification

This might be related with your issue
https://forums.developer.apple.com/forums/thread/130859
make sure running latest mojave

@yw4z followed instructions to the letter. I did not receive a notification from BTT alerting of any problems. Running Monterey 12.7.6

Screen Shot 2024-11-09 at 7.43.49 AM
Screen Shot 2024-11-09 at 7.46.29 AM

Thank you thank you for your time and attention.

@Andreas_Hegenberg swm broken on latest btt alphas. i assume changes on 4.910 or 4.872 caused that. only spinning wheel shows up while loading webview. do i have to change anything on my code? normally swm sends a notification while loading if there is an error and no visible errors

I'll check what's wrong, you shouldn't need to change anything. Will upload a fix when I found the issue!

1 Like

Found it, fix will be online in ~15min

1 Like

@Andreas_Hegenberg thanks its fixed now

@Edgard_Malagon can you test latest alpha of btt. i assume you were using alpha version. i updated and saw same problems like yours. that should be fixed now if you tested on btt alpha version before

@Andreas_Hegenberg - still does not work only see spinning wheel...

@Andreas_Hegenberg edgard using mojave and i / him shared some info about problem above. there is a webkit related issue by system update on macos.
https://forums.developer.apple.com/forums/thread/130859
im not sure its fixable / related or that issue still persist on mojave.
can you look at it if you have any setup that running mojave

@yw4z Hello not using Mojave... using Monterey 12.7.6

it’s quite possible that the webviews on macOS 12 don’t support all the java script features required by BTT or SWM.
I‘ll check, but it will take a while as I first need to setup a new VM and apparently macOS 12 VMs are not easily runnable on M4 Macs…

Thank you thank you.