changes for local
This commit is contained in:
parent
abe678c908
commit
20d8929247
@ -73,8 +73,7 @@ set_several_variables () {
|
|||||||
key=${1//=*/}
|
key=${1//=*/}
|
||||||
value=${1//*=/}
|
value=${1//*=/}
|
||||||
keys_all+="$key "
|
keys_all+="$key "
|
||||||
export "$key"="$value"
|
export "$key"="$value" ; shift
|
||||||
shift
|
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -720,17 +719,14 @@ var_ld_library_path_update () {
|
|||||||
# GUI NOTIFY SEND
|
# GUI NOTIFY SEND
|
||||||
pw_notify_send () {
|
pw_notify_send () {
|
||||||
if command -v gdbus &>/dev/null ; then
|
if command -v gdbus &>/dev/null ; then
|
||||||
local app="PortProton"
|
local icon title body app timeout OPTIND
|
||||||
local icon=""
|
app="PortProton"
|
||||||
local timeout="5000"
|
timeout="5000"
|
||||||
local title=""
|
OPTIND="1"
|
||||||
local body=""
|
|
||||||
|
|
||||||
local OPTIND="1"
|
|
||||||
while getopts a:i:t: opt ; do
|
while getopts a:i:t: opt ; do
|
||||||
case "$opt" in
|
case "$opt" in
|
||||||
a)
|
a)
|
||||||
local app=$OPTARG
|
app=$OPTARG
|
||||||
;;
|
;;
|
||||||
i)
|
i)
|
||||||
case "$OPTARG" in
|
case "$OPTARG" in
|
||||||
@ -738,10 +734,10 @@ pw_notify_send () {
|
|||||||
warning) local OPTARG="${PORT_WINE_PATH}/data/img/gui/notify_warning.svg";;
|
warning) local OPTARG="${PORT_WINE_PATH}/data/img/gui/notify_warning.svg";;
|
||||||
error) local OPTARG="${PORT_WINE_PATH}/data/img/gui/notify_error.svg";;
|
error) local OPTARG="${PORT_WINE_PATH}/data/img/gui/notify_error.svg";;
|
||||||
esac
|
esac
|
||||||
local icon=$OPTARG
|
icon=$OPTARG
|
||||||
;;
|
;;
|
||||||
t)
|
t)
|
||||||
local timeout=$OPTARG
|
timeout=$OPTARG
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "usage: $0
|
echo "usage: $0
|
||||||
@ -754,10 +750,8 @@ pw_notify_send () {
|
|||||||
done
|
done
|
||||||
shift $(( OPTIND - 1 ))
|
shift $(( OPTIND - 1 ))
|
||||||
[[ "$1" == "--" ]] && shift
|
[[ "$1" == "--" ]] && shift
|
||||||
|
title="$1" ; shift
|
||||||
local title="$1"
|
body="$*"
|
||||||
shift
|
|
||||||
local body="$*"
|
|
||||||
|
|
||||||
gdbus call --session --dest org.freedesktop.Notifications \
|
gdbus call --session --dest org.freedesktop.Notifications \
|
||||||
--object-path /org/freedesktop/Notifications \
|
--object-path /org/freedesktop/Notifications \
|
||||||
@ -1438,7 +1432,7 @@ recommend_dpi () {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
local dpi=$(( height / 11 ))
|
local dpi=$(( height / 11 ))
|
||||||
(( dpi < 96 )) && local dpi="96"
|
(( dpi < 96 )) && dpi="96"
|
||||||
echo "$dpi"
|
echo "$dpi"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5332,7 +5326,7 @@ gui_mangohud () {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${GUI_MH_RESULT}" =~ "fps_only" ]] ; then
|
if [[ "${GUI_MH_RESULT}" =~ "fps_only" ]] ; then
|
||||||
local GUI_MH_RESULT="fps_only"
|
GUI_MH_RESULT="fps_only"
|
||||||
print_info "In the MangoHud config fps_only is detected all settings are reseted"
|
print_info "In the MangoHud config fps_only is detected all settings are reseted"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user