Using a config made dmenu.

This commit is contained in:
Crony Akatsuki 2022-07-17 11:03:13 +02:00
parent 587f300ac7
commit 321f370263
19 changed files with 63 additions and 28 deletions

View file

@ -2,8 +2,10 @@
# dmenu script to open up my games
source $HOME/.config/dmenu/config
get_category () {
category=$( game-run list | dmenu -p "Choose game category:")
category=$( game-run list | $DMENU -p "Choose game category:")
[ -z "$category" ] && exit 0
}
@ -14,9 +16,9 @@ while [ -z "$game" ]
do
if [ -z "$1" ]; then
game=$(game-run list $category | sed '/-18+/d' | dmenu -p "Choose game to run:")
game=$(game-run list $category | sed '/-18+/d' | $DMENU -p "Choose game to run:")
elif [ "$1" = "-a" ]; then
game=$(game-run list $category | dmenu -p "Choose game to run:")
game=$(game-run list $category | $DMENU -p "Choose game to run:")
else
printf '%s\n' "Option $1 doesn't exit!!"
exit 1