From d2f18a78f77c8de8f9e5ea52c7b6feb6f6eae5b6 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Thu, 21 Jul 2022 09:03:36 -0300 Subject: [PATCH] Exclude cmds from the histogram --- dmenu_run_history | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dmenu_run_history b/dmenu_run_history index 8d436ca..da19754 100755 --- a/dmenu_run_history +++ b/dmenu_run_history @@ -37,7 +37,9 @@ awk -v histfile=$historyfile ' } { - history[$0]++ + if ($0 != "poweroff" && $0 != "reboot" && $0 != "suspendSystem") { + history[$0]++ + } print }