reworked hotkey script

This commit is contained in:
paul-loedige
2020-12-19 15:34:30 +01:00
parent 4fb75731e9
commit 2aaf1b4daa
2 changed files with 8 additions and 4 deletions
+4 -2
View File
@@ -19,11 +19,13 @@ for line in lines[:len(lines)//2]:
if os.path.isfile(hotkey_picture):
os.remove(hotkey_picture)
fontsize = 19
image = Image.new(mode = "RGB", size = (1440,900), color=(43,46,59))
ImageDraw.Draw(image).text((10,10), text1, font=ImageFont.truetype('/usr/share/fonts/ubuntu/UbuntuMono-R.ttf',15), fill='#ffffff')
ImageDraw.Draw(image).text((10,10), text1, font=ImageFont.truetype('/usr/share/fonts/ubuntu/UbuntuMono-R.ttf',fontsize), fill='#ffffff')
image.save(hotkey_picture)
image = Image.open(hotkey_picture)
ImageDraw.Draw(image).text((750,10), text2, font=ImageFont.truetype('/usr/share/fonts/ubuntu/UbuntuMono-R.ttf',15), fill='#ffffff')
ImageDraw.Draw(image).text((750,10), text2, font=ImageFont.truetype('/usr/share/fonts/ubuntu/UbuntuMono-R.ttf',fontsize), fill='#ffffff')
image.save(hotkey_picture)
image.show()