moved the rofi quick action script to config

This commit is contained in:
Niklas 2020-06-15 16:50:43 +02:00
parent 29b533e96f
commit 763748c252

View File

@ -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