Skip to content

Instantly share code, notes, and snippets.

View Balthazzahr's full-sized avatar

Balthazzar Balthazzahr

  • Joined Nov 19, 2025
View GitHub Profile
#!/usr/bin/env python3
import datetime
import calendar
import json
import re
# -------------------
# Current time
# -------------------
now = datetime.datetime.now()
#!/usr/bin/env python3
# SYS-MON MODULE
# Snapshot: 19
# Version: 1.80
# Status: Stable
import json
import psutil
import subprocess
#!/usr/bin/env python3
import subprocess
import json
import os
import re
# -------------------
# Helper functions
# -------------------
def get(cmd):
#!/usr/bin/env python3
import json
# Colors
icon_color = "#8FCB9B" # pastel green
line_color = "#cdd6f4" # default line color
# Pango markup: line + Spotify logo icon with spaces
text = f"<span foreground='{line_color}'>|</span>\u00A0<span foreground='{icon_color}'></span>\u00A0"
#!/usr/bin/env python3
import requests
import json
import sys
from datetime import datetime, timedelta
import calendar
import re
# ---------------- AUTO-LOCATION VIA IP
def get_location_by_ip():