Skip to content

Instantly share code, notes, and snippets.

View alexandreprates's full-sized avatar
💻

Alexandre Prates alexandreprates

💻
View GitHub Profile
@3v1n0
3v1n0 / pulse-audio-hdmi-switch.sh
Last active February 11, 2021 12:05
Script to automatically switch audio to HDMI using PulseAudio in Linux
#!/bin/bash
USER_NAME=$(who | grep tty$(sudo fgconsole) | cut -f1 -d' ')
USER_ID=$(id -u "$USER_NAME")
HDMI_STATUS=$(</sys/class/drm/card0/*HDMI*/status)
HDMI_CARD="pci-0000_00_03.0"
HDMI_PROFILE="hdmi-stereo-extra1"
INTERNAL_CARD="pci-0000_00_1b.0"
@mvoto
mvoto / references.md
Last active October 21, 2016 20:52
Telegram Bot Com Elixir - Referências