Added support for category's.
This commit is contained in:
parent
8364d66ca5
commit
5b132fa812
17
dmenu-games
17
dmenu-games
@ -2,6 +2,19 @@
|
||||
|
||||
# dmenu script to open up my games
|
||||
|
||||
choice=$(game-run | dmenu -p "Choose game to run:")
|
||||
list=$( game-run --list categories | dmenu -p "Choose game category:")
|
||||
|
||||
game-run "$choice"
|
||||
[ -z "$list" ] && exit 0
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
game=$(game-run --list $list | sed '/-18+/d' | dmenu -p "Choose game to run:")
|
||||
elif [ "$1" = "-a" ]; then
|
||||
game=$(game-run --list $list | dmenu -p "Choose game to run:")
|
||||
else
|
||||
printf '%s\n' "Option $1 doesn't exit!!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
[ -z "$game" ] && exit 0
|
||||
|
||||
game-run "$game"
|
||||
|
Loading…
Reference in New Issue
Block a user