This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import os | |
import re | |
import shlex | |
import shutil | |
import subprocess | |
# pyxdg; https://freedesktop.org/wiki/Software/pyxdg/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Dynamically parses a string into a PATHS array, typically to use with the | |
# builtins `getpath/1`, `setpath/2` and `delpaths/1`. | |
# | |
# This is similar to the native function `path/1` for exact match path | |
# expressions, but takes the path as a string instead of an actual path, which | |
# allows to parse it at runtime. This can be useful for working with paths that | |
# you get from your data, or passing paths from a shell script safely (until a | |
# more powerful `eval` builtin gets implemented, see [jq#384]), | |
# e.g.: | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
Prevent the screen from blanking while a video is playing. | |
This script is a workaround for the GNOME+Wayland issue documented in the | |
[Disabling Screensaver] section of the mpv manual, and depends on | |
gnome-session-inhibit (usually provided by the gnome-session package) to set up | |
the inhibitors. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Ditch W3Schools | |
// @namespace pwa.lu | |
// @description Remove w3schools.com results from Google | |
// @include http://www.google.tld/* | |
// @include https://www.google.tld/* | |
// @version 1.0 | |
// @grant none | |
// ==/UserScript== | |
// |