Update cheatsheets

This commit is contained in:
ivuorinen
2025-08-30 00:18:45 +00:00
parent d47b8df328
commit 5985fac848
2 changed files with 35 additions and 2 deletions

33
tldr/i3-nagbar Normal file
View 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}}"`

View File

@@ -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: