mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
final output tweaks
This commit is contained in:
parent
d1c7e4338d
commit
847553c217
7
inxi
7
inxi
|
@ -510,13 +510,11 @@ main()
|
||||||
## Konversation 1.2 apparently does not like the $PPID test in get_start_client
|
## Konversation 1.2 apparently does not like the $PPID test in get_start_client
|
||||||
## So far there is no known way to detect if qt4_konvi is the parent process
|
## So far there is no known way to detect if qt4_konvi is the parent process
|
||||||
## this method will infer qt4_konvi as parent
|
## this method will infer qt4_konvi as parent
|
||||||
|
|
||||||
get_start_client
|
get_start_client
|
||||||
|
|
||||||
# note: this only works if it's run from inside konversation as a script builtin or something
|
# note: this only works if it's run from inside konversation as a script builtin or something
|
||||||
# only do this if inxi has been started as a konversation script, otherwise bypass this
|
# only do this if inxi has been started as a konversation script, otherwise bypass this
|
||||||
# KONVI=3 ## for testing puroses
|
# KONVI=3 ## for testing puroses
|
||||||
##
|
|
||||||
if [[ $KONVI -eq 1 || $KONVI -eq 3 ]];then
|
if [[ $KONVI -eq 1 || $KONVI -eq 3 ]];then
|
||||||
|
|
||||||
if [[ $KONVI -eq 1 ]]; then ## dcop Konversation (ie 1.x < 1.2(qt3))
|
if [[ $KONVI -eq 1 ]]; then ## dcop Konversation (ie 1.x < 1.2(qt3))
|
||||||
|
@ -844,18 +842,23 @@ select_default_color_scheme()
|
||||||
local config_file="$HOME/.$SCRIPT_NAME/$SCRIPT_NAME.conf"
|
local config_file="$HOME/.$SCRIPT_NAME/$SCRIPT_NAME.conf"
|
||||||
local irc_clear="[0m"
|
local irc_clear="[0m"
|
||||||
|
|
||||||
|
# don't want these printing in irc since they show literally
|
||||||
if [[ $B_RUNNING_IN_SHELL != 'true' ]];then
|
if [[ $B_RUNNING_IN_SHELL != 'true' ]];then
|
||||||
irc_clear=''
|
irc_clear=''
|
||||||
fi
|
fi
|
||||||
# first make output neutral so it's just plain default for console client
|
# first make output neutral so it's just plain default for console client
|
||||||
set_color_scheme "0"
|
set_color_scheme "0"
|
||||||
|
if [[ $B_RUNNING_IN_SHELL == 'true' ]];then
|
||||||
print_screen_output "Welcome to $SCRIPT_NAME! Please select the default $COLOR_SELECTION color scheme."
|
print_screen_output "Welcome to $SCRIPT_NAME! Please select the default $COLOR_SELECTION color scheme."
|
||||||
# print_screen_output "You will see this message only one time per user account, unless you set preferences in: /etc/$SCRIPT_NAME.conf"
|
# print_screen_output "You will see this message only one time per user account, unless you set preferences in: /etc/$SCRIPT_NAME.conf"
|
||||||
print_screen_output " "
|
print_screen_output " "
|
||||||
|
fi
|
||||||
print_screen_output "Because there is no way to know your $COLOR_SELECTION foreground/background colors, you can"
|
print_screen_output "Because there is no way to know your $COLOR_SELECTION foreground/background colors, you can"
|
||||||
print_screen_output "set your color preferences from color scheme option list below. 0 is no colors, 1 neutral."
|
print_screen_output "set your color preferences from color scheme option list below. 0 is no colors, 1 neutral."
|
||||||
print_screen_output "After these, there are 3 sets: 1-dark or light backgrounds; 2-light backgrounds; 3-dark backgrounds."
|
print_screen_output "After these, there are 3 sets: 1-dark or light backgrounds; 2-light backgrounds; 3-dark backgrounds."
|
||||||
|
if [[ $B_RUNNING_IN_SHELL == 'true' ]];then
|
||||||
print_screen_output "Please note that this will set the $COLOR_SELECTION preferences only for user: $(whoami)"
|
print_screen_output "Please note that this will set the $COLOR_SELECTION preferences only for user: $(whoami)"
|
||||||
|
fi
|
||||||
print_screen_output "------------------------------------------------------------------------------"
|
print_screen_output "------------------------------------------------------------------------------"
|
||||||
for (( i=0; i < ${#A_COLOR_SCHEMES[@]}; i++ ))
|
for (( i=0; i < ${#A_COLOR_SCHEMES[@]}; i++ ))
|
||||||
do
|
do
|
||||||
|
|
Loading…
Reference in a new issue