script 1 (1024x768) #!/bin/sh if xrandr | head -n1 | grep -q '1024 x 600'; then xrandr --output LVDS1 --scale 1.0x1.28 gconftool-2 --set /apps/metacity/general/titlebar_font --type string "Sans Bold 10" else xrandr --output LVDS1 --scale 1.0x1.0 gconftool-2 --set /apps/metacity/general/titlebar_font --type string "Sans 8" fi script 2 (1366x800) #!/bin/sh if xrandr | head -n1 | grep -q '1024 x 600'; then xrandr --output LVDS1 --scale 1.33x1.33 gconftool-2 --set /apps/metacity/general/titlebar_font --type string "Sans Bold 10" else xrandr --output LVDS1 --scale 1.0x1.0 gconftool-2 --set /apps/metacity/general/titlebar_font --type string "Sans 8" fi