docs + style
This commit is contained in:
parent
841b03b4aa
commit
0a00dede30
2 changed files with 14 additions and 15 deletions
|
@ -4,9 +4,9 @@ A basic clipboard manager for Wayland, with support for persisting copy buffers
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
- a windows manager that uses `wlr-data-control`, like Sway and other wlroots-bases WMs.
|
- a windows manager that uses `wlr-data-control`, like Sway and other wlroots-based WMs.
|
||||||
- wl-clipboard from latest master (NOT v1.0)
|
- wl-clipboard from latest master (NOT v1.0)
|
||||||
- dmenu
|
- dmenu or rofi
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ func dmenu(list []string, max int, tool string) (string, error) {
|
||||||
return "", nil
|
return "", nil
|
||||||
}
|
}
|
||||||
|
|
||||||
var args []string;
|
var args []string
|
||||||
if tool == "dmenu" {
|
if tool == "dmenu" {
|
||||||
args = []string{"dmenu", "-b",
|
args = []string{"dmenu", "-b",
|
||||||
"-fn",
|
"-fn",
|
||||||
|
@ -65,7 +65,6 @@ func dmenu(list []string, max int, tool string) (string, error) {
|
||||||
cmd := exec.Cmd{Path: "/usr/bin/" + tool, Args: args, Stdin: input}
|
cmd := exec.Cmd{Path: "/usr/bin/" + tool, Args: args, Stdin: input}
|
||||||
selected, err := cmd.Output()
|
selected, err := cmd.Output()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("%s", err)
|
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
trimmed := selected[:len(selected)-1] // drop newline
|
trimmed := selected[:len(selected)-1] // drop newline
|
||||||
|
|
Loading…
Reference in a new issue