mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-11-25 00:38:23 -05:00
19 lines
294 B
Bash
Executable File
19 lines
294 B
Bash
Executable File
#!/bin/sh
|
|
|
|
case $1 in
|
|
--bemenu)
|
|
menu="bemenu -i -p buku -l 10"
|
|
;;
|
|
--dmenu)
|
|
menu="dmenu -i -p buku -l 10"
|
|
;;
|
|
--wofi)
|
|
menu="wofi -d -i -p buku"
|
|
;;
|
|
*)
|
|
exit
|
|
;;
|
|
esac
|
|
|
|
buku -p -f 3 | sed 's/\t/ /g' | ${menu} | cut -d ' ' -f 1 | xargs --no-run-if-empty buku -o
|