diff options
author | davidovki <david@davidovski.xyz> | 2023-03-01 00:15:29 +0000 |
---|---|---|
committer | davidovki <david@davidovski.xyz> | 2023-03-01 00:15:29 +0000 |
commit | 51292e49bb8092134df6bb1ca586c23bcd2b1ddf (patch) | |
tree | c9187f0b7040560666ad6627728aebffa3da6b25 /scripts/tablet | |
parent | 1e137b842f55e37484cf7df0e1fcf11af7280e61 (diff) |
Add better laptop support
Diffstat (limited to 'scripts/tablet')
-rwxr-xr-x | scripts/tablet | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/scripts/tablet b/scripts/tablet index 8190919..f283635 100755 --- a/scripts/tablet +++ b/scripts/tablet @@ -20,21 +20,19 @@ tablet_ratio = (lambda s: float(s[0]) / float(s[1]))(sys.argv[4].split(":")) if screens = [ (0, 0, 1920, 1080), - (0, 1080, 1920, 1080), - (1920, 1080, 2560, 1440), ] #TODO find this with xrandr -target = screens[2] +target = screens[0] #Physical offset of the selected screen offsetx = target[0] offsety = target[1] #Size of the full screen areas -sh = 1080+ 1440 -sw = 1920 + 2560 +sh = 1080 +sw = 1920 #TODO calculate using list of screens #Aspect ratio of the tablet, to avoid weird scaling problems |