This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
### | |
### xclip(-wsl) | |
### | |
### Drop in xclip substitute for interacting with the Windows clipboard from | |
### WSL environment. Attempts to resolve various Windows clipboard interfaces | |
### on $PATH in order of performance, falling back to powershell executables' | |
### Get-Clipboard and Set-Clipboard (with priority to pwsh.exe)— | |
### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Author: Simon Legner <[email protected]> | |
convert () { | |
in="$1" | |
out="${in%.m4a}.ogg" | |
ffmpeg -i "$in" \ | |
-acodec libvorbis -aq 4 -vn -ac 2 \ | |
-map_metadata 0 \ | |
"$out" |