Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.
genesisneoPublic archive

About

Easily organize windows without using a mouse.

Topics

Resources

Stars

7 stars

Watchers

1 watching

Forks

Repository files navigation



Sōkan (壮観)

Easily organize windows without using a mouse.


Table of Contents:


Download

You can download the application on the release page.
https://github.com/genesisneo/sokan/releases


Support this project

If you rely on this tool and find it useful, please consider supporting it.
Maintaining an open-source project takes time and a cup of coffee would be greatly appreciated!

Buy Me A Coffee

How to setup

  • Please note that this application only works on Windows operating system
  • Download, Fork, or Clone this repo
  • Download and install Node.js ^20.12.2.
    If you need multiple versions, you can use nvm-windows
  • Install the latest Python from Microsoft App Store.
    I use Python 3.12 when developing this project
  • Install Visual Studio 2019 or later.
    Use the Desktop development with C++ workload from Visual Studio Community
  • Open your preferred shell as Administrator and execute this command
Set-ExecutionPolicy RemoteSigned
  • Install node-gyp globally
npm i node-gyp -g
  • Navigate back to this repo and install all the dependencies
npm i
  • You can now do the following:
# start application
npn run start

# clean the application
npm run clean

# package the application
npm run package

# build the portable
npm run build

Development

To show developer tool and excute console log.
You can add the following code after window.loadFile.

window.webContents.openDevTools();
window.webContents.executeJavaScript(`console.log(">>> ${process.execPath}")`);

Task Scheduler

Since the application is not signed, it will not run on Windows start, even if the application is added on the following:

# registry editor
Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
# windows startup
%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup

To run the application on Windows start, we can use Task Scheduler. The scheduler.bat file, will create a basic task when Run as administrator.

Please note that before running this file as administrator, edit the file using Notepad or your preferred text editor and update the "C:\PATH\TO\Sokan.exe" accordingly. See example below.

SCHTASKS /CREATE /SC ONSTART /TN "Sokan" /TR "C:\Program Files\Customization\Sokan.exe" /RL HIGHEST

Question

If you have question, you can always contact me on Twitter @genesis_neo and of course here in GitHub @genesisneo. Thank you.


-=[ ❤️ ]=-

About

Easily organize windows without using a mouse.

Topics

Resources

Stars

7 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages