aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/rofi/rofi-action.sh
blob: 1e09b75f9cf45eb68397cdb021d9dac7124e0c01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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