stockholm/makefu/2configs/gui/look-up.nix

19 lines
503 B
Nix
Raw Normal View History

2022-12-12 19:02:06 +00:00
{pkgs, config, ... }:
let
user = config.krebs.build.user.name;
2022-12-12 19:59:24 +00:00
window-manager = "awesome";
2022-12-12 19:02:06 +00:00
in
{
2022-11-06 08:57:21 +00:00
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;
};
};
}