Skip to content

Commit e7bf9eb

Browse files
sentrizenderprism
andcommitted
docs: add rofi guide
closes #43 Co-authored-by: EnderPrism <76617157+NoEnd-yt@users.noreply.github.com>
1 parent 6c7e279 commit e7bf9eb

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

contrib/cliphist-rofi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
if [ -z "$1" ]; then
4+
cliphist list
5+
else
6+
cliphist decode <<<"$1" | wl-copy
7+
fi

readme.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,38 @@ or else query manually
5252

5353
---
5454

55+
### picker examples
56+
57+
<details>
58+
<summary>dmenu</summary>
59+
60+
`cliphist list | dmenu | cliphist decode | wl-copy`
61+
62+
</details>
63+
64+
<details>
65+
<summary>fzf</summary>
66+
67+
`cliphist list | fzf | cliphist decode | wl-copy`
68+
69+
</details>
70+
71+
<details>
72+
<summary>rofi</summary>
73+
74+
`rofi -modi clipboard:/path/to/cliphist-rofi -show clipboard` with [contrib/cliphist-rofi](https://github.com/sentriz/cliphist/blob/master/contrib/cliphist-rofi)
75+
76+
</details>
77+
78+
<details>
79+
<summary>rofi dmenu mode</summary>
80+
81+
`cliphist list | rofi -dmenu | cliphist decode | wl-copy`
82+
83+
</details>
84+
85+
---
86+
5587
### faq
5688

5789
<details>

0 commit comments

Comments
 (0)