Skip to content

Instantly share code, notes, and snippets.

View P403n1x87's full-sized avatar
⚒️
Tinkering

Gabriele N. Tornetta P403n1x87

⚒️
Tinkering
View GitHub Profile
@P403n1x87
P403n1x87 / net.py
Created December 25, 2018 00:33
Network Monitor Blighty widget
import socket
from time import sleep
import psutil
from attrdict import AttrDict
from blighty import CanvasGravity, TextAlign
from blighty.legacy import Graph
from blighty.x11 import Canvas, start_event_loop
from requests import get
@P403n1x87
P403n1x87 / fs.py
Created December 25, 2018 00:31
File System Blighty widget
from math import pi as PI
import psutil
from attrdict import AttrDict
from blighty import CanvasGravity, TextAlign
from blighty.legacy import Graph
from blighty.x11 import Canvas, start_event_loop
from fonts import Fonts
@P403n1x87
P403n1x87 / memory.py
Created December 25, 2018 00:26
Memory usage Blighty widget
from math import pi as PI
import psutil
from attrdict import AttrDict
from blighty import CanvasGravity, TextAlign
from blighty.legacy import Graph
from blighty.x11 import Canvas, start_event_loop
from fonts import Fonts
@P403n1x87
P403n1x87 / blighty_spotify
Last active July 30, 2022 11:36
A simple Spotify widget written in Python for Blighty to celebrate the 1k download mark.
#!/usr/bin/env python
"""
This file is part of "blighty" which is released under GPL.
See file LICENCE or go to http://www.gnu.org/licenses/ for full license
details.
blighty is a desktop widget creation and management library for Python 3.
@P403n1x87
P403n1x87 / class.lua
Last active May 3, 2017 22:12
Object Orientation in Lua
--+--------------------------------------------------------------------------+
-- Class Constructor.
--
-- Supports single inheritance. To define a new class use as
--
-- A = class()
--
-- To define a class B that inherits from A, use as
--
-- B = class(A)