6 Commits
v1.4 ... v1.4.1

Author SHA1 Message Date
5107076b2f Fallback logo 2021-01-17 16:17:51 -05:00
3cf15be6de Update README.md 2021-01-17 16:10:52 -05:00
7e30f706fc Update README.md 2021-01-17 16:05:10 -05:00
bc39507e48 Use an installed logo if available 2021-01-17 15:58:14 -05:00
9d8e17bd2a Add lug logo 2021-01-17 09:25:52 -05:00
fe2b9f56c0 Use the lug logo for zenity's taskbar icon 2021-01-17 09:25:18 -05:00
3 changed files with 23 additions and 4 deletions

View File

@ -41,3 +41,12 @@ Zenity menus are used for a GUI experience with a fallback to terminal-based men
`Switch the helper between LIVE and PTU` `Switch the helper between LIVE and PTU`
- Toggle between targeting LIVE or PTU for all of the above options. Defaults to LIVE on each run. - Toggle between targeting LIVE or PTU for all of the above options. Defaults to LIVE on each run.
## Installation:
From Source:
1. Download it!
2. Run it!
3. If you want, move *lug-logo.png* to */usr/share/pixmaps/*
Arch Linux: https://aur.archlinux.org/packages/lug-helper/

View File

@ -105,6 +105,16 @@ max_runners=20
# used to dynamically determine the height of menus # used to dynamically determine the height of menus
menu_option_height="25" menu_option_height="25"
# Use logo installed by a packaged version of this script if available
# Otherwise, default to the logo in the same directory
if [ -f "/usr/share/pixmaps/lug-logo.png" ]; then
lug_logo="/usr/share/pixmaps/lug-logo.png"
elif [ -f "lug-logo.png" ]; then
lug_logo="lug-logo.png"
else
lug_logo="info"
fi
############################################################################ ############################################################################
############################################################################ ############################################################################
@ -157,17 +167,17 @@ message() {
"info") "info")
# info message # info message
# call format: message info "text to display" # call format: message info "text to display"
margs=("--info" "--no-wrap" "--text=") margs=("--info" "--window-icon=$lug_logo" "--no-wrap" "--text=")
;; ;;
"warning") "warning")
# warning message # warning message
# call format: message warning "text to display" # call format: message warning "text to display"
margs=("--warning" "--text=") margs=("--warning" "--window-icon=$lug_logo" "--text=")
;; ;;
"question") "question")
# question # question
# call format: if message question "question to ask?"; then... # call format: if message question "question to ask?"; then...
margs=("--question" "--text=") margs=("--question" "--window-icon=$lug_logo" "--text=")
;; ;;
*) *)
debug_print exit "Script Error: Invalid message type passed to the message function. Aborting." debug_print exit "Script Error: Invalid message type passed to the message function. Aborting."
@ -277,7 +287,7 @@ menu() {
done done
# Display the zenity radio button menu # Display the zenity radio button menu
choice="$(zenity --list --radiolist --width="400" --height="$menu_height" --text="$menu_text_zenity" --title="Star Citizen LUG Helper" --hide-header --column="" --column="Option" "${zen_options[@]}" 2>/dev/null)" choice="$(zenity --list --radiolist --width="400" --height="$menu_height" --text="$menu_text_zenity" --title="Star Citizen LUG Helper" --hide-header --window-icon=$lug_logo --column="" --column="Option" "${zen_options[@]}" 2>/dev/null)"
# Loop through the options array to match the chosen option # Loop through the options array to match the chosen option
matched="false" matched="false"

BIN
lug-logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB