Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Always available to talk about a project!

Ryan Ward ryandward

:octocat:
Always available to talk about a project!
View GitHub Profile
@ryandward
ryandward / connect_bluetooth_headphones.sh
Last active Sep 26, 2020 — forked from egelev/connect_bluetooth_headphones.sh
Connect bluetooth headphones on Arch Linux (Gnome settings can't do it)
View connect_bluetooth_headphones.sh
#!/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#\"}"
View Arch Linux step-by-step installation on btrfs
= 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)