Tauri plugin positioner
A plugin for tauri that helps positioning you windows at well known locations.
This plugin is a port of electron-positioner for tauri.
Install
Rust
[]
= "0.2"
JavaScript
pnpm add tauri-plugin-positioner
# or
npm install tauri-plugin-positioner
# or
yarn add tauri-plugin-positioner
Usage
You need to register the plugin first:
use ;
Now you can import the JavaScript API package and move to window:
import from 'tauri-plugin-positioner-api'
Rust only
If you only intend on moving the window from rust code, you can just import the Window trait extension instead of registering the plugin:
Note:
Window.move_windowmethod must be called from a different thread!
use ;
Contributing
PRs are welcome!