DE/WM information has been converted to a Golang function

This commit is contained in:
2024-05-15 09:15:15 +03:00
parent a29a8f1dd9
commit 4c72295972
6 changed files with 60 additions and 29 deletions
+2 -3
View File
@@ -11,11 +11,10 @@ if [ ! -z "$GPU_MODEL" ]; then
fi
echo -e "${C3}Memory: ${C4}${MEM_USED} MiB / ${MEM_TOTAL} MiB"
if xhost >& /dev/null ; then
if get_de_wm &> /dev/null; then
echo -e "${C3}DE/WM: ${C4}$(get_de_wm)"
if [ ! -z "$DE_WM" ]; then
echo -e "${C3}DE/WM: ${C4}${DE_WM}"
fi
if command_exists xdpyinfo ; then
echo -e "${C3}Screen Resolution: ${C4}$(get_screen_resolution)"
fi
fi