Compare commits

...

5 commits
master ... wmv

Author SHA1 Message Date
Dylan Araps
f05002f776
Merge pull request #1000 from mstraube/wmv
wm_version: add support for xfwm4
2018-05-20 09:10:29 +00:00
Michael Straube
f2ff5d1d0b wm_version: add support for xfwm4 2018-05-20 10:47:01 +02:00
Dylan Araps
5f09c17b1e
Merge pull request #996 from mstraube/wmv
wm_version: add case for kwin
2018-05-19 21:53:44 +00:00
Michael Straube
ef39bbc078 wm_version: add case for kwin 2018-05-19 14:38:08 +02:00
Dylan Araps
9c9a0cb5e6 general: Add back wm_version. 2018-05-05 08:03:10 +10:00

View file

@ -352,6 +352,16 @@ gtk3="on"
public_ip_host="http://ident.me"
# Window Manager
# Show Window Manager Version.
#
# Default: 'off'
# Values: 'on', off
# Flag: --wm_version
wm_version="off"
# Disk
@ -1583,6 +1593,23 @@ get_wm() {
-e "monsterwm" \
-e "tinywm")"
if [[ "$wm_version" == "on" && "$wm" ]]; then
case "$wm" in
"KWin") wmv="$wm $("${wm,,}_x11" -v || "${wm,,}_wayland" -v)" ;;
*) wmv="$("${wm,,}" --version || "${wm,,}" -v 2>&1)" ;;
esac
wmv="${wmv/$wm ${wm}?/$wm }"
wmv="${wmv/$wm $wm/$wm}"
wmv="${wmv/copyright*}"
wmv="${wmv/version }"
wmv="${wmv/©*}"
wmv="${wmv/(c)*}"
wmv="${wmv/ : }"
wmv="${wmv/This is ${wm,,}/$wm}"
wmv="${wmv/(revision*}"
wm="$wmv"
fi
else
case "$os" in
"Mac OS X")
@ -4667,6 +4694,7 @@ INFO:
NOTE: This only supports Linux.
--wm_version on/off Show/Hide Window Manager version.
--gtk_shorthand on/off Shorten output of gtk theme/icons
--gtk2 on/off Enable/Disable gtk2 theme/font/icons output
--gtk3 on/off Enable/Disable gtk3 theme/font/icons output
@ -4837,6 +4865,7 @@ get_args() {
"--cpu_brand") cpu_brand="$2" ;;
"--gpu_brand") gpu_brand="$2" ;;
"--gpu_type") gpu_type="$2" ;;
"--wm_version") wm_version="$2" ;;
"--refresh_rate") refresh_rate="$2" ;;
"--gtk_shorthand") gtk_shorthand="$2" ;;
"--gtk2") gtk2="$2" ;;