aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/rofi/rofi-action.sh
blob: 844e0c976861e57857fdc59c59ab5e88a14606e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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
"@@CASES@@") : ;;
esac