From abef74b9d480dc8368b0a786825d8c8a9c6d92a8 Mon Sep 17 00:00:00 2001 From: Malte Tammena Date: Sat, 2 Dec 2023 17:27:58 +0100 Subject: [PATCH] feat(user/malte): add desktop notification feedback to pueued --- users/malte/home.nix | 34 ++-------------------------------- 1 file changed, 2 insertions(+), 32 deletions(-) diff --git a/users/malte/home.nix b/users/malte/home.nix index aa69bbf..de1e0af 100644 --- a/users/malte/home.nix +++ b/users/malte/home.nix @@ -202,38 +202,8 @@ in { services.pueue = { enable = true; settings = { - client = { - dark_mode = false; - max_status_lines = null; - read_local_logs = true; - restart_in_place = false; - show_confirmation_questions = false; - show_expanded_aliases = false; - status_datetime_format = "%Y-%m-%d\n%H:%M:%S"; - status_time_format = "%H:%M:%S"; - }; - daemon = { - callback = null; - callback_log_lines = 10; - env_vars = {}; - pause_all_on_failure = false; - pause_group_on_failure = false; - shell_command = null; - }; - profiles = {}; - shared = { - alias_file = null; - daemon_cert = null; - daemon_key = null; - host = "127.0.0.1"; - pid_path = null; - port = "6924"; - pueue_directory = null; - runtime_directory = null; - shared_secret_path = null; - unix_socket_path = null; - use_unix_socket = true; - }; + shared = {}; + daemon.callback = "notify-send \"Task {{ id }}\nCommand: {{ command }}\nStatus '{{ result }}'\nTook: $(${pkgs.bc}/bin/bc <<< \"{{end}} - {{start}}\") seconds\""; }; };