Skip to content

Instantly share code, notes, and snippets.

@shvgn
shvgn / scaling.sh
Created October 14, 2020 20:31
Ubuntu desktop auto-scaling on HiDPI display
#!/usr/bin/env sh
# https://wiki.archlinux.org/index.php/HiDPI#Fractional_Scaling
gsettings set org.gnome.desktop.interface scaling-factor 2
gsettings set org.gnome.desktop.interface text-scaling-factor 1
xrandr --output DP-4 --scale 1.25x1.25
# xrandr --output DP-4 --scale 1.5x1.5
### Keybase proof
I hereby claim:
* I am shvgn on github.
* I am shvgn (https://keybase.io/shvgn) on keybase.
* I have a public key ASDIm2hkA4Sc9ubML7FQgbGox70oSly1Z2mWNUZHrMf1CAo
To claim this, I am signing this object:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
### Keybase proof
I hereby claim:
* I am shvgn on github.
* I am shvgn (https://keybase.io/shvgn) on keybase.
* I have a public key whose fingerprint is BCA6 8178 D533 C88B 0A60 2D18 53E2 6BBD 3729 5994
To claim this, I am signing this object: