https://github.com/olback/autoplank
Use plank on multi-monitor setups!
https://github.com/olback/autoplank
autoplank monitors mulit-monitor plank plank-dock rust
Last synced: 6 months ago
JSON representation
Use plank on multi-monitor setups!
- Host: GitHub
- URL: https://github.com/olback/autoplank
- Owner: olback
- License: mit
- Created: 2019-11-13T18:52:21.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-11T01:59:33.000Z (almost 2 years ago)
- Last Synced: 2024-05-01T13:11:48.940Z (about 1 year ago)
- Topics: autoplank, monitors, mulit-monitor, plank, plank-dock, rust
- Language: Rust
- Homepage:
- Size: 58.6 KB
- Stars: 35
- Watchers: 3
- Forks: 4
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Autoplank
[](https://circleci.com/gh/olback/autoplank/tree/master)
Automatically move plank to the monitor your mouse cursor is currently on.
Build the program or download the latest version from [releases](https://github.com/olback/autoplank/releases). If you download a pre-built binary, don't forget to make it executable!
```
cargo build --release
```Copy the binary to `~/.local/bin/autoplank`:
```
cp target/release/autoplank ~/.local/bin/autoplank
```Create a autostart file: `~/.config/autostart/autoplank.desktop`
```
[Desktop Entry]
Type=Application
Name=Autoplank
Description=Automatically move plank across monitors
Exec=.local/bin/autoplank
```optionally set your own polling rate like this (default: 500):
```
...
Exec=.local/bin/autoplank -p 200
```When adding/removing a monitor make sure to rescan:
```terminal
autoplank -r
```#### Elementary OS
Elementary has a service called `cerbere` which handles wingpanel and plank. To make autoplank work properly, you might have to run `autoplank --elementary-fix`. You can revert this change with `autoplank --elementary-restore`. For these commands to take affect, you have to restart/log out and in.Inspired by [abiosoft/autoplank](https://github.com/abiosoft/autoplank).