$ ./serg.sh -g
+ main -g
+ local FOLLOW
+ local NEWVP
+ local XMAX YMAX
++ get_active_viewport
++ xprop -root -notype _NET_DESKTOP_VIEWPORT
++ awk -F = '{sub(/,/," ");print $2}'
+ local 'OLDVP= 1600 1200'
+ parse_args -g
+ '[' 1 -eq 0 ']'
+ getopts v:ghf opt
+ case ${opt} in
++ gui_selection
++ tr x ' '
++ SCHEMA=org.compiz.core:/org/compiz/profiles/unity/plugins/core/
++ read swidth sdepth
+++ get_screen_geometry
+++ awk '/-geometry/{gsub(/+|x/," ");print $2,$3}'
+++ xwininfo -root
+++ gsettings get org.compiz.core:/org/compiz/profiles/unity/plugins/core/ hsize