2016-06-04 3 views

Répondre

1

Fonctions:

function get_screen_resolution_x { 
    xdpyinfo | awk -F '[ x]+' '/dimensions:/{print $3}' 
} 


function get_screen_resolution_y { 
    xdpyinfo | awk -F '[ x]+' '/dimensions:/{print $4}' 
} 

Utilisation:

resolution_x=$(get_screen_resolution_x) 
resolution_y=$(get_screen_resolution_y)