diff --git a/src/cli.rs b/src/cli.rs index 91a0787..fcda7a0 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -135,9 +135,13 @@ pub fn handle_socket_message( .ok_or(CLIError::Parse("Malformed action request."))?; let id = get_window_id(notif_id, manager)?; - let action = action_id - .parse::() - .map_err(|_| CLIError::Parse("Value is not of type usize."))?; + let action = match action_id { + "default" => 0, + _ => { action_id + .parse::() + .map_err(|_| CLIError::Parse("Value is not of type usize."))? + } + }; manager.trigger_action_idx(id, action); } "show" => {