From 9723cde54bd82958e4e7c97c8d8ae408a4f06c1b Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Fri, 31 May 2019 01:34:46 +0200 Subject: machines/shiki: move the notify-send invocation out --- machines/profpatsch/shiki.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'machines/profpatsch/shiki.nix') diff --git a/machines/profpatsch/shiki.nix b/machines/profpatsch/shiki.nix index 77a97303..6bc08b6a 100644 --- a/machines/profpatsch/shiki.nix +++ b/machines/profpatsch/shiki.nix @@ -209,8 +209,14 @@ in { youtube-dl # download videos zathura # pdf viewer ]; - userScripts = with pkgs.vuizvui.profpatsch; [ + userScripts = with pkgs.vuizvui.profpatsch; + let + di-notify = pkgs.writers.writeBashBin "display-infos-notify" '' + ${pkgs.libnotify}/bin/notify-send "$(${display-infos}/bin/display-infos)" + ''; + in [ display-infos # show time & battery + di-notify # same, but pipe to libnotify show-qr-code # display a QR code backlight # adjust laptop backlight ]; -- cgit 1.4.1