mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-28 20:40:15 +02:00
xrandr: don't poll hardware when it's not needed
This commit is contained in:
parent
95dd95e4ce
commit
08fa9a63d0
2 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
DISPLAY=${DISPLAY%.0}
|
||||
|
||||
# For information
|
||||
xrandr \
|
||||
xrandr --current \
|
||||
| sed -n 's/^\([^ ]\)* connected.* \([0-9]*\)x.* \([0-9]*\)mm x .*/\1 \2 \3/p' \
|
||||
| while read output pixels mm; do
|
||||
dpi=$(($pixels * 25.4 / $mm))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue