mirror of
https://github.com/KittyKatt/screenFetch.git
synced 2026-04-24 03:00:16 -04:00
Fixes to issue #622 regarding LXQt on LUbuntu. Should be detected fine now. Along with some miscellanious LXQt aditions.
This commit is contained in:
@@ -2024,7 +2024,7 @@ detectde () {
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -n "$DE" ]; then
|
||||
if [[ -z "$DE" || "$DE" = "Not Present" ]]; then
|
||||
# fallback to checking $DESKTOP_SESSION
|
||||
case "${DESKTOP_SESSION,,}" in
|
||||
'gnome'*)
|
||||
@@ -2143,6 +2143,11 @@ detectde () {
|
||||
DE="${DE} ${DEver}"
|
||||
fi
|
||||
fi
|
||||
elif [[ ${DE} == "LXQt" ]]; then
|
||||
if type -p lxqt-about >/dev/null 2>&1; then
|
||||
DEver=$(lxqt-about --version | awk '/^liblxqt/ {print $2}')
|
||||
DE="${DE} ${DEver}"
|
||||
fi
|
||||
elif [[ ${DE} == "MATE" ]]; then
|
||||
if type -p mate-session >/dev/null 2>&1; then
|
||||
DEver=$(mate-session --version)
|
||||
@@ -2515,6 +2520,10 @@ detectwmtheme () {
|
||||
elif [[ -f ${XDG_CONFIG_HOME:-${HOME}/.config}/openbox/lxde-rc.xml && $DE == "LXDE" ]]; then
|
||||
Win_theme="$(awk -F"[<,>]" '/<theme/ { getline; print $3 }' "${XDG_CONFIG_HOME:-${HOME}/.config}/openbox/lxde-rc.xml")";
|
||||
fi
|
||||
if [ "${DE}" = "LXQt" ]; then
|
||||
de_theme="$(awk -F'=' '/^theme/ {print $2}' ${HOME}/.config/lxqt/lxqt.conf)"
|
||||
Win_theme="${de_theme} / ${Win_theme}"
|
||||
fi
|
||||
;;
|
||||
'PekWM')
|
||||
if [ -f "$HOME/.pekwm/config" ]; then
|
||||
|
||||
Reference in New Issue
Block a user