summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-02-06 12:07:49 +0000
committerdavidovski <david@davidovski.xyz>2023-02-06 12:07:49 +0000
commit8c1786d852784591f55d04c29ec036e53bed2900 (patch)
treece42192d9569cc4d20fc84ccf5c0a264009a5516 /scripts
parent886f6d7aad7bb31fdfd5c807710e3887861c91d9 (diff)
Adjust bg script animation speed
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/bg.sh2
-rwxr-xr-xscripts/tablet13
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