Browse Source

fix: display scale for framework laptop

master
Tovi Jaeschke-Rogers 2 months ago
parent
commit
79f69b4e99
4 changed files with 44 additions and 1 deletions
  1. +2
    -0
      .config/X11/Xresources
  2. +1
    -1
      .config/alacritty/alacritty.toml
  3. +3
    -0
      .local/bin/scale-external-display.sh
  4. +38
    -0
      .xinitrc

+ 2
- 0
.config/X11/Xresources View File

@ -0,0 +1,2 @@
# For laptop screen scale
Xft.dpi: 144

+ 1
- 1
.config/alacritty/alacritty.toml View File

@ -6,7 +6,7 @@ import = [
TERM = "xterm-256color"
[font]
size = 11
size = 10
[font.bold]
family = "JetBrains Mono Nerd Font"


+ 3
- 0
.local/bin/scale-external-display.sh View File

@ -0,0 +1,3 @@
#!/bin/bash
xrandr --output DP-3-1 --scale 1.5x1.5

+ 38
- 0
.xinitrc View File

@ -0,0 +1,38 @@
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
[[ -f ~/.config/X11/Xresources ]] && xrdb -merge -I$HOME ~/.config/X11/Xresources
~/.local/bin/dwm-autostart &
exec dwm

Loading…
Cancel
Save