aboutsummaryrefslogtreecommitdiff
path: root/dwm-scale
diff options
context:
space:
mode:
Diffstat (limited to 'dwm-scale')
-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