systemd: ensure i3 is ready when we start stuff depending on its socket

This commit is contained in:
Vincent Bernat 2021-07-05 09:08:01 +02:00
parent 4fad468738
commit 1bb2603157
4 changed files with 8 additions and 7 deletions

2
config
View file

@ -153,4 +153,4 @@ for_window [instance=$quake] move window to scratchpad
bindsym $mod+grave exec ~/.config/i3/bin/quake --name $quake --term $term bindsym $mod+grave exec ~/.config/i3/bin/quake --name $quake --term $term
# start stuff # start stuff
exec_always --no-startup-id systemctl --user start --no-block wallpaper.service exec_always --no-startup-id systemctl --user start --no-block i3-session.target

View file

@ -0,0 +1,7 @@
[Unit]
Description=i3 session
BindsTo=graphical-session.target
Wants=wallpaper.service
Wants=wallpaper.timer
Wants=polybar.service
Wants=i3-companion.service

View file

@ -6,9 +6,6 @@ After=picom.service
After=xsettingsd.service After=xsettingsd.service
After=tmux.service After=tmux.service
After=ssh-agent.service After=ssh-agent.service
Before=wallpaper.service
Before=polybar.service
Before=i3-companion.service
[Service] [Service]
ExecStart=/usr/bin/i3 ExecStart=/usr/bin/i3

View file

@ -4,17 +4,14 @@ BindsTo=graphical-session.target
Wants=autorandr.service Wants=autorandr.service
Wants=dunst.socket Wants=dunst.socket
Wants=i3.service Wants=i3.service
Wants=i3-companion.service
Wants=inputplug.service Wants=inputplug.service
Wants=misc-x.service Wants=misc-x.service
Wants=picom.service Wants=picom.service
Wants=policykit-agent.service Wants=policykit-agent.service
Wants=polybar.service
Wants=pulseaudio.service Wants=pulseaudio.service
Wants=redshift.service Wants=redshift.service
Wants=ssh-agent.service Wants=ssh-agent.service
Wants=tmux.service Wants=tmux.service
Wants=wallpaper.timer
Wants=xiccd.service Wants=xiccd.service
Wants=xsettingsd.service Wants=xsettingsd.service
Wants=xss-lock.service Wants=xss-lock.service