diff options
author | makefu <github@syntax-fehler.de> | 2016-12-24 23:43:06 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2016-12-24 23:43:06 +0100 |
commit | 44a5a948b562645f251ecc038c08be946b52bc4e (patch) | |
tree | c0e6735a1afe365901c4d9405157819344fcb893 | |
parent | 6d3fe891677d1b5e4fa3377aaa7ef456addeaecf (diff) |
m 2 main-laptop: look up once in a while
-rw-r--r-- | 2configs/main-laptop.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/2configs/main-laptop.nix b/2configs/main-laptop.nix index ef8a3b88f..e1c3d20ff 100644 --- a/2configs/main-laptop.nix +++ b/2configs/main-laptop.nix @@ -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; + }; + }; } |