On Piston, wi only want notifications to appear on a specific monitor and not follow the mouse. The monitor need to be specified in the configuration. Dunst doesn't support the use of environment variable in configuration file. So, the dunst configuration is genrated on startup using `envsubst` command. Two new environment variables are needed: - PATH_DOTFILE_DIR: the base directory of the repository where there's the Dunst configuration file (this very repository). - NOTIFICATION_MONITOR: the name or number of the monitor where notifications should appear as specified by Dunst configuration documentation.
26 lines
502 B
Text
26 lines
502 B
Text
[global]
|
|
origin = top-left
|
|
monitor = $NOTIFICATION_MONITOR
|
|
# Show notification on the monitor the mouse is on
|
|
follow = none
|
|
|
|
### Geometry ###
|
|
width = 500
|
|
|
|
### Progress bar ###
|
|
|
|
progress_bar = true
|
|
|
|
|
|
### Text ###
|
|
font = IBM Plex Mono 12
|
|
|
|
format = "<b>%I %a</b>\n<b>%s</b>\n%b"
|
|
alignment = left
|
|
vertical_alignment = center
|
|
ellipsize = middl
|
|
|
|
ignore_newline = no
|
|
|
|
# Display indicators for URLs (U) and actions (A).
|
|
show_indicators = yes
|