Skip to content

Instantly share code, notes, and snippets.

Quick script to translate the lyrics in your flac files using the free DeepL API.

  • Detects the language of the lyrics in every flac file in your music library, and translates it if it doesn't match your target language
  • Keeps track of already processed files in translations_store.json which is stored in the script's directory

Tested on a ~1400 songs library.

Python dependencies

  • requests
  • mutagen

Turn off your monitor in Hyprland when streaming with Sunshine (without an HDMI Dummy Plug)

I often use Sunshine to stream my PC games to my Android phone using Moonlight, but one thing that always bothered me is that I cannot turn my monitor off while streaming or else no video would be sent to Moonlight.

To solve this I would need to:

  1. Use an HDMI Dummy Plug to get a fake monitor
  2. Move video content from the real monitor to the fake monitor
  3. Stream the fake monitor
  4. Turn off the real monitor