yavdr-ansible/roles/yavdr-desktop/templates/systemd/user/openbox-second.service.j2
Alexander Grothe 43ced38313 Special configuration for openbox on second display
do not focus new windows
2018-08-05 13:57:19 +02:00

16 lines
458 B
Django/Jinja

[Unit]
Description=Start openbox on the second DISPLAY if it exists
After=detect-second-display.service
Wants=detect-second-display.service
Before=yavdr-frontend.service
ConditionFileNotEmpty=%h/.second_display
[Service]
EnvironmentFile=%h/.second_display
ExecStart=/usr/bin/openbox --config-file %h/.config/openbox/rc2.xml
ExecStartPost=/usr/bin/xset -dpms s off -display $DISPLAY
ExecStartPost=/bin/bash %h/.fehbg
[Install]
WantedBy=yavdr-desktop.target