Skip to content

Commit 886520c

Browse files
authored
Merge pull request #5 from olback/0.1.3
fix some elementary os issues, added polling option
2 parents 47993f3 + f85b7ed commit 886520c

File tree

13 files changed

+456
-41
lines changed

13 files changed

+456
-41
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
# 0.1.2
1+
# 0.1.3
2+
* Ability to configure cerbere.
3+
* Kill existing plank process on startup
4+
* Set polling rate with `-p`
5+
6+
## 0.1.2
27
* Improved compatibility with docks and disabled monitors.
38

49
## 0.1.1

Cargo.lock

Lines changed: 195 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "autoplank"
3-
version = "0.1.2"
3+
version = "0.1.3"
44
authors = ["Edwin Svensson <git@olback.net>"]
55
edition = "2018"
66

@@ -11,3 +11,5 @@ serde = { version = "1.0", features = ["derive"] }
1111
bincode = "1.2"
1212
clap = { version = "2", features = ["yaml"] }
1313
regex = "1.3"
14+
sysinfo = "0.10"
15+
nix = "0.16"

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,22 @@ Create a autostart file: `~/.config/autostart/autoplank.desktop`
1717
[Desktop Entry]
1818
Type=Application
1919
Name=Autoplank
20-
Description=Move plank to the monitor your mouse is at.
20+
Description=Automatically move plank across monitors
2121
Exec=.local/bin/autoplank
2222
```
2323

24+
optionally set your own polling rate like this (default: 500):
25+
```
26+
...
27+
Exec=.local/bin/autoplank -p 200
28+
```
29+
2430
When adding/removing a monitor make sure to rescan:
2531
```terminal
2632
autoplank -r
2733
```
2834

35+
#### Elementary OS
36+
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.
37+
2938
Inspired by [abiosoft/autoplank](https://github.com/abiosoft/autoplank).

cli.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,19 @@ args:
99
long: rescan
1010
takes_value: false
1111
multiple: false
12+
- elementary-fix:
13+
help: "Remove plank from cerbere"
14+
long: elementary-fix
15+
takes_value: false
16+
multiple: false
17+
- elementary-restore:
18+
help: "Add plank from cerbere"
19+
long: elementary-restore
20+
takes_value: false
21+
multiple: false
22+
- polling-rate:
23+
help: "Set the mouse position polling rate in milliseconds"
24+
short: p
25+
long: polling-rate
26+
takes_value: true
27+
multiple: false

0 commit comments

Comments
 (0)