menu.sh
#!/bin/bash option_one() { echo "You selected Falkon web browser" exec falkon } option_two() { echo "You selected My Computer" exec thunar } option_three() { echo "You selected Text Editor" exec geany } option_4() { echo "You selected terminal" exec terminator } option_5() { echo "You selected Office" exec libreoffice } while true; do echo "-----------------------------------" echo "Welcome to Windblow$, Please choose an option:" echo "1) Internet" echo "2) My computer" echo "3) Notepad" echo "4) CMD prompt" echo "5) MS Office" echo "6) Exit" echo "-----------------------------------" read -p "Enter your choice [1-5]: " choice case $choice in 1) option_one ;; 2) option_two ;; 3) option_three ;; 4) option_4 ;; 5) option_5 ;; 6) echo "Exiting..." break ;; *) echo "Invalid option. Please try again." ;; esac done
#Evo kako da startujete skripticu=
chmod +x menu.sh
sh menu.sh
#Podrazumeva se da ste prethodno instalirali sve aplikacije koje se pominju u meniju
#na Alpine Linuxu instalacija ide ovako=
apk update
apk add falkon thunar geany terminator libreoffice
#Dodavanje u JWM menu=
xterm -e sh /home/joe/menu.sh
No comments:
Post a Comment
Коментар: