Skip to content

Instantly share code, notes, and snippets.

View solarkraft's full-sized avatar
🌟
Have a star!

Paul solarkraft

🌟
Have a star!
View GitHub Profile
#navigator-toolbox {
display: none;
}
@solarkraft
solarkraft / pinafore.desktop
Last active May 5, 2019 21:20
Start Pinafore in the Firefox profile "App" (which has this userChrome.css: https://gist.github.com/solarkraft/a9217b41644479e5233dedae8a5f7d32)
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Name=Pinafore
Icon=pinafore
StartupWMClass=pinafore
Exec=firefox -P App --class pinafore --new-window http://pinafore.social/ --height 800 --width 500
@solarkraft
solarkraft / pinafore.svg
Created May 5, 2019 21:22
A pinafore desktop icon
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// build with env GOOS=linux GOARCH=arm GOARM=5 go build
package main
import (
"fmt"
"os"
"os/exec"
"github.com/godbus/dbus"
)
@solarkraft
solarkraft / evdev-multi-touch-viewer.py
Created September 19, 2020 18:13
evdev touch points viewer
# needs root.
from evdev import InputDevice, categorize, ecodes
# input device (right one is nice to find using sudo evemu-describe)
dev = InputDevice('/dev/input/event14')
print(dev)
# list of x, y tuples
@solarkraft
solarkraft / evdev-touch-viewer-gui.py
Last active September 20, 2020 00:03
evdev touch viewer
import sys
import tkinter
import time
try:
from evdev import InputDevice, categorize, ecodes
except ImportError:
print("This script requires the evdev package (https://pypi.org/project/evdev/). ")
exit()
try:
@solarkraft
solarkraft / index.html
Last active April 28, 2022 23:47
Decoupling Logeq's published web app from its content
<!DOCTYPE html>
<head>
<meta charset="utf-8" />
<link href="static/css/style.css" rel="stylesheet" type="text/css" />
<!-- By far the least important -->
<!-- <link href="static/css/tabler-icons.min.css" rel="stylesheet" type="text/css" /> -->
<link href="custom.css" rel="stylesheet" type="text/css" />
@solarkraft
solarkraft / wayfire.ini
Last active June 12, 2022 13:39
My desktop configuration
# Paul's Wayfire config
# Check out https://github.com/WayfireWM/wayfire/wiki/Configuration for help
### Output configuration
# Layout: Positiom in virtual pixels
# Negative values are mishandled by XWayland and some tools, so stay positive :-)
# 15" 4K laptop display
[output:eDP-1]
// ==UserScript==
// @name Decluttered mailbox.org
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Make io.ox (mailbox.org's webmailer) a bit nicer on the eyes
// @author solarkraft@mailbox.org
// @match https://office.mailbox.org/*
// @match https://webmail.strato.de/appsuite/*
// ==/UserScript==
// ==UserScript==
// @name Tidal declutterer
// @namespace http://tampermonkey.net/
// @version 0.7
// @description Gives the Tidal web app some nice visual tweaks and hides non-personalized recommendations (ads). User configurable.
// @author solarkraft@mailbox.org
// @match https://listen.tidal.com/*
// ==/UserScript==
// The app is made with react and it would be preferable to directly hook into that to