Skip to content

Instantly share code, notes, and snippets.

@looselyrigorous
looselyrigorous / set_app_vol.py
Last active December 29, 2023 21:49
(Pipewire/Pulseaudio) Set app volume programmatically
#!/usr/bin/env python3
import argparse
import subprocess
import json
import re
def VolumeSpecificationValidator(value: str):
# Only validates absolute value volume specifications,
# as parsing relative values has additional complexity.
@looselyrigorous
looselyrigorous / 99-gdm-use-materia-theme.hook
Last active June 3, 2023 10:12
Pacman hook to replace GDM shell theme with Materia-compact
[Trigger]
Operation = Upgrade
Type = Package
Target = gnome-shell
[Action]
Description = Replace GDM theme with Materia-compact
When = PostTransaction
Exec = /usr/bin/sh -c "cd /usr/share/themes/Materia-compact/gnome-shell && glib-compile-resources --target=/usr/share/gnome-shell/gnome-shell-theme.gresource gnome-shell-theme.gresource.xml"
Depends = materia-gtk-theme
@looselyrigorous
looselyrigorous / pyenv_link_brew.sh
Last active March 30, 2018 17:32
Script to update links to Homebrew installed python for pyenv

Keybase proof

I hereby claim:

  • I am looselyrigorous on github.
  • I am looselyrigorous (https://keybase.io/looselyrigorous) on keybase.
  • I have a public key whose fingerprint is 5E98 CBF2 4498 1991 4A41 5252 E63A 5B38 3165 BD72

To claim this, I am signing this object: