Skip to content

Instantly share code, notes, and snippets.

@progandy
progandy / README.md
Last active April 22, 2024 15:26
minimal i3-input replacement built with bemenu

Requires libbemenu

Build with

gcc -o bm-input -lbemenu bm-input.c

Command

 $./bm-input -h                                 :(

./bm-input: invalid option -- 'h'

@progandy
progandy / PKGBUILD
Last active March 6, 2024 17:51
Minimal MPRIS2 support for mpv
# PKGBUILD for lua52-lgi
# Maintainer: NONE
# lua-lgi Maintainer: speps <speps at aur dot archlinux dot org>
# lua-lgi Maintainer: Sébastien Luttringer
_pkgbase=lgi
pkgname=lua52-lgi
pkgver=0.9.1
pkgrel=1
pkgdesc='Lua 5.2 bindings for gnome/gobject using gobject-introspection library'
#!/usr/bin/env python
"""
capo-browser
Copyright (C) 2024 ProgAndy
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
@progandy
progandy / README.md
Last active September 26, 2023 08:27
Sway output mirror and screencast

Sway output mirror and screencast

Mirror

wf-recorder

With wf-recorder it is possible to record one output. When ffmpeg is compiled with sdl support, then it is possible to use "sdl" as the muxer and replay the recorded video instead of writing it to a file.

@progandy
progandy / usermedia-webkit.py
Created August 25, 2023 19:03
getUserMedia in WebKitGTK2
#!/usr/bin/env python
import gi
gi.require_version('Gtk', '3.0')
gi.require_version('WebKit2', '4.0')
from gi.repository import Gtk, WebKit2
class WebKitWindow(Gtk.Window):
def __init__(self):
Gtk.Window.__init__(self, title="WebKitGTK2 Video Example")
@progandy
progandy / PKGBUILD
Created August 10, 2018 12:29
Language Pack for Thunderbird Lightning
# modify for your language as available at https://hg.mozilla.org/l10n-central/
_lang=de
_langname=German
_tbmin=60.0
_tbmax=70.0
pkgname="thunderbird-cal-i18n-$_lang"
pkgdesc="$_langname language files for Thunderbird Calendar"
pkgver=20180805092655+60.0+70.0
pkgrel=1
@progandy
progandy / eduroam-iwd.py
Created June 12, 2022 22:06
Generate iwd configuration with the eduroam configuration tool
import argparse
import sys
DEBUG_ON=False
def debug(msg):
"""Print debugging messages to stdout"""
if not DEBUG_ON:
return
print("DEBUG:" + str(msg))
class Settings(object):
@progandy
progandy / display-optdepends-pre.hook
Last active July 27, 2017 18:33
pacman hook to list new optional dependencies after an upgrade
[Trigger]
Operation = Install
Operation = Upgrade
Type = Package
Target = *
[Action]
Description = Preparing to detect new optional dependencies...
Depends = pyalpm
When = PreTransaction