This should be installed (or cloned) to ~/.config/mpv/scripts/pavolume/.
- A C compiler available as
ccon$PATH - libpulse-dev[el]
| #!/usr/bin/env python3 | |
| # Copyright (c) 2026 S. Zeid. | |
| # | |
| # Permission to use, copy, modify, and/or distribute this software for any | |
| # purpose with or without fee is hereby granted. | |
| # | |
| # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
| # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
| # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
| #!/usr/bin/env python3 | |
| import argparse | |
| import os | |
| import re | |
| import socket | |
| import sys | |
| import threading | |
| from dataclasses import * |
| #!/usr/bin/env python3 | |
| # vim: set fdm=marker: | |
| # Copyright (c) 2024 S. Zeid. | |
| # | |
| # Permission to use, copy, modify, and/or distribute this software for any | |
| # purpose with or without fee is hereby granted. | |
| # | |
| # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
| # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| -- <https://gist.github.com/7ad39697af06220ccec2868a340fd162> | |
| -- input.conf usage: <key> show-text "${user-data/bitrates}" | |
| -- <key> show-text "${user-data/bitrate/<subkey>}" | |
| -- <key> script-binding bitrate/show [subkey (default: all)] | |
| -- <key> script-binding bitrate/osd-toggle [subkey (default: all)] | |
| -- subkeys: all, va, v, a, s | |
| -- example: k show-text "${user-data/bitrates}" | |
| -- K script-binding bitrate/osd-toggle va | |
| local function update() |
| #!/usr/bin/env python3 | |
| r"""Gets information from Franklin Wireless cellular hotspots. | |
| Also allows rebooting the hotspot (`-r`/`--reboot`). | |
| Example script to store login information (`frk-status.local.py` in the same | |
| directory as this script; `.py` may be omitted): | |
| ```python |
| #!/bin/sh | |
| # NAT6 + masquerading firewall script | |
| # https://github.com/akatrevorjay/openwrt-masq6 | |
| # trevorj <github@trevor.joynson.io> | |
| # | |
| # You can configure in /etc/config/firewall per zone: | |
| # * IPv4 masquerading | |
| # option masq 1 | |
| # * IPv6 masquerading |
| #!/usr/bin/env python3 | |
| # vim: set fdm=marker: | |
| import atexit | |
| import os | |
| import sys | |
| from typing import * | |
| /* ==UserStyle== | |
| @name Facebook Messenger - Make stickers larger | |
| @namespace github.com/openstyles/stylus | |
| @version 1.0.0 | |
| @license 0BSD | |
| @var text u-size "Size" 160px | |
| ==/UserStyle== */ | |
| @-moz-document domain("www.messenger.com") { |
| #!/bin/sh | |
| ADDRESSES=' | |
| eth0=2001:db8::2 eth0=2001:db8:2::1 | |
| eth0=192.0.2.2 eth0=198.51.100.2 eth0=203.0.113.2 eth0=233.252.0.2 | |
| ' | |
| ################################################################################ | |
| set -e |