m 2 main-laptop: look up once in a while

This commit is contained in:
makefu 2016-12-24 23:43:06 +01:00
parent 5fae8ca63b
commit ae8c48c2c4
No known key found for this signature in database
GPG key ID: 36F7711F3FC0F225

View file

@ -71,5 +71,15 @@ in {
latitude = "48.7";
longitude = "9.1";
};
systemd.services.look-up = {
startAt = "*:30";
serviceConfig = {
ExecStart= pkgs.writeDash "look-up" ''
set -x
eval "export '$(egrep -z DBUS_SESSION_BUS_ADDRESS /proc/$(${pkgs.procps}/bin/pgrep -u ${user} ${window-manager})/environ)'"
${pkgs.libnotify}/bin/notify-send -u critical -t 9999999 'look up once in a while'
'';
User = user;
};
};
}