Crates.io | wlm |
lib.rs | wlm |
version | 0.3.0 |
source | src |
created_at | 2020-05-02 16:23:07.291827 |
updated_at | 2020-07-09 01:29:46.377726 |
description | A command-line tool to move and resize windows based on a config. |
homepage | https://github.com/erichschroeter/wlm |
repository | https://github.com/erichschroeter/wlm |
max_upload_size | |
id | 236623 |
size | 116,421 |
wlm is a command-line tool to move and resize windows based on a config.
wlm started as an open source replacement to http://www.stefandidak.com/windows-layout-manager/ and a way for me to get more experience with Rust. The intent is to provide cross-platform support, with Windows being the first to be implemented.
cargo install wlm
A config is a list of windows and their respective properties.
wlm init
By default, this will create a default.json
in your platform-specific location.
This is determined by the directories library.
Multiple configs can be created by using the --file
argument.
Once a window is in a state you like, get its information via the ls
command.
wlm ls
The following example will create a new window in your config:
wlm add --process "chrome.exe" -x 0 -y 0 -w 800 -H 600
And now that, that window exists it can be modified via the following example:
wlm config windows.0.process "chrome.exe"
wlm config windows.0.x 0
wlm config windows.0.y 0
wlm config windows.0.w 800
wlm config windows.0.h 600
To view your existing config:
wlm config
Now to apply the config:
wlm apply
To apply a different config, simply specify it with the --file
argument.
$HOME/.config/wlm/default.json
wlm config windows.2.process "chrome.exe"