mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-21 11:24:28 +02:00
xsettingsd: use autorandr current profile
This commit is contained in:
parent
556aa785e8
commit
5ab1f901dd
1 changed files with 4 additions and 7 deletions
|
@ -2,14 +2,11 @@
|
||||||
|
|
||||||
# Don't try to guess DPI. For a laptop, we don't want the same DPI as
|
# Don't try to guess DPI. For a laptop, we don't want the same DPI as
|
||||||
# for an external screen. Just hardcode stuff...
|
# for an external screen. Just hardcode stuff...
|
||||||
case $(hostname),$(xrandr --current | \
|
case $(hostname),$(autorandr --current) in
|
||||||
sed -n 's/\([^ ]*\) connected .*[0-9][0-9]*x[0-9][0-9]*+[0-9][0-9]*+[0-9][0-9]* .*/\1/p' | \
|
zoro,default) dpi=144 ;;
|
||||||
sort | tr '\n' ':') in
|
guybrush,default) dpi=144 ;;
|
||||||
zoro,eDP-1:) dpi=144 ;;
|
|
||||||
guybrush,eDP-1:) dpi=144 ;;
|
|
||||||
neo,HDMI-1:HDMI-2:) dpi=96 ;;
|
|
||||||
neo,*) dpi=192 ;;
|
neo,*) dpi=192 ;;
|
||||||
*) dpi=96 ;;
|
*,*) dpi=96 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Get xsettingsd PID
|
# Get xsettingsd PID
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue