moved the rofi quick action script to config
This commit is contained in:
parent
29b533e96f
commit
763748c252
18
.config/rofi/rofi-quick-action.sh
Executable file
18
.config/rofi/rofi-quick-action.sh
Executable 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
|
||||
|
Loading…
Reference in New Issue
Block a user