Use symbolic link instead of copy

This commit is contained in:
Mikhail Klementev 2018-07-12 17:43:20 +00:00
parent bce29f3995
commit b124788960

View file

@ -36,7 +36,7 @@ main = xmonad defaultConfig
description = "Create and xmonad configuration"; description = "Create and xmonad configuration";
serviceConfig = { serviceConfig = {
ConditionFileNotEmpty = "!/home/user/.xmonad/xmonad.hs"; ConditionFileNotEmpty = "!/home/user/.xmonad/xmonad.hs";
ExecStart = "/bin/sh -c 'mkdir -p /home/user/.xmonad && cp /etc/xmonad.hs /home/user/.xmonad/xmonad.hs'"; ExecStart = "/bin/sh -c 'mkdir -p /home/user/.xmonad && ln -s /etc/xmonad.hs /home/user/.xmonad/xmonad.hs'";
RemainAfterExit = "yes"; RemainAfterExit = "yes";
Type = "oneshot"; Type = "oneshot";
User = "user"; User = "user";