Skip to content

Instantly share code, notes, and snippets.

View rad4day's full-sized avatar

Tobias Manske rad4day

View GitHub Profile
@wassname
wassname / linux_x380.md
Last active February 5, 2024 17:43
xubuntu on a Thinkpad Yoga x380

This are a collection of fixes and tweaks I used to get Xubuntu 18.04 LTS working on a lenovo thinkpad X380 yoga laptop.

@kdevo
kdevo / i3wm-tricks.md
Last active March 30, 2023 11:13
i3wm: Tricks to assign "problematic" applications to a specific workspace/layout.

i3 Window Manager Tips and Tricks

...to assign applications to a specific workspace/layout.

i3wm makes it easy to assign applications to workspaces and save and restore layouts - which is e.g. useful for auto-starting always needed software. To make these assignments, you need specific window properties so that you can tell i3 to assign [class="Your-app"] → 1 (in this example, Your-app will be assigned to workspace 1).

In many cases this just works. However, there are also many popular programs that do not initially set the correct window class or other properties on startup, which can be frustrating. This cheat sheet aims to show the problems and possible resolutions (or worse: workarounds) for more or less problematic applications.


import requests
import re
import sys
from multiprocessing.dummy import Pool
def robots(host):
r = requests.get(
'https://web.archive.org/cdx/search/cdx\
?url=%s/robots.txt&output=json&fl=timestamp,original&filter=statuscode:200&collapse=digest' % host)