aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/waybar/executable_mako-history.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config/waybar/executable_mako-history.sh')
-rwxr-xr-xdot_config/waybar/executable_mako-history.sh25
1 files changed, 0 insertions, 25 deletions
diff --git a/dot_config/waybar/executable_mako-history.sh b/dot_config/waybar/executable_mako-history.sh
deleted file mode 100755
index f15ec9c..0000000
--- a/dot_config/waybar/executable_mako-history.sh
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh
-# Fuzzel picker over mako's notification history. Read-only: mako has no
-# API to re-invoke an arbitrary history item, so the selected entry is
-# copied to the clipboard for reference. Use makoctl restore to bring the
-# most recent dismissed notification back to the active list.
-
-set -eu
-
-selection=$(
- makoctl history | awk '
- /^Notification / {
- sub(/^Notification [0-9]+: /, "")
- summary = $0
- next
- }
- /^ App name: / {
- sub(/^ App name: /, "")
- print "[" $0 "] " summary
- }
- ' | fuzzel --dmenu --prompt 'History: '
-)
-
-if [ -n "$selection" ]; then
- printf '%s' "$selection" | wl-copy
-fi