aboutsummaryrefslogtreecommitdiff
path: root/articles/2026/displaying-MATE-on-a-1366x768-screen.html
diff options
context:
space:
mode:
authorPhilip Wittamore <philip@wittamore.com>2026-07-12 11:08:50 +0200
committerPhilip Wittamore <philip@wittamore.com>2026-07-12 11:08:50 +0200
commit420ceb49b53a8fa9d8ba8443e42e50cd7bd7cea9 (patch)
tree3009f0564d75e3f7d1ca38507e7ebb92deaded07 /articles/2026/displaying-MATE-on-a-1366x768-screen.html
update
Diffstat (limited to 'articles/2026/displaying-MATE-on-a-1366x768-screen.html')
-rw-r--r--articles/2026/displaying-MATE-on-a-1366x768-screen.html73
1 files changed, 73 insertions, 0 deletions
diff --git a/articles/2026/displaying-MATE-on-a-1366x768-screen.html b/articles/2026/displaying-MATE-on-a-1366x768-screen.html
new file mode 100644
index 0000000..da49491
--- /dev/null
+++ b/articles/2026/displaying-MATE-on-a-1366x768-screen.html
@@ -0,0 +1,73 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <link rel="stylesheet" href="/style.css" />
+ <link rel="icon" type="image/x-icon" href="/favicon.ico" />
+ <title>displaying MATE on a 1366x768 screen</title>
+ </head>
+ <body>
+ <header>
+ <h1>Bloggings</h1>
+ <a href="/index.php">Back</a>
+ </header>
+ <main>
+ <article>
+ <h2>displaying MATE on a 1366x768 screen</h2>
+ <h3>2026-06-15</h3>
+ <h4>xrandr to the rescue</h4>
+ <p>
+ Unfortunately several Ghostbsd MATE configuration windows are taller
+ than my Thinkpad X220's 768 pixels. I made both the top and bottom
+ panels autohide, but a better solution is to use xrandr:
+ </p>
+ <pre>sudo pkg install xrandr</pre>
+ <p>
+ type xrandr to get the name of your display, in my case LVDS-1 on my
+ Thinkpad X220.
+ </p>
+ <p>To change 16:9 screen resolution, you can type:</p>
+ <pre>
+xrandr --output LVDS-1 --panning 1600x900 --scale 1.171x1.172</pre
+ >
+ <p>or</p>
+ <pre>
+xrandr --output LVDS-1 --panning 1920x1080 --scale 1.406x1.406</pre
+ >
+ <p>To get back to the original resolution type:</p>
+ <pre>xrandr --output LVDS-1 --panning 1366x768 --scale 1x1</pre>
+ <p>
+ Here's a simple bash script that will rotate the screen resolution on
+ each call. I've added a MATE keyboard shortcut (CTRL+RIGHT) to run
+ this script. It is intended for my 1366x768 screen, so it will need
+ adapting for other screens.
+ </p>
+ <pre>
+#!/usr/bin/env bash
+
+RES="$(xdpyinfo | grep dimensions | sed -r 's/^[^0-9]*([0-9]+x[0-9]+).*$/\1/')"
+# xdpy results can vary by 1 or two pixels
+# so take the first two characters
+RES="${RES:0:2}"
+
+case "$RES" in
+ "13")
+ xrandr --output LVDS-1 --panning 1600x900 --scale 1.171x1.172
+ ;;
+ "16")
+ xrandr --output LVDS-1 --panning 1920x1080 --scale 1.406x1.406
+ ;;
+ *)
+ xrandr --output LVDS-1 --panning 1366x768 --scale 1x1
+ ;;
+esac
+ </pre>
+ <p>I doubt you can do that in Wayland.</p>
+ </article>
+ </main>
+ <footer>
+ <p>ยง</p>
+ </footer>
+ </body>
+</html>