mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-16 21:24:21 +02:00
xsettings: fix xsettings script
This commit is contained in:
parent
d793630503
commit
739885fcd1
1 changed files with 3 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Compute DPI of each screens
|
# Compute DPI of each screens
|
||||||
dpi=$(xrandr --current \
|
dpis=$(xrandr --current \
|
||||||
| sed -En 's/^([^ ]+)* connected.* ([0-9]+)x.* ([0-9]+)mm x .*/\1 \2 \3/p' \
|
| sed -En 's/^([^ ]+)* connected.* ([0-9]+)x.* ([0-9]+)mm x .*/\1 \2 \3/p' \
|
||||||
| while read output pixels mm; do
|
| while read output pixels mm; do
|
||||||
|
|
||||||
|
@ -21,7 +21,8 @@ dpi=$(xrandr --current \
|
||||||
|
|
||||||
echo "$output: ${dpi}dpi (corrected to ${corrected}dpi, rounded to ${rounded}dpi)" >&2
|
echo "$output: ${dpi}dpi (corrected to ${corrected}dpi, rounded to ${rounded}dpi)" >&2
|
||||||
echo "$rounded"
|
echo "$rounded"
|
||||||
done)
|
done |
|
||||||
|
tr '\n' ' ')
|
||||||
|
|
||||||
# Use first screen DPI
|
# Use first screen DPI
|
||||||
dpi=${dpis%% *}
|
dpi=${dpis%% *}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue