Rename scripts
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
parent
df6b44e541
commit
410d0b33c6
46 changed files with 566 additions and 249 deletions
40
system/.local/bin/games
Executable file
40
system/.local/bin/games
Executable file
|
@ -0,0 +1,40 @@
|
|||
#!/usr/bin/env bash
|
||||
#
|
||||
# SCRIPT NAME:
|
||||
# games
|
||||
#
|
||||
# AUTHOR:
|
||||
# Severin Kaderli <severin.kaderli@gmail.com>
|
||||
#
|
||||
# DESCRIPTION:
|
||||
# Displays a game menu using rofi.
|
||||
#
|
||||
# USAGE:
|
||||
# ./games
|
||||
|
||||
# The rofi prompt
|
||||
PROMPT="Games"
|
||||
|
||||
# Actions for the menu
|
||||
ACTIONS=(
|
||||
"1: Steam"
|
||||
"2: Guild Wars 2"
|
||||
"3: Minecraft"
|
||||
"4: Pegasus"
|
||||
)
|
||||
|
||||
SELECTION=$(printf '%s\n' "${ACTIONS[@]}" | rofi -dmenu -p "${PROMPT}" | cut -d ":" -f1)
|
||||
case "${SELECTION}" in
|
||||
"1")
|
||||
steam
|
||||
;;
|
||||
"2")
|
||||
gw2
|
||||
;;
|
||||
"3")
|
||||
optirun -b primus minecraft-launcher
|
||||
;;
|
||||
"4")
|
||||
optirun -b primus pegasus-fe
|
||||
;;
|
||||
esac
|
Loading…
Add table
Add a link
Reference in a new issue