mirror of
https://github.com/wassname/thinkpad-x380-yoga-scripts.git
synced 2026-09-12 13:00:29 +08:00
fixing systemd units
This commit is contained in:
@@ -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]
|
||||
@@ -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`"
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user