From 12c98647543e90644ec03fa34a98e281a19eea5b Mon Sep 17 00:00:00 2001 From: Francois B Date: Thu, 22 Mar 2018 12:48:27 +0100 Subject: [PATCH] screen resolution added to dispSysInfos --- core_functions.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/core_functions.sh b/core_functions.sh index edf13dc..76ff7e1 100644 --- a/core_functions.sh +++ b/core_functions.sh @@ -557,17 +557,22 @@ function usage () { } function dispSysInfos () { + # CPU Architecture printf $BOLDVERT"Architecture : "$NORMAL uname -m + # Current user homedir printf $BOLDVERT"User (userdir) :"$NORMAL" $myHomedir\n" + # Linux Distro Name printf $BOLDVERT"OS : "$NORMAL lsb_release -d | awk -F':' '{print $2}' | awk -F'\t' '{print $2}' + # Kernel version printf $BOLDVERT"Kernel : "$NORMAL uname -r + # Desktop Name printf $BOLDVERT"Desktop : "$NORMAL case $XDG_CURRENT_DESKTOP in "ENLIGHTENMENT") @@ -604,6 +609,12 @@ function dispSysInfos () { ;; esac + # Screen Resolution + printf $BOLDVERT"Screen resolution : "$NORMAL + xdpyinfo | sed -n 's/.*dim.* \([0-9]*x[0-9]*\) .*/\1/pg' | tr '\n' ' ' + printf "\n" + + # Type of Shell printf $BOLDVERT"Shell : "$NORMAL shellType=$(ps -p $PPID -o cmd --no-heading) shellType=${shellType/-}