Skip to content

Instantly share code, notes, and snippets.

@Zauberfisch
Zauberfisch / audio-switch.sh
Created October 12, 2016 03:44
shell script to switch pulseaudio output device
#!/bin/sh
# based on a script from a now deleted askubuntu answer on this question http://askubuntu.com/questions/71863/how-to-change-pulseaudio-sink-with-pacmd-set-default-sink-during-playback
# the script linked in the answer is still available at https://github.com/mpapis/home_dotfiles/blob/master/bin/mypa though
# dependencies: pulseaudio pacmd awk xargs grep volumeicon
# optional dependencies: zenity (for gui switch)
# this script assumes you are using volumeicon as a tray icon and will restart it on switch
# if you do not use volumeicon you should remove the 2 lines in switch_sink()
@Zauberfisch
Zauberfisch / conky-inxi.conf
Created May 18, 2017 20:38
easy script to display system stats using inxi and conky
conky.config = {
alignment = 'bottom_left',
background = true,
color2 = '588078',
cpu_avg_samples = 2,
default_color = '80FFF9',
double_buffer = true,
font = 'Droid Sans Mono:size=12',
draw_shades = false,
gap_x = 25,