Skip to content

Commit

Permalink
Merge pull request #5 from olback/0.1.3
Browse files Browse the repository at this point in the history
fix some elementary os issues, added polling option
  • Loading branch information
olback authored Dec 17, 2019
2 parents 47993f3 + f85b7ed commit 886520c
Show file tree
Hide file tree
Showing 13 changed files with 456 additions and 41 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# 0.1.2
# 0.1.3
* Ability to configure cerbere.
* Kill existing plank process on startup
* Set polling rate with `-p`

## 0.1.2
* Improved compatibility with docks and disabled monitors.

## 0.1.1
Expand Down
196 changes: 195 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "autoplank"
version = "0.1.2"
version = "0.1.3"
authors = ["Edwin Svensson <git@olback.net>"]
edition = "2018"

Expand All @@ -11,3 +11,5 @@ serde = { version = "1.0", features = ["derive"] }
bincode = "1.2"
clap = { version = "2", features = ["yaml"] }
regex = "1.3"
sysinfo = "0.10"
nix = "0.16"
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,22 @@ Create a autostart file: `~/.config/autostart/autoplank.desktop`
[Desktop Entry]
Type=Application
Name=Autoplank
Description=Move plank to the monitor your mouse is at.
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).
16 changes: 16 additions & 0 deletions cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,19 @@ args:
long: rescan
takes_value: false
multiple: false
- elementary-fix:
help: "Remove plank from cerbere"
long: elementary-fix
takes_value: false
multiple: false
- elementary-restore:
help: "Add plank from cerbere"
long: elementary-restore
takes_value: false
multiple: false
- polling-rate:
help: "Set the mouse position polling rate in milliseconds"
short: p
long: polling-rate
takes_value: true
multiple: false
Loading

0 comments on commit 886520c

Please sign in to comment.