summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/gui/look-up.nix
blob: eea84bc481af8ce80c9b61ef6c92d4057068efa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{pkgs, config, ... }:
let
  user = config.krebs.build.user.name;
in
  {
  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;
    };
  };
}