diff options
-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 | }; |