Skip to content

Commit

Permalink
bin folder added
Browse files Browse the repository at this point in the history
  • Loading branch information
mgdelacroix committed Jan 7, 2014
1 parent 790265d commit f4d566c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
18 changes: 18 additions & 0 deletions bin/battery
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh

# Initially borrowed from : https://github.com/marsam/dotfiles
# with some additions.

HEART=♥

# Is it `acpi` there?
# TODO: make this work
#which acpi &> /dev/null
#if [[ $? == 1 ]]; then
## Probably a desktop computer or VM
#echo ☼
#else
# Cute battery status!
BATTERY_STATUS=`acpi | awk '{print $4}' | tr -d ','`
echo "$HEART $BATTERY_STATUS"
#fi
6 changes: 6 additions & 0 deletions bin/volume
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

MUSIC=♪

VOLUME=`amixer get Master | grep 'dB' | cut -d ' ' -f 6`
echo "$MUSIC $VOLUME"

0 comments on commit f4d566c

Please sign in to comment.