wm: Added WM version.
This commit is contained in:
parent
f9fe78898f
commit
9d6d62ece5
|
@ -303,6 +303,17 @@ gtk3="on"
|
||||||
public_ip_host="http://ident.me"
|
public_ip_host="http://ident.me"
|
||||||
|
|
||||||
|
|
||||||
|
# Window Manager
|
||||||
|
|
||||||
|
|
||||||
|
# Show Window Manager Version.
|
||||||
|
#
|
||||||
|
# Default: 'off'
|
||||||
|
# Values: 'on', off
|
||||||
|
# Flag: --wm_version
|
||||||
|
wm_version="off"
|
||||||
|
|
||||||
|
|
||||||
# Disk
|
# Disk
|
||||||
|
|
||||||
|
|
||||||
|
|
11
neofetch
11
neofetch
|
@ -793,6 +793,15 @@ get_wm() {
|
||||||
-e "monsterwm" \
|
-e "monsterwm" \
|
||||||
-e "tinywm")"
|
-e "tinywm")"
|
||||||
|
|
||||||
|
if [[ "$wm_version" == "on" ]]; then
|
||||||
|
wmv="$wm $("${wm,,}" --version || "${wm,,}" -v)"
|
||||||
|
wmv="${wmv/$wm $wm/$wm}"
|
||||||
|
wmv="${wmv/copyright*}"
|
||||||
|
wmv="${wmv/version }"
|
||||||
|
wmv="${wmv/©*}"
|
||||||
|
wmv="${wmv/(c)*}"
|
||||||
|
wm="$wmv"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
case "$os" in
|
case "$os" in
|
||||||
"Mac OS X")
|
"Mac OS X")
|
||||||
|
@ -4704,6 +4713,7 @@ INFO:
|
||||||
|
|
||||||
NOTE: This only supports Linux.
|
NOTE: This only supports Linux.
|
||||||
|
|
||||||
|
--wm_version on/off Show/Hide Window Manager version.
|
||||||
--gtk_shorthand on/off Shorten output of gtk theme/icons
|
--gtk_shorthand on/off Shorten output of gtk theme/icons
|
||||||
--gtk2 on/off Enable/Disable gtk2 theme/font/icons output
|
--gtk2 on/off Enable/Disable gtk2 theme/font/icons output
|
||||||
--gtk3 on/off Enable/Disable gtk3 theme/font/icons output
|
--gtk3 on/off Enable/Disable gtk3 theme/font/icons output
|
||||||
|
@ -4874,6 +4884,7 @@ get_args() {
|
||||||
"--cpu_brand") cpu_brand="$2" ;;
|
"--cpu_brand") cpu_brand="$2" ;;
|
||||||
"--gpu_brand") gpu_brand="$2" ;;
|
"--gpu_brand") gpu_brand="$2" ;;
|
||||||
"--gpu_type") gpu_type="$2" ;;
|
"--gpu_type") gpu_type="$2" ;;
|
||||||
|
"--wm_version") wm_version="$2" ;;
|
||||||
"--refresh_rate") refresh_rate="$2" ;;
|
"--refresh_rate") refresh_rate="$2" ;;
|
||||||
"--gtk_shorthand") gtk_shorthand="$2" ;;
|
"--gtk_shorthand") gtk_shorthand="$2" ;;
|
||||||
"--gtk2") gtk2="$2" ;;
|
"--gtk2") gtk2="$2" ;;
|
||||||
|
|
|
@ -81,6 +81,9 @@ Which GPU to display. (all, dedicated, integrated)
|
||||||
.IP
|
.IP
|
||||||
NOTE: This only supports Linux.
|
NOTE: This only supports Linux.
|
||||||
.TP
|
.TP
|
||||||
|
\fB\-\-wm_version\fR on/off
|
||||||
|
Show/Hide Window Manager version.
|
||||||
|
.TP
|
||||||
\fB\-\-gtk_shorthand\fR on/off
|
\fB\-\-gtk_shorthand\fR on/off
|
||||||
Shorten output of gtk theme/icons
|
Shorten output of gtk theme/icons
|
||||||
.TP
|
.TP
|
||||||
|
|
Reference in New Issue