mirror of
https://github.com/Snigdha-OS/snigdhaos-system-config.git
synced 2025-09-07 21:25:14 +02:00
⏳ @eshanized updated the repository 🎉 !!!
This commit is contained in:
@@ -40,3 +40,24 @@ terminal=""
|
|||||||
declare -A terminals=(["alacritty"]="alacritty -e $cmd || LIBGL_ALWAYS_SOFTWARE=1 alacritty -e $cmd" ["konsole"]="konsole -e $cmd" ["kgx"]="kgx -- $cmd" ["gnome-terminal"]="gnome-terminal --wait -- $cmd" ["xfce4-terminal"]="xfce4-terminal --disable-server --command '$cmd'" ["qterminal"]="qterminal -e $cmd" ["lxterminal"]="lxterminal -e $cmd" ["mate-terminal"]="mate-terminal --disable-factory -e $cmd" ["xterm"]="xterm -e $cmd" ["foot"]="foot -T launch-terminal -e $cmd")
|
declare -A terminals=(["alacritty"]="alacritty -e $cmd || LIBGL_ALWAYS_SOFTWARE=1 alacritty -e $cmd" ["konsole"]="konsole -e $cmd" ["kgx"]="kgx -- $cmd" ["gnome-terminal"]="gnome-terminal --wait -- $cmd" ["xfce4-terminal"]="xfce4-terminal --disable-server --command '$cmd'" ["qterminal"]="qterminal -e $cmd" ["lxterminal"]="lxterminal -e $cmd" ["mate-terminal"]="mate-terminal --disable-factory -e $cmd" ["xterm"]="xterm -e $cmd" ["foot"]="foot -T launch-terminal -e $cmd")
|
||||||
declare -a term_order=("alacritty" "konsole" "kgx" "gnome-terminal" "mate-terminal" "xfce4-terminal" "qterminal" "lxterminal" "xterm" "foot")
|
declare -a term_order=("alacritty" "konsole" "kgx" "gnome-terminal" "mate-terminal" "xfce4-terminal" "qterminal" "lxterminal" "xterm" "foot")
|
||||||
|
|
||||||
|
case "$XDG_CURRENT_DESKTOP" in
|
||||||
|
KDE)
|
||||||
|
terminal=konsole
|
||||||
|
;;
|
||||||
|
GNOME)
|
||||||
|
if command -v "kgx" &>/dev/null; then
|
||||||
|
terminal=kgx
|
||||||
|
else
|
||||||
|
terminal=gnome-terminal
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
XFCE)
|
||||||
|
terminal=xfce4-terminal
|
||||||
|
;;
|
||||||
|
LXQt)
|
||||||
|
terminal=qterminal
|
||||||
|
;;
|
||||||
|
MATE)
|
||||||
|
terminal=mate-terminal
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
Reference in New Issue
Block a user