Skip to content

Instantly share code, notes, and snippets.

View addohm's full-sized avatar
🤬
I may be slow to respond.

Adam addohm

🤬
I may be slow to respond.
View GitHub Profile
@probonopd
probonopd / Wayland.md
Last active May 25, 2024 05:36
Think twice about Wayland. It breaks everything!

Think twice before abandoning Xorg. Wayland breaks everything!

Hence, if you are interested in existing applications to "just work" without the need for adjustments, then you may be better off avoiding Wayland.

Wayland solves no issues I have but breaks almost everything I need. Even the most basic, most simple things (like xkill) - in this case with no obvious replacement. And usually it stays broken, because the Wayland folks mostly seem to care about Automotive, Gnome, maybe KDE - and alienating everyone else (e.g., people using just an X11 window manager or something like GNUstep) in the process.

Wayland proponents make it seem like Wayland is "the successor" of Xorg, when in fact it is not. It is merely an incompatible alternative, and not even one that has (nor wants to have) feature parity (missing features). And unlike X11 (the X Window System), Wayland protocol designers actively avoid the concept of "windows" (making up incompr

@dtmilano
dtmilano / colors
Created November 26, 2019 01:31
Shows terminal colors
#! /bin/bash
n=32
arg=setaf
text='Hello World! This is %s %d'
_help()
{
printf 'usage: %s [--help|-H] [--16] [--256] [-t|--tiny] [--background|-b]\n' "$(basename $0)"
exit 0
@rampfox
rampfox / Chromium-at-startup.md
Last active May 6, 2024 14:27
How to open Chromium in full screen at startup on the Raspberry Pi

First, it seems that ~/.config/lxsession/LXDE-pi/autostart does not exist by default.

  1. copy the autostart
cp /etc/xdg/lxsession/LXDE-pi/autostart ~/.config/lxsession/LXDE-pi/
@addohm
addohm / ImageWorx.py
Last active January 3, 2018 15:36
Image conversion and resize with constraints
import os # , sys, io
import argparse
from pathlib import Path
from PIL import Image
xfp_vmax = 225 # Do not change
xfp_hmax = 384 # Do not change
sfp_vmax = 0
sfp_hmax = 0