i3-nagbar: add possibility to open bar on focused monitor

Closes #3692

i3-nagbar will open by default on the monitor with input focus and using the flag -p on the primary monitor.
This commit is contained in:
ekarpp
2020-11-02 22:16:48 +02:00
committed by Orestis Floros
parent 37ebd2a179
commit b6690045ed
3 changed files with 73 additions and 14 deletions

View File

@ -9,7 +9,7 @@ i3-nagbar - displays an error bar on top of your screen
== SYNOPSIS
i3-nagbar [-m <message>] [-b <button> <action>] [-B <button> <action>] [-t warning|error] [-f <font>] [-v]
i3-nagbar [-m <message>] [-b <button> <action>] [-B <button> <action>] [-t warning|error] [-f <font>] [-v] [-p]
== OPTIONS
@ -39,6 +39,10 @@ i3-sensible-terminal.
Same as above, but will execute the shell commands directly, without launching a
terminal emulator.
*-p, --primary*::
Always opens the i3-nagbar on the primary monitor. By default it opens on the
focused monitor.
== DESCRIPTION
i3-nagbar is used by i3 to tell you about errors in your configuration file