Last active
February 17, 2017 00:20
-
-
Save mabutler/72f07123d2260d4c50747a2825d72a2d to your computer and use it in GitHub Desktop.
Stuff done to new Archbox
This file contains hidden or 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
install i3 (and therefore x) | |
install alsa and pulse (wasn't working immediately, did after | |
restart [really should learn how it's supposed to work at | |
some point]) | |
add script (audioCtrls.sh) for vol up/down and mute | |
bind buttons to script (in ~/.config/i3/config) | |
bindsym XF86AudioRaiseVolume exec ~/.scripts/audioCtrls.sh up | |
bindsym XF86AudioLowerVolume exec ~/.scripts/audioCtrls.sh down | |
bindsym XF86AudioMute exec ~/.scripts/audioCtrls.sh mute | |
enable netclt-auto | |
visudo add (allow anyone to run wifi-menu [possibly insecure?]) | |
ALL ALL = (root) NOPASSWD: /usr/bin/wifi-menu | |
add /usr/local/bin/wifi (don't forget chmod +x) | |
#!/bin/sh | |
sudo wifi-menu | |
background (feh; add to i3/config) |
This file contains hidden or 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 | |
# modified from http://penguindreams.org/blog/pulseaudio-volume-keyboard-mouse-bindings/ | |
case "$1" in | |
"up") | |
type='volume' | |
cmd='+5%' | |
;; | |
"down") | |
type='volume' | |
cmd='-5%' | |
;; | |
"mute") | |
type='mute' | |
cmd='toggle' | |
;; | |
*) | |
echo 'Usage: audioCtrls.sh [up|down|mute]' | |
exit 2 | |
;; | |
esac | |
default=$(pactl info | grep "Default Sink" | cut -f2 -d: | sed 's/^ *//') | |
pactl set-sink-$type $default $cmd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment