diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/bg.sh | 2 | ||||
-rwxr-xr-x | scripts/tablet | 13 |
2 files changed, 7 insertions, 8 deletions
diff --git a/scripts/bg.sh b/scripts/bg.sh index 72c612c..34a1196 100755 --- a/scripts/bg.sh +++ b/scripts/bg.sh @@ -12,7 +12,7 @@ convert -coalesce $image $dir/%05d.png printf "done\n" amount_of_frames=$(ls -1 "$dir" | wc -l) -frames_per_second=30 +frames_per_second=10 speed=$(echo "scale=3; ($amount_of_frames/$frames_per_second) * (1/$frames_per_second)" | bc -l) while : ; do diff --git a/scripts/tablet b/scripts/tablet index 0965395..8190919 100755 --- a/scripts/tablet +++ b/scripts/tablet @@ -19,23 +19,22 @@ tablet_ratio = (lambda s: float(s[0]) / float(s[1]))(sys.argv[4].split(":")) if #] screens = [ - (0, 0, 1280, 1024), - (1280, 0, 2560, 1440), - (3840, 0, 1920, 1080), - (5760, 0, 1920, 1080), + (0, 0, 1920, 1080), + (0, 1080, 1920, 1080), + (1920, 1080, 2560, 1440), ] #TODO find this with xrandr -target = screens[1] +target = screens[2] #Physical offset of the selected screen offsetx = target[0] offsety = target[1] #Size of the full screen areas -sh = 1920 -sw = 1280 + 2560 + 1080 + 1080 +sh = 1080+ 1440 +sw = 1920 + 2560 #TODO calculate using list of screens #Aspect ratio of the tablet, to avoid weird scaling problems |