mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-24 18:58:33 +02:00
xsettings: configure neo for new 4K screens
This commit is contained in:
parent
846cd2f680
commit
1aa03a9044
2 changed files with 7 additions and 5 deletions
|
@ -5,11 +5,13 @@
|
||||||
case $(hostname),$(xrandr --current | \
|
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' | \
|
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
|
sort | tr '\n' ':') in
|
||||||
zoro,eDP1:) dpi=144 ;;
|
zoro,eDP1:) dpi=144 ;;
|
||||||
zoro,eDP-1:) dpi=144 ;;
|
zoro,eDP-1:) dpi=144 ;;
|
||||||
zoro,eDP-1:HDMI-2:) dpi=144 ;;
|
zoro,eDP-1:HDMI-2:) dpi=144 ;;
|
||||||
zoro,eDP-1:DP-1:) dpi=144 ;;
|
zoro,eDP-1:DP-1:) dpi=144 ;;
|
||||||
*) dpi=96 ;;
|
neo,HDMI-1:HDMI-2:) dpi=96 ;;
|
||||||
|
neo,*) dpi=192 ;;
|
||||||
|
*) dpi=96 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Build xsettingsd.local
|
# Build xsettingsd.local
|
||||||
|
|
2
xsession
2
xsession
|
@ -36,7 +36,7 @@ systemctl --user import-environment
|
||||||
|
|
||||||
case "$(hostname)" in
|
case "$(hostname)" in
|
||||||
neo)
|
neo)
|
||||||
xrandr --output HDMI1 --auto --output HDMI2 --auto --right-of HDMI1
|
xrandr --output HDMI-0 --auto --output DP-0 --auto --right-of HDMI-0 --dpi 144
|
||||||
;;
|
;;
|
||||||
zoro)
|
zoro)
|
||||||
xrandr --output eDP1 --auto --dpi 144
|
xrandr --output eDP1 --auto --dpi 144
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue