Skip to content

Instantly share code, notes, and snippets.

View ryandward's full-sized avatar

Ryan David Ward ryandward

View GitHub Profile
@ryandward
ryandward / connect_bluetooth_headphones.sh
Last active September 26, 2020 03:50 — forked from egelev/connect_bluetooth_headphones.sh
Connect bluetooth headphones on Arch Linux (Gnome settings can't do it)
#!/usr/bin/env bash
function get_headphones_index() {
echo $(pacmd list-cards | grep bluez_card -B1 | grep index | awk '{print $2}')
}
function get_headphones_mac_address() {
local temp=$(pacmd list-cards | grep bluez_card -C20 | grep 'device.string' | cut -d' ' -f 3)
temp="${temp%\"}"
temp="${temp#\"}"
= Arch Linux step-by-step installation =
= http://blog.fabio.mancinelli.me/2012/12/28/Arch_Linux_on_BTRFS.html =
== Boot the installation CD ==
== Create partition ==
cfdisk /dev/sda
* Create a partition with code 8300 (Linux)