mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-26 19:58:35 +02:00
picom itself depends on xsettingsd.service and therefore cannot be reloaded while an action is running on xsettingsd.service (I assume).
15 lines
568 B
Desktop File
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
|