diff options
author | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-07-21 16:54:04 +0200 |
---|---|---|
committer | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-07-21 16:54:04 +0200 |
commit | 5c0454f05e4e13d227feff712932ae2b4c22677d (patch) | |
tree | 83a0a220a687517c49de3c8abd6bbd8e7df325fb | |
parent | b1469f00d0e1ee3473ee1170919cb4d32e14865e (diff) | |
download | nixos-5c0454f05e4e13d227feff712932ae2b4c22677d.tar nixos-5c0454f05e4e13d227feff712932ae2b4c22677d.tar.gz nixos-5c0454f05e4e13d227feff712932ae2b4c22677d.tar.bz2 nixos-5c0454f05e4e13d227feff712932ae2b4c22677d.tar.xz nixos-5c0454f05e4e13d227feff712932ae2b4c22677d.zip |
syntax
-rw-r--r-- | hel.nix | 15 |
1 files changed, 6 insertions, 9 deletions
@@ -254,15 +254,12 @@ | |||
254 | program = "notify-gkleen"; | 254 | program = "notify-gkleen"; |
255 | setgid = true; | 255 | setgid = true; |
256 | setuid = true; | 256 | setuid = true; |
257 | source = pkgs.writeScript { | 257 | source = pkgs.writeScript "notify-gkleen" '' |
258 | name = "notify-gkleen"; | 258 | #!${pkgs.zsh}/bin/zsh |
259 | text = '' | 259 | |
260 | #!${pkgs.zsh}/bin/zsh | 260 | DBUS_ADDRESS=`grep "DBUS_SESSION_BUS_ADDRESS=" /home/gkleen/.dbus/session-bus/${"*"}-0 | cut -d "=" -f 2-` |
261 | 261 | exec env DBUS_SESSION_BUS_ADDRESS=''${DBUS_ADDRESS} ${pkgs.libnotify}/notify-send ''${(qq)@} | |
262 | DBUS_ADDRESS=`grep "DBUS_SESSION_BUS_ADDRESS=" /home/gkleen/.dbus/session-bus/${"*"}-0 | cut -d "=" -f 2-` | 262 | ''; |
263 | exec env DBUS_SESSION_BUS_ADDRESS=''${DBUS_ADDRESS} ${pkgs.libnotify}/notify-send ''${(qq)@} | ||
264 | ''; | ||
265 | }; | ||
266 | } | 263 | } |
267 | ]; | 264 | ]; |
268 | }; | 265 | }; |