diff options
author | Profpatsch <mail@profpatsch.de> | 2019-05-31 01:34:46 +0200 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2019-05-31 01:34:46 +0200 |
commit | 9723cde54bd82958e4e7c97c8d8ae408a4f06c1b (patch) | |
tree | 9dc52ddb79504a2321348d32c7fa9ef318d93d17 /machines/profpatsch | |
parent | 6733e3d31626232ab86dccae25adc5fb9bdd3f98 (diff) |
machines/shiki: move the notify-send invocation out
Diffstat (limited to 'machines/profpatsch')
-rw-r--r-- | machines/profpatsch/shiki.nix | 8 |
1 files changed, 7 insertions, 1 deletions
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 ]; |