Update to reflect calling from code
This commit is contained in:
parent
2cbbdcdae1
commit
8d44ba85b4
1 changed files with 30 additions and 9 deletions
39
README.md
39
README.md
|
@ -1,10 +1,29 @@
|
||||||
keep waking Windows up
|
keep waking Windows up
|
||||||
|
|
||||||
[![Go Report Card](https://goreportcard.com/badge/github.com/shu-go/vvin)](https://goreportcard.com/report/github.com/shu-go/vvin)
|
|
||||||
![MIT License](https://img.shields.io/badge/License-MIT-blue)
|
![MIT License](https://img.shields.io/badge/License-MIT-blue)
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
|
|
||||||
|
```
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"git.bigun.dev/evan/vvin"
|
||||||
|
)
|
||||||
|
|
||||||
|
// program implements vvin
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
|
||||||
|
// Bring this program's window to the top.
|
||||||
|
err := vvin.Vvin([]string{"topmost"})
|
||||||
|
if err != nil {
|
||||||
|
log.Println(err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
Sub commands:
|
Sub commands:
|
||||||
minimize, min minimize/restore
|
minimize, min minimize/restore
|
||||||
|
@ -21,31 +40,32 @@ Options:
|
||||||
## minimize/restore
|
## minimize/restore
|
||||||
|
|
||||||
```
|
```
|
||||||
> ./vvin -t Notepad min
|
vvin.Vvin([]string{"-t", "notepad", "min"})
|
||||||
|
|
||||||
> ./vvin -t Notepad min --restore
|
vvin.Vvin([]string{"-t", "notepad", "min", "--restore"})
|
||||||
> ./vvin -t Notepad min -r
|
vvin.Vvin([]string{"-t", "notepad", "min", "-r"})
|
||||||
```
|
```
|
||||||
|
|
||||||
## resize
|
## resize
|
||||||
|
|
||||||
```
|
```
|
||||||
> ./vvin -t notepad resize -x 0 -y 0 -w 60% -h 100%
|
vvin.Vvin([]string{"-t", "notepad", "resize", "-x", "0", "-y", "0", "-w", "60%", "-h", "100%"})
|
||||||
```
|
```
|
||||||
|
|
||||||
## alpha
|
## alpha
|
||||||
|
|
||||||
```
|
```
|
||||||
> ./vvin -t notepad alpha 75%
|
vvin.Vvin([]string{"-t", "notepad", "alpha", "75%"})
|
||||||
```
|
```
|
||||||
|
|
||||||
## always on top
|
## always on top
|
||||||
|
|
||||||
```
|
```
|
||||||
|
vvin.Vvin([]string{"-t", "notepad", "topmost"})
|
||||||
> ./vvin -t notepad topmost
|
> ./vvin -t notepad topmost
|
||||||
|
|
||||||
> ./vvin -t notepad topmost --restore
|
vvin.Vvin([]string{"-t", "notepad", "topmost", "--restore"})
|
||||||
> ./vvin -t notepad topmost -r
|
vvin.Vvin([]string{"-t", "notepad", "topmost", "-r"})
|
||||||
```
|
```
|
||||||
|
|
||||||
## wait
|
## wait
|
||||||
|
@ -53,12 +73,13 @@ Options:
|
||||||
### wait for a window to appear
|
### wait for a window to appear
|
||||||
|
|
||||||
```
|
```
|
||||||
|
vvin.Vvin([]string{"wait", "notepad"})
|
||||||
> ./vvin wait notepad
|
> ./vvin wait notepad
|
||||||
```
|
```
|
||||||
|
|
||||||
### wait closed
|
### wait closed
|
||||||
|
|
||||||
```
|
```
|
||||||
> ./vvin wait notepad --closed
|
vvin.Vvin([]string{"wait", "notepad", "--closed"})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue