mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
systemd: launch i3 and user programs with systemd
This commit is contained in:
14
.config/systemd/user/i3.service
Normal file
14
.config/systemd/user/i3.service
Normal file
@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=i3 - an improved dynamic, tiling window manager
|
||||
Requires=xorg.target
|
||||
Before=graphical-session.target
|
||||
After=profile.service xprofile.service xorg.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/i3
|
||||
ExecReload=/bin/sh -c 'i3-msg restart; systemctl is-active --user -q picom && systemctl --user restart picom'
|
||||
ExecStop=/bin/systemctl --user stop desktop.target
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical-session.target
|
Reference in New Issue
Block a user