mirror of
https://github.com/aclist/dztui.git
synced 2024-12-29 13:52:03 +01:00
Fixes for Steam Deck
This commit is contained in:
parent
276d856652
commit
fb5d3c8e35
1 changed files with 7 additions and 6 deletions
13
dzgui.sh
13
dzgui.sh
|
@ -369,10 +369,6 @@ set_term(){
|
||||||
source $config_file
|
source $config_file
|
||||||
}
|
}
|
||||||
sel_term(){
|
sel_term(){
|
||||||
if [[ $is_steam_deck -eq 1 ]]; then
|
|
||||||
set_term konsole
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
#only terminals known to support -e flag
|
#only terminals known to support -e flag
|
||||||
for i in "$TERMINAL" urxvt alacritty konsole gnome-terminal terminator xfce4-terminal xterm st tilix; do
|
for i in "$TERMINAL" urxvt alacritty konsole gnome-terminal terminator xfce4-terminal xterm st tilix; do
|
||||||
[[ $(command -v $i) ]] && terms+=($i)
|
[[ $(command -v $i) ]] && terms+=($i)
|
||||||
|
@ -390,7 +386,12 @@ calc_mod_sizes(){
|
||||||
auto_mod_install(){
|
auto_mod_install(){
|
||||||
cmd=$(printf "%q " "$@")
|
cmd=$(printf "%q " "$@")
|
||||||
if [[ -z "$term" ]]; then
|
if [[ -z "$term" ]]; then
|
||||||
sel_term && set_term "$term"
|
if [[ $is_steam_deck -eq 1 ]]; then
|
||||||
|
set_term konsole
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
sel_term && set_term "$term"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
[[ -z "$term" ]] && return 1
|
[[ -z "$term" ]] && return 1
|
||||||
echo "[DZGUI] Kicking off auto mod script"
|
echo "[DZGUI] Kicking off auto mod script"
|
||||||
|
@ -888,7 +889,7 @@ toggle_automods(){
|
||||||
awk -v "var=$flip_state" -v "nr=$nr" 'NR==nr {$0=var}{print}' ${config_path}dztuirc.old > $config_file
|
awk -v "var=$flip_state" -v "nr=$nr" 'NR==nr {$0=var}{print}' ${config_path}dztuirc.old > $config_file
|
||||||
printf "[DZGUI] Toggled auto-mod install to '$auto_install'\n"
|
printf "[DZGUI] Toggled auto-mod install to '$auto_install'\n"
|
||||||
source $config_file
|
source $config_file
|
||||||
[[ $auto_install == "1" ]] && zenity --info --text="$(automods_prompt)"
|
[[ $auto_install == "1" ]] && zenity --info --text="$(automods_prompt)" --width=800
|
||||||
}
|
}
|
||||||
options_menu(){
|
options_menu(){
|
||||||
debug_list=(
|
debug_list=(
|
||||||
|
|
Loading…
Reference in a new issue