1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 05:29:46 +01:00

sxhkd: stop scope before creating (#2086)

This commit is contained in:
Dmitry Kulikov 2021-06-15 20:27:35 +03:00 committed by GitHub
parent be0e73a308
commit 9b39fd7eb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -73,6 +73,7 @@ in
]; ];
xsession.initExtra = '' xsession.initExtra = ''
systemctl --user stop sxhkd.scope 2> /dev/null || true
systemd-cat -t sxhkd systemd-run --user --scope -u sxhkd \ systemd-cat -t sxhkd systemd-run --user --scope -u sxhkd \
${cfg.package}/bin/sxhkd ${toString cfg.extraOptions} & ${cfg.package}/bin/sxhkd ${toString cfg.extraOptions} &
''; '';

View file

@ -2,6 +2,7 @@
let let
expectedFileRegex = '' expectedFileRegex = ''
systemctl --user stop sxhkd.scope 2> /dev/null || true
systemd-cat -t sxhkd systemd-run --user --scope -u sxhkd \ systemd-cat -t sxhkd systemd-run --user --scope -u sxhkd \
@sxhkd@/bin/sxhkd -m 1 & @sxhkd@/bin/sxhkd -m 1 &
''; '';