2016-06-04 2 views

답변

1

기능 :

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


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

사용법 : 난 내 자신의 질문에 대답

resolution_x=$(get_screen_resolution_x) 
resolution_y=$(get_screen_resolution_y) 
관련 문제