diff options
author | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-07-21 16:51:20 +0200 |
---|---|---|
committer | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-07-21 16:51:20 +0200 |
commit | 6b374caa40dd3c5f23022f0ff092cd828e0418a8 (patch) | |
tree | e3e3bb5d38a58691406f895600ad800ae7afe67e /hel.nix | |
parent | e8456f4cda4cf63c2e3564e540d2894492da1516 (diff) | |
download | nixos-6b374caa40dd3c5f23022f0ff092cd828e0418a8.tar nixos-6b374caa40dd3c5f23022f0ff092cd828e0418a8.tar.gz nixos-6b374caa40dd3c5f23022f0ff092cd828e0418a8.tar.bz2 nixos-6b374caa40dd3c5f23022f0ff092cd828e0418a8.tar.xz nixos-6b374caa40dd3c5f23022f0ff092cd828e0418a8.zip |
more lightweight notify-user
Diffstat (limited to 'hel.nix')
-rw-r--r-- | hel.nix | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -254,7 +254,15 @@ | |||
254 | program = "notify-gkleen"; | 254 | program = "notify-gkleen"; |
255 | setgid = true; | 255 | setgid = true; |
256 | setuid = true; | 256 | setuid = true; |
257 | source = pkgs.callPackage ./custom/notify-user.nix { inherit (pkgs.haskellPackages) ghcWithPackages; user = "gkleen"; }; | 257 | source = pkgs.lib.writeTextFile { |
258 | name = "notify-gkleen"; | ||
259 | text = '' | ||
260 | #!${pkgs.zsh}/bin/zsh | ||
261 | |||
262 | DBUS_ADDRESS=`grep "DBUS_SESSION_BUS_ADDRESS=" /home/gkleen/.dbus/session-bus/${"*"}-0 | cut -d "=" -f 2-` | ||
263 | exec env DBUS_SESSION_BUS_ADDRESS='${DBUS_ADDRESS} ${pkgs.libnotify}/notify-send '${(qq)@} | ||
264 | ''; | ||
265 | }; | ||
258 | } | 266 | } |
259 | ]; | 267 | ]; |
260 | }; | 268 | }; |