Add templating for dunstrc (monitor from env)

This commit is contained in:
Tobias Reisinger 2024-04-08 16:01:31 +02:00
parent 1a7332365c
commit eab72a3328
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
3 changed files with 11 additions and 1 deletions

View file

@ -2,7 +2,7 @@
### Display ###
# Which monitor should the notifications be displayed on.
monitor = 0
monitor = {{ env.DUNST_MONITOR }}
# Display notification on focused monitor. Possible modes are:
# mouse: follow mouse pointer

View file

@ -0,0 +1,8 @@
#!/bin/sh
export AUTOSTART_DISPLAY=""
export MONITOR_PRIMARY="primary"
export MONITOR_SECONDARY="secondary"
export DUNST_MONITOR="0"

View file

@ -4,3 +4,5 @@ export AUTOSTART_DISPLAY="Hyprland"
export MONITOR_PRIMARY="DisplayPort-0"
export MONITOR_SECONDARY="HDMI-A-0"
export DUNST_MONITOR="$MONITOR_SECONDARY"