LinuxCommandLibrary

i3-nagbar

displays a notification bar for the i3 window manager

TLDR

Display a warning message

$ i3-nagbar -t warning -m "[message]"
copy
Display error message
$ i3-nagbar -t error -m "[message]"
copy
Add button with terminal action
$ i3-nagbar -m "[message]" -b "[button text]" "[command]"
copy
Add button with direct action
$ i3-nagbar -m "[message]" -B "[button text]" "[command]"
copy
Show on primary monitor
$ i3-nagbar -p -m "[message]"
copy
Specify font
$ i3-nagbar -f "[pango:monospace 10]" -m "[message]"
copy

SYNOPSIS

i3-nagbar [options]

DESCRIPTION

i3-nagbar displays a notification bar for the i3 window manager. Used by i3 to report configuration errors and for user-defined warnings or confirmations. Supports buttons that execute shell commands either in a terminal or directly.

PARAMETERS

-m message

Message to display.
-t type
Type: warning or error.
-b button action
Button that runs action in terminal.
-B button action
Button that runs action directly.
-f font
Font specification.
-p
Show on primary monitor.
-v
Verbose mode.

SEE ALSO

i3(1), i3-msg(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community