vincentbernat.i3wm-configur.../dotfiles/systemd/xsettingsd.service
Vincent Bernat 747c14a36a xsettingsd: don't block when reloading picom
picom itself depends on xsettingsd.service and therefore cannot be
reloaded while an action is running on xsettingsd.service (I assume).
2023-07-22 10:11:01 +02:00

15 lines
568 B
Desktop File

[Unit]
Description=XSETTINGS daemon
PartOf=graphical-session.target
[Service]
Restart=on-failure
ExecStartPre=%h/.config/i3/bin/xsettingsd-setup
ExecStart=/usr/bin/xsettingsd -c %h/.xsettingsd
ExecReload=%h/.config/i3/bin/xsettingsd-setup
ExecReload=/usr/bin/kill -HUP $MAINPID
# Restart i3 (it uses Xft.dpi)
ExecReload=-%h/.nix-profile/bin/i3-msg restart
# Restart polybar and reload picom (they use an environment variable)
ExecReload=/bin/systemctl --user try-restart polybar.service
ExecReload=/bin/systemctl --user --no-block try-reload-or-restart picom.service