Add set-display-dpi script
This commit is contained in:
parent
9b881a2ddd
commit
a8d1c29d14
1 changed files with 15 additions and 0 deletions
15
bin/set-display-dpi
Executable file
15
bin/set-display-dpi
Executable file
|
|
@ -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…
Add table
Add a link
Reference in a new issue