Create own role for yavdr-desktop

This commit is contained in:
Alexander Grothe
2018-02-12 08:48:12 +01:00
parent fa6f49de85
commit 218007ea77
16 changed files with 386 additions and 7439 deletions

View File

@@ -0,0 +1,15 @@
[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]
PassEnvironment=XDG_RUNTIME_DIR DBUS_SESSION_BUS_ADDRESS
EnvironmentFile=%h/.second_display
ExecStart=/usr/bin/openbox --config-file %h/.config/openbox/rc.xml
ExecStartPost=/bin/bash %h/.fehbg
[Install]
WantedBy=yavdr-desktop.target