Skip to content

Instantly share code, notes, and snippets.

@cflems
cflems / pathcompressor.py
Created January 9, 2023 17:55
Script for compressing and relativizing SVG paths
def strfloat(f):
return str(round(f, 3))
f = open('path.txt', 'r')
path=f.read().split(' ')
f.close()
i = 0
x, y = 0, 0
while i < len(path):
if path[i] not in ['M', 'L', 'A', 'Q', 'Z']:
@cflems
cflems / unity-chbg.sh
Created December 15, 2023 06:57
Change Unity-Greeter background
#!/bin/sh
xhost +SI:localuser:lightdm
sudo -u lightdm gsettings set com.canonical.unity-greeter draw-grid false
sudo -u lightdm gsettings set com.canonical.unity-greeter draw-user-backgrounds false
sudo -u lightdm gsettings set com.canonical.unity-greeter background $1