mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-04 12:43:55 +00:00
Update cheatsheets
This commit is contained in:
33
tldr/i3-nagbar
Normal file
33
tldr/i3-nagbar
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# i3-nagbar
|
||||
|
||||
> Display an error/warning in a bar on top of a screen.
|
||||
> More information: <https://manned.org/i3-nagbar>.
|
||||
|
||||
- Display an error:
|
||||
|
||||
`i3-nagbar {{[-m|--message]}} "{{error message}}"`
|
||||
|
||||
- Display a warning:
|
||||
|
||||
`i3-nagbar {{[-t|--type]}} warning {{[-m|--message]}} "{{warning message}}"`
|
||||
|
||||
- Use the specified font:
|
||||
|
||||
`i3-nagbar {{[-f|--font]}} "{{pango:monospace bold 9}}" {{[-m|--message]}} "{{error message}}"`
|
||||
|
||||
- Create a button and run a command in a terminal on click:
|
||||
|
||||
`i3-nagbar {{[-b|--button]}} "{{button text}}" {{command}} {{[-m|--message]}} "{{error message}}"`
|
||||
|
||||
- Create a button and run a command on click:
|
||||
|
||||
`i3-nagbar {{[-B|--button-no-terminal]}} "{{button text}}" {{command}} {{[-m|--message]}} "{{error message}}"`
|
||||
|
||||
- Always open `i3-nagbar` on the primary monitor (default: focused monitor):
|
||||
|
||||
`i3-nagbar {{[-pm|--primary --message]}} "{{error message}}"`
|
||||
@@ -12,9 +12,9 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`pdf-parser {{[-a|--stats]}} {{path/to/file.pdf}}`
|
||||
|
||||
- Display objects of type `/Font` in a PDF file:
|
||||
- Display objects of a specific type (`/Font`, `/URI`, ...) in a PDF file:
|
||||
|
||||
`pdf-parser {{[-t|--type]}} {{/Font}} {{path/to/file.pdf}}`
|
||||
`pdf-parser {{[-t|--type]}} {{/object_type}} {{path/to/file.pdf}}`
|
||||
|
||||
- Search for strings in indirect objects:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user