mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-07 08:44:22 +02:00
xsettings: do not rely on a primary screen
It is likely that we don't have one.
This commit is contained in:
parent
3c463c3f25
commit
d9008f094d
1 changed files with 2 additions and 2 deletions
|
@ -2,8 +2,8 @@
|
|||
|
||||
# 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 primary.*/\1/p') in
|
||||
zoro,eDP1) dpi=144 ;;
|
||||
case $(hostname),$(xrandr --current | sed -n 's/\([^ ]*\) connected .*/\1/p' | sort | tr '\n' ':') in
|
||||
zoro,eDP1:) dpi=144 ;;
|
||||
*) dpi=96 ;;
|
||||
esac
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue