mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-13 11:44:21 +02:00
xsettings: handle connected but unused screens as well
This commit is contained in:
parent
d9008f094d
commit
f5954001cf
1 changed files with 3 additions and 1 deletions
|
@ -2,7 +2,9 @@
|
|||
|
||||
# Don't try to guess DPI. For a laptop, we don't want the same DPI as
|
||||
# for an external screen. Just hardcode stuff...
|
||||
case $(hostname),$(xrandr --current | sed -n 's/\([^ ]*\) connected .*/\1/p' | sort | tr '\n' ':') in
|
||||
case $(hostname),$(xrandr --current | \
|
||||
sed -n 's/\([^ ]*\) connected .*[0-9][0-9]*x[0-9][0-9]*+[0-9][0-9]*+[0-9][0-9]* .*/\1/p' | \
|
||||
sort | tr '\n' ':') in
|
||||
zoro,eDP1:) dpi=144 ;;
|
||||
*) dpi=96 ;;
|
||||
esac
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue