Using a config made dmenu.
This commit is contained in:
parent
587f300ac7
commit
321f370263
19 changed files with 63 additions and 28 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue