Skip to content

Instantly share code, notes, and snippets.

View GrigoriyPeters's full-sized avatar

Grigoriy Peters GrigoriyPeters

View GitHub Profile
@GrigoriyPeters
GrigoriyPeters / gist:5f2e08ad534f788b677c5fb671ac8ebd
Last active December 2, 2023 14:51
Alvr linux sound forwarding with pipewire

This is a workaround for a system with pipewire as the primary audio server, which has been tested on Archlinux and Pico 4 as a headset. What it does:

  1. Creates a virtual sink named MySink, that you can choose as the default in your GUI
  2. Checks in a loop every second to see if alsa_capture.vrserver headset speakers are available
  3. Disconnects everything from this server (alsa_capture.vrserver). I don't know why, but a microphone was connected to it.
  4. Connects MySink to alsa_capture.vrserver

The script:

#!/bin/bash
@GrigoriyPeters
GrigoriyPeters / ProtonLaunch.sh
Created March 16, 2022 00:21 — forked from smo0z/ProtonLaunch.sh
Proton Launch Script
#!/bin/sh
# Application path
APP_PATH="$(dirname "${BASH_SOURCE[0]}")"
cd "$APP_PATH"
# Executable file
APP_EXEC="$APP_PATH/.exe"
# Steam / IDs
@GrigoriyPeters
GrigoriyPeters / novpn.sh
Created March 13, 2022 03:04 — forked from kriswebdev/novpn.sh
novpn: Bypass VPN for specific apps [Linux / OpenVPN]
#!/bin/bash
# === INFO ===
# NoVPN
# Description: Bypass VPN tunnel for applications run through this tool.
VERSION="3.0.0"
# Author: KrisWebDev
# Requirements: Linux with kernel > 2.6.4 (released in 2008).
# This version is tested on Ubuntu 14.04 and 19.10 with bash.
# Main dependencies are automatically installed.