fixing systemd units

This commit is contained in:
Aqeel Akber
2015-01-01 15:57:09 +10:00
parent 4f0b283806
commit 709045cc83
3 changed files with 4 additions and 1 deletions
@@ -3,7 +3,7 @@ Description=[ThinkPad Yoga] Wacom digitizer proximity detection
[Service]
Type=forking
ExecStart=/usr/bin/env bash /opt/thinkpad-yoga-scripts/wacom/thinkpad-yoga-prox.sh
ExecStart=/usr/bin/bash /opt/thinkpad-yoga-scripts/wacom/thinkpad-yoga-prox.sh
KillMode=process
[Install]
+2
View File
@@ -0,0 +1,2 @@
XAUTHORITY="ls -1 /home/*/.Xauthority | head -n 1"
DISPLAY=":`ls -1 /tmp/.X11-unix/ | sed -e s/^X//g | head -n 1`"
+1
View File
@@ -3,6 +3,7 @@ Description=[ThinkPad Yoga] Rotation with accelerometer
[Service]
Type=forking
EnvironmentFile=/etc/conf.d/yoga-rotate.conf
ExecStart=/usr/bin/env python2 /opt/thinkpad-yoga-scripts/rotate/thinkpad-rotate.py
KillMode=process