Skip to content

Commit 166b283

Browse files
authored
i3-nagbar: add page (#17866)
1 parent 7883cf3 commit 166b283

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

pages/common/i3-nagbar.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# i3-nagbar
2+
3+
> Display an error/warning in a bar on top of a screen.
4+
> More information: <https://manned.org/i3-nagbar>.
5+
6+
- Display an error:
7+
8+
`i3-nagbar {{[-m|--message]}} "{{error message}}"`
9+
10+
- Display a warning:
11+
12+
`i3-nagbar {{[-t|--type]}} warning {{[-m|--message]}} "{{warning message}}"`
13+
14+
- Use the specified font:
15+
16+
`i3-nagbar {{[-f|--font]}} "{{pango:monospace bold 9}}" {{[-m|--message]}} "{{error message}}"`
17+
18+
- Create a button and run a command in a terminal on click:
19+
20+
`i3-nagbar {{[-b|--button]}} "{{button text}}" {{command}} {{[-m|--message]}} "{{error message}}"`
21+
22+
- Create a button and run a command on click:
23+
24+
`i3-nagbar {{[-B|--button-no-terminal]}} "{{button text}}" {{command}} {{[-m|--message]}} "{{error message}}"`
25+
26+
- Always open `i3-nagbar` on the primary monitor (default: focused monitor):
27+
28+
`i3-nagbar {{[-pm|--primary --message]}} "{{error message}}"`

0 commit comments

Comments
 (0)