mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-28 04:20:03 +02:00
graphical-session.target is an existing target for the system. While I don't use several X sessions, I prefer to have each service bound to the right display and therefore, I create my own graphical-session@.target for this purpose. Also, I don't like having to use `systemctl --user enable`, so I enable everything directly in graphical-session@.target. Other dependencies are ordered from awesome@.service. This seems good enough.
12 lines
252 B
Desktop File
12 lines
252 B
Desktop File
[Unit]
|
|
Description=Configure monitors on %I
|
|
PartOf=graphical-session@%i.target
|
|
|
|
[Service]
|
|
Environment=DISPLAY=%I
|
|
ExecStart=/usr/bin/autorandr --change --default default
|
|
Type=oneshot
|
|
RemainAfterExit=false
|
|
|
|
[Install]
|
|
WantedBy=graphical-session@%i.target
|