diff --git a/tldr/i3-nagbar b/tldr/i3-nagbar new file mode 100644 index 00000000..9aeac980 --- /dev/null +++ b/tldr/i3-nagbar @@ -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: . + +- 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}}"` diff --git a/tldr/pdf-parser b/tldr/pdf-parser index e589ca41..f232cd58 100644 --- a/tldr/pdf-parser +++ b/tldr/pdf-parser @@ -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: