1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 05:29:46 +01:00
home-manager/modules/services/window-managers
John Axel Eriksson 8a160f01ab
sway: fix onChange for sway config when sway isn't running (#1506)
`pgrep -x somecommand` exits with a non-zero status if it finds no
process running with the given name. When using home-manager as a
NixOS module, on boot (when sway isn't running) this script would
fail and then fail the unit since it seems the onChange scripts
are running with the -e switch.

This change ensures we're always returning a 0 exit status where we
attempt to get the pid of sway - we're only interested in either the
pid or an empty string, the exit status isn't important.
2020-09-23 12:10:58 +01:00
..
bspwm Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
i3-sway sway: fix onChange for sway config when sway isn't running (#1506) 2020-09-23 12:10:58 +01:00
awesome.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
xmonad.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00