dotfiles/xsession-piston
Irrlicht 8c7f49cd53
[dunst][x11] Specify monitor where notification appear.
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.
2026-10-23 18:26:59 +02:00

9 lines
397 B
Text

export I3_SCREENSHOT_DIR="$HOME/media/picture/screenshot"
export I3_LOCK_BACKGROUND="$HOME/media/picture/background/desktop/lock.png"
export PATH_DOTFILE_DIR="$HOME/repo/dotfiles"
export NOTIFICATION_MONITOR="HDMI-1"
numlockx &
xrandr --output HDMI-1 --pos 0x0 --mode 1920x1080 --rate 60 --rotate right --left-of HDMI-0
xrandr --output HDMI-0 --pos 1080x300 --mode 1920x1080 --rate 60 --primary