Skip to content

Instantly share code, notes, and snippets.

View viggo-wellme's full-sized avatar
🇸🇪

Viggo viggo-wellme

🇸🇪
View GitHub Profile
@viggo-wellme
viggo-wellme / screenshot-manager.py
Created March 27, 2023 14:52
A simple script that sorts your screenshots by date
import os
from datetime import datetime
username = os.getlogin()
date = datetime.today().strftime('%Y-%m-%d')
if not os.path.exists(f"/home/{username}/screenshots/{str(date)}"):
os.mkdir(f"/home/{username}/screenshots/{str(date)}")
os.system(f"scrot -s -f /home/{username}/screenshots/{str(date)}/{datetime.now().strftime('%H:%M:%S')}.png")
else: