aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Wittamore <philip@wittamore.com>2025-06-28 09:14:13 +0200
committerPhilip Wittamore <philip@wittamore.com>2025-06-28 09:14:13 +0200
commitad12a6266196c62d91e9a786ec88eb695e080364 (patch)
treeb4f8647e106744f1b2da2c6094880a247bd7528e
parent4790f80cfc5bd977b336f4a3e112ae9faeafb6bc (diff)
downloadscripts-master.tar.gz
scripts-master.tar.bz2
scripts-master.zip
-rwxr-xr-xdwm-scale9
1 files changed, 9 insertions, 0 deletions
diff --git a/dwm-scale b/dwm-scale
new file mode 100755
index 0000000..704ac45
--- /dev/null
+++ b/dwm-scale
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+X=$(xrandr --current | grep -c '1600')
+
+if [ "$X" = "0" ]; then
+ xrandr --output LVDS1 --panning 1600x900 --scale 1.171x1.172
+else
+ xrandr --output LVDS1 --panning 1366x768 --scale 1x1
+fi