Skip to content

Instantly share code, notes, and snippets.

View cemulate's full-sized avatar

Chase Meadors cemulate

View GitHub Profile
@cemulate
cemulate / #TofiWireplumberSink.md
Last active September 13, 2025 17:31
One-liner to select and set wireplumber's default sink using `tofi` (or `rofi`).

One-liner to change the wireplumber's default sink using tofi (or rofi).

Uses jq to grab the audio sinks' names and ids from pw-dump and filters though your menu application of choice.

The final pipe uses ifne (from moreutils on arch) to only run the final wpctl command if the choice from tofi was non-empty (e.g., not cancelled or aborted). This final line can also be used as a general recipe to run any command with input from tofi on the same condition that the result was non-empty.

@cemulate
cemulate / #LatexToUnicode.md
Last active August 28, 2025 05:09
Global shortcuts for LaTeX to unicode text substitution with `unicodeitplus`

This is a solution to achieve global LaTeX to (approximate) unicode subsitution in any text input on a simple keybind.

This strategy uses unicodeitplus, a tool that replaces LaTeX commands in text with their corresponding unicode characters when supported, replacing text like \alpha + \beta^2 \in R_0 \cup R_1 with α + β² ∈ R₀ ∪ R₁ (and in a more robust manner than unicodeit).

It can be installed with

pipx install unicodeitplus

Or, for my fork with more options