Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
システム: Linux Mint 18 / 19 Cinnamon 64 ビット。
シェル: dash( POSIX ).
dash
POSIX シェル スクリプトで画面解像度を動的に考慮する必要があります。
私は再利用のための機能を好みます。
get_screen_resolution() { xdpyinfo | awk '/dimensions:/ { print $2 }' }
resolution=$(get_screen_resolution)