diff options
Diffstat (limited to 'modules/desktop/rofi/rofi-action.sh')
| -rw-r--r-- | modules/desktop/rofi/rofi-action.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/desktop/rofi/rofi-action.sh b/modules/desktop/rofi/rofi-action.sh new file mode 100644 index 0000000..1e09b75 --- /dev/null +++ b/modules/desktop/rofi/rofi-action.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +# Fire-and-forget action menu driven by rofi's dmenu mode. +# The entries and the commands they run are generated at build time +# from `config.desktop.rofi.action.actions`. + +options="@@OPTIONS@@" + +chosen=$(echo -e "$options" | rofi -dmenu -i -p "Action:") + +case "$chosen" in +# replacing "@@CASES@@") : ;; instead of @@CASES@@ for linter/formatter +"@@CASES@@") : ;; +esac |
