mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 02:39:48 +01:00
sxhkd: stop scope before creating (#2086)
This commit is contained in:
parent
be0e73a308
commit
9b39fd7eb4
2 changed files with 4 additions and 2 deletions
|
@ -73,6 +73,7 @@ in
|
|||
];
|
||||
|
||||
xsession.initExtra = ''
|
||||
systemctl --user stop sxhkd.scope 2> /dev/null || true
|
||||
systemd-cat -t sxhkd systemd-run --user --scope -u sxhkd \
|
||||
${cfg.package}/bin/sxhkd ${toString cfg.extraOptions} &
|
||||
'';
|
||||
|
|
|
@ -2,8 +2,9 @@
|
|||
|
||||
let
|
||||
expectedFileRegex = ''
|
||||
systemd-cat -t sxhkd systemd-run --user --scope -u sxhkd \
|
||||
@sxhkd@/bin/sxhkd -m 1 &
|
||||
systemctl --user stop sxhkd.scope 2> /dev/null || true
|
||||
systemd-cat -t sxhkd systemd-run --user --scope -u sxhkd \
|
||||
@sxhkd@/bin/sxhkd -m 1 &
|
||||
'';
|
||||
in
|
||||
|
||||
|
|
Loading…
Reference in a new issue