From 08667c1d6cf4e9108a4c034b500e8053c1b869aa Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Sat, 14 May 2022 15:45:42 +0200 Subject: [PATCH] Wait for 'xsetwacom' to find tablet --- .config/systemd/user/wacom.service | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.config/systemd/user/wacom.service b/.config/systemd/user/wacom.service index bfae6dd..5a6522d 100644 --- a/.config/systemd/user/wacom.service +++ b/.config/systemd/user/wacom.service @@ -1,11 +1,15 @@ [Unit] Description=Configure my Wacom tablet -After=graphical-session.target -PartOf=graphical-session.target +After=default.target +PartOf=default.target [Service] Type=oneshot +Environment=XAUTHORITY=/home/h/.Xauthority +Environment=DISPLAY=:0 +ExecStartPre=/bin/sleep 3 ExecStart=/home/h/.bin/set-wacom-draw-area [Install] -WantedBy=graphical-session.target +WantedBy=default.target +WantedBy=sys-devices-pci0000:00-0000:00:08.1-0000:04:00.3-usb1-1\x2d2.device