Skip to content

Instantly share code, notes, and snippets.

View Kodehawa's full-sized avatar
❤️
You cutie

Kodehawa Kodehawa

❤️
You cutie
  • Chile
  • 16:27 (UTC -03:00)
View GitHub Profile
@Kodehawa
Kodehawa / README
Last active September 5, 2024 11:03
Low-latency osu pipewire configuration
This is the lowest I could get audio latency to work on my system (Ryzen 5 5700X, 32GB 3600MHz RAM, RX 6700).
Scavenged as much of the man pages as possible to get a configuration close to what https://blog.thepoon.fr/osuLinuxAudioLatency/ gave.
This has given me no crackling nor lag, but it'll depend on your computer.
Use https://github.com/NelloKudo/osu-winello, export STAGING_AUDIO_DURATION=24000 and STAGING_AUDIO_PERIOD=12000 to start.
Try lower, I've been able to do as low as STAGING_AUDIO_DURATION=3500 and STAGING_AUDIO_PERIOD=7000.
To adjust both STAGING_AUDIO_DURATION and STAGING_AUDIO_DURATION, make sure the PERIOD is a multiply of DURATION
(3500 * 2 = 7000 duration, 4000 * 2 = 8000). This gives the highest chance of it to work.
@Kodehawa
Kodehawa / kafetch.fish
Last active August 12, 2020 22:10
Fish meme (kafetch ported to fish but I made a dictionary in the process)
#!/bin/fish
set -l bold (tput bold)
set -l normal (tput sgr0)
set -g count 0
set -g index 1
# To get the current/used memory usage I ended up implementing dictionaries in fish because I was bored and couldn't come up with a better solution at the time.
# Hint: a friend came up with a better and shorter solution in less time.
# But this was an interesting exercise on implementing something that doesn't exist on an interpreted language, I guess.
function increment_key
@Kodehawa
Kodehawa / fetch
Last active October 6, 2023 19:10
Simple Arch Linux fetch script.
#!/bin/dash
bold=$(tput bold)
normal=$(tput sgr0)
#thanks pfetch guy
while IFS=':k ' read -r key val _; do
case $key in
MemTotal)
mem_used=$((mem_used + val))
mem_full=$val

Keybase proof

I hereby claim:

  • I am Kodehawa on github.
  • I am kodehawa (https://keybase.io/kodehawa) on keybase.
  • I have a public key whose fingerprint is 5B6C C6C0 3B2E 0DBE EECB 82A6 0F2E 11B8 59EE D123

To claim this, I am signing this object: