Skip to content

Commit

Permalink
make fifo unique to each display
Browse files Browse the repository at this point in the history
  • Loading branch information
phillbush committed Sep 24, 2020
1 parent 68eefda commit abb2c0b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,11 @@ notifications should be placed 10 pixels to the left and 10 pixels
down (thus creating a 10 pixel gap with the upper right corner).
Each notification stay alive for 15 seconds.

To create a named pipe for XNotify, you can place the following in your `~/.xinitrc`:
To create a named pipe for XNotify, you can place the following in your `~/.xinitrc`.
This will create a named pipe unique to your current X display in your home directory at `~/.cache`.
Then, it will open xnotify in the background, reading from this named pipe.

XNOTIFY_FIFO="$HOME/.cache/xnotify.fifo"
XNOTIFY_FIFO="$HOME/.cache/xnotify$DISPLAY.fifo"
export XNOTIFY_FIFO
rm -f $XNOTIFY_FIFO
mkfifo $XNOTIFY_FIFO
Expand Down
9 changes: 7 additions & 2 deletions xnotify.1
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,15 @@ Each notification stay alive for 15 seconds.
.PP
To create a named pipe for XNotify,
the following lines can be placed on
.BR ~/.xinitrc :
.BR ~/.xinitrc .
This will create a named pipe unique to your current X display in your home directory at
.BR ~/.cache .
Then, it will open
.B xnotify
in the background, reading from this named pipe.
.IP
.EX
XNOTIFY_FIFO="$HOME/.cache/xnotify.fifo"
XNOTIFY_FIFO="$HOME/.cache/xnotify$DISPLAY.fifo"
export XNOTIFY_FIFO
rm \-f $XNOTIFY_FIFO
mkfifo $XNOTIFY_FIFO
Expand Down

0 comments on commit abb2c0b

Please sign in to comment.