1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 13:39:46 +01:00
home-manager/modules/services/window-managers/i3-sway
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
..
lib sway: set bar defaults to null 2020-08-26 00:05:05 +02:00
i3.nix sway: set bar defaults to null 2020-08-26 00:05:05 +02:00
sway.nix sway: fix onChange for sway config when sway isn't running (#1506) 2020-09-23 12:10:58 +01:00