mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-31 00:05:13 +02:00
systemd: ensure i3 is ready when we start stuff depending on its socket
This commit is contained in:
parent
4fad468738
commit
1bb2603157
4 changed files with 8 additions and 7 deletions
2
config
2
config
|
@ -153,4 +153,4 @@ for_window [instance=$quake] move window to scratchpad
|
|||
bindsym $mod+grave exec ~/.config/i3/bin/quake --name $quake --term $term
|
||||
|
||||
# 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
|
||||
|
|
7
dotfiles/systemd/i3-session.target
Normal file
7
dotfiles/systemd/i3-session.target
Normal 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
|
|
@ -6,9 +6,6 @@ After=picom.service
|
|||
After=xsettingsd.service
|
||||
After=tmux.service
|
||||
After=ssh-agent.service
|
||||
Before=wallpaper.service
|
||||
Before=polybar.service
|
||||
Before=i3-companion.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/i3
|
||||
|
|
|
@ -4,17 +4,14 @@ BindsTo=graphical-session.target
|
|||
Wants=autorandr.service
|
||||
Wants=dunst.socket
|
||||
Wants=i3.service
|
||||
Wants=i3-companion.service
|
||||
Wants=inputplug.service
|
||||
Wants=misc-x.service
|
||||
Wants=picom.service
|
||||
Wants=policykit-agent.service
|
||||
Wants=polybar.service
|
||||
Wants=pulseaudio.service
|
||||
Wants=redshift.service
|
||||
Wants=ssh-agent.service
|
||||
Wants=tmux.service
|
||||
Wants=wallpaper.timer
|
||||
Wants=xiccd.service
|
||||
Wants=xsettingsd.service
|
||||
Wants=xss-lock.service
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue