diff --git a/.config/rofi/rofi-quick-action.sh b/.config/rofi/rofi-quick-action.sh new file mode 100755 index 0000000..0dcf2d4 --- /dev/null +++ b/.config/rofi/rofi-quick-action.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env sh + +set -e + +WORKINGDIR="$HOME/.config/rofi/" +MAP="$WORKINGDIR/cmd.csv" + +cat "$MAP" \ + | cut -d ',' -f 1 \ + | rofi -dmenu -i -p "Quick " \ + | head -n 1 \ + | xargs -i --no-run-if-empty grep "{}" "$MAP" \ + | cut -d ',' -f 2 \ + | head -n 1 \ + | xargs -i --no-run-if-empty /bin/bash -c "{}" + +exit 0 +