xdpyinfo | grep dimensions | perl -pe 's|.*?(\d*x\d*).*|\1|'
1920x1200
最初上記の方法でやったけれど下でも可能
xdpyinfo | grep 'dimensions' | egrep -o '[0-9]+x[0-9]+' | head -1
1920x1200
まだまだ遠回りしている気がする
Go to list of users who liked
More than 5 years have passed since last update.
xdpyinfo | grep dimensions | perl -pe 's|.*?(\d*x\d*).*|\1|'
1920x1200
最初上記の方法でやったけれど下でも可能
xdpyinfo | grep 'dimensions' | egrep -o '[0-9]+x[0-9]+' | head -1
1920x1200
まだまだ遠回りしている気がする
Register as a new user and use Qiita more conveniently
Go to list of users who liked