Package: autorandr
Version: 1.11-1
Severity: wishlist

Would it be possible to ship a user-level systemd unit for this? For
some reason, the xdg autostart thing doesn't work here, although I
admit I have a somewhat weird session setup (old-school xsession setup
which starts i3 and other things).

I have tried with the following `.service` file, which needs to be
different from the "system" level one.

```
[Unit]
After=graphical-session.target
Description=autorandr execution hook
# Note: StartLimitInterval was renamed to StartLimitIntervalSec in systemd-230.
# See autorandr bug #69. Do not rename for now, as the old name is kept for
# compatibility.
StartLimitInterval=5
StartLimitBurst=1

[Service]
ExecStart=/usr/bin/autorandr --change --default default
Type=oneshot
RemainAfterExit=false

[Install]
WantedBy=graphical-session.target
```

Let me know how that works for you!


-- System Information:
Debian Release: 11.0
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable-debug'), (500, 'stable'), 
(1, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-8-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages autorandr depends on:
ii  python3            3.9.2-3
ii  x11-xserver-utils  7.7+8

autorandr recommends no packages.

autorandr suggests no packages.

-- debconf-show failed

Reply via email to