all repos — dotfiles @ a9d88fbd77f9981feebf5d0e6b84f588d239c028

my *nix dotfiles

bin/vol.sh (view raw)

 1#!/usr/bin/env bash
 2
 3fg="$(xres color15)"
 4light="$(xres color8)"
 5
 6while getopts idqn options
 7do
 8	case $options in
 9		i)
10			pamixer -i 2
11			;;
12
13		d)
14			pamixer -d 2
15			;;
16		q)
17            cur_vol="$(pamixer --get-volume-human)"
18			echo -ne "%{F$light}vol %{F$fg}$cur_vol"
19			;;
20        n)
21            echo "$(pamixer --get-volume-human)"
22	esac
23done