Add set-display-dpi script
This commit is contained in:
parent
9b881a2ddd
commit
a8d1c29d14
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ $# -eq 0 ]]; then
|
||||
xdpyinfo | grep -B 2 resolution
|
||||
exit 0
|
||||
fi
|
||||
|
||||
NEW_VALUE="$1"
|
||||
|
||||
xrandr --dpi "$NEW_VALUE"
|
||||
echo "Xft.dpi: $NEW_VALUE" | xrdb -merge
|
||||
|
||||
# Restart i3
|
||||
i3-msg restart >/dev/null
|
||||
|
||||
Loading…
Reference in New Issue