summaryrefslogtreecommitdiff
path: root/scripts/tablet
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-10-09 17:42:22 +0100
committerdavidovski <david@davidovski.xyz>2023-10-09 17:42:22 +0100
commit02a4a3a4c1e6116158b807674709f26933ac5b10 (patch)
tree84f325f6e8ed2a6ccc618ebb358cea8f1faa95e9 /scripts/tablet
parent051ed527f64b0d7f400f76244b3d63a7ac98bb70 (diff)
Add desktop background
Diffstat (limited to 'scripts/tablet')
-rwxr-xr-xscripts/tablet5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/tablet b/scripts/tablet
index 009395a..7e91a55 100755
--- a/scripts/tablet
+++ b/scripts/tablet
@@ -22,11 +22,12 @@ tablet_ratio = (lambda s: float(s[0]) / float(s[1]))(sys.argv[4].split(":")) if
screens = [
(0, 0, 1920, 1080),
+ (1920, 0, 2560, 1440),
]
#TODO find this with xrandr
-target = screens[0]
+target = screens[1]
#Physical offset of the selected screen
offsetx = target[0]
@@ -34,7 +35,7 @@ offsety = target[1]
#Size of the full screen areas
sh = 1080
-sw = 1920
+sw = 1920 + 2560
#TODO calculate using list of screens
#Aspect ratio of the tablet, to avoid weird scaling problems