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
// ==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==
@solarkraft
solarkraft / custom.css
Last active March 2, 2024 12:08
Logseq custom.css for publishing
/*** Publishing: Hide things that aren't very useful for a read-only view */
/** Hide page properties (public pages will always have public: true) */
.content .pre-block { display: none; }
/** Title */
/* Make title non-editable */
#main-container .page-title { pointer-events: none; }
/** Hide useless sidebar stuff */
@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]
@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 / 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
// build with env GOOS=linux GOARCH=arm GOARM=5 go build
package main
import (
"fmt"
"os"
"os/exec"
"github.com/godbus/dbus"
)
@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.
@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
#navigator-toolbox {
display: none;
}
@solarkraft
solarkraft / firefox-chrome-urls.txt
Created May 5, 2019 04:40
A list of chrome:// URLs, retrieved through strings //usr/lib/firefox/libxul.so | grep chrome://
chrome://global/locale/global-strres.properties
chrome://branding/locale/brand.properties
chrome://global/locale/commonDialogs.properties
chrome://global/locale/css.properties
chrome://global/locale/dom/dom.properties
chrome://global/locale/intl.properties
chrome://global/locale/layout/HtmlForm.properties
chrome://global/locale/layout/htmlparser.properties
chrome://global/locale/layout_errors.properties
chrome://global/locale/mathml/mathml.properties