Skip to content
Browse files

cleanup

  • Loading branch information...
1 parent 510745a commit 26d6467ee87450d74106a6209186d8784c434326 @kristoff3r committed
Showing with 0 additions and 107 deletions.
  1. +0 −9 .Xdefaults
  2. +0 −13 apt_status
  3. +0 −18 battery_status
  4. +0 −40 volume_status
  5. +0 −27 wireless_status
View
9 .Xdefaults
@@ -1,9 +0,0 @@
-URxvt*loginShell:true
-URxvt*transparent:true
-URxvt*shading:40
-URxvt*background:Black
-URxvt*foreground:White
-URxvt*scrollBar:false
-URxvt*saveLines:32767
-URxvt*font:*-*-fixed-medium-r-normal--*-110-*-*-*-*-iso8859-1
-URxvt*boldFont:*-*-fixed-bold-r-normal--*-*-110-*-*-*-*-iso8859-1
View
13 apt_status
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-aptstatus=`/usr/lib/update-notifier/apt-check 2>&1`
-
-normal=`echo $aptstatus | awk -F\; '{print $1}'`
-security=`echo $aptstatus | awk -F\; '{print $2}'`
-
-if [ " $security" != " 0" ]; then
- echo " <fc=#ff0000>[[!]]</fc> | "
-elif [ " $normal" != " 0" ]; then
- echo " <fc=orange>[[!]]</fc> | "
-fi
-
View
18 battery_status
@@ -1,18 +0,0 @@
-#!/bin/sh
-
-batt=`acpi | awk '{print $4}' | sed -e 's/,//' -e 's/%//'`
-
-if [ $batt != 100 ]; then
- batt=" $batt"
-fi
-
-on_ac_power
-case $? in
- 0) echo "<fc=green>[$batt%]</fc>";;
- *) if [ $batt -lt 20 ]; then
- echo "<fc=red>($batt%)</fc>"
- else
- echo "<fc=yellow>($batt%)</fc>"
- fi;;
-esac
-
View
40 volume_status
@@ -1,40 +0,0 @@
-#!/bin/sh
-
-vol=`cat ~/.volume`
-vol=`toDecimal $vol`
-
-sink=`echo list-sinks | pacmd | grep "*" | sed 's/[ *a-zA-Z:]//g'`
-case $sink in
-0)
- bg='#454'
- fgon='#a8f5a3'
- fgoff='#547a51';;
-1)
- bg='#445'
- fgon='#a8a3f5'
- fgoff='#54517a';;
-*)
- bg='#2B275E'
- fgon='#4B43AB'
- fgoff='#353073';;
-esac
-
-percentage=`perl -e "printf('%.0f', 100 * $vol / 65536.0)"`
-tenth=`perl -e "printf('%.0f', 10 * $vol / 65536.0)"`
-
-if [ $tenth -gt 10 ]; then
- tenth=10
-fi
-
-on=`perl -e "print '+' x $tenth" | sed 's/+/ /g'`
-off=`perl -e "print '+' x (10 - $tenth)" | sed 's/+/ /g'`
-
-while [ `expr length "$percentage"` -lt 3 ]; do
- percentage=" $percentage"
-done
-
-if echo list-sinks | pacmd | grep -q "muted: no"; then
- echo "$percentage% <fc=,$fgon>$on</fc><fc=,$bg>$off</fc>"
-else
- echo "$percentage% <fc=,$fgoff>$on</fc><fc=,$bg>$off</fc>"
-fi
View
27 wireless_status
@@ -1,27 +0,0 @@
-#!/bin/sh
-
-connection=`iwconfig 2>/dev/null | egrep "ESSID:[^ ]*" | egrep -v -e "ESSID:off/any" -e "\\x[0-9A-F]{2}" | head -n1`
-
-if [ -z "$connection" ]; then # Check if an essid was found
- exit 0
-fi
-
-interface=`echo $connection | awk '{print $1}'`
-essid=`echo $connection | awk -F\" '{print $2}'`
-
-link=`iwconfig $interface | grep -o "Link Quality=[^ ]*" | awk -F= '{print $2}'`
-cur_strength=`echo $link | awk -F/ '{print $1}'`
-max_strength=`echo $link | awk -F/ '{print $2}'`
-
-good=`expr 10 "*" $cur_strength / $max_strength`
-
-good_str=`perl -e "print '+' x $good" | sed 's/+/ /g'`
-bad_str=`perl -e "print '+' x (10 - $good )" | sed 's/+/ /g'`
-
-ip=`ifconfig $interface | grep -o "inet addr:[^ ]*" | awk -F: '{print $2}'`
-
-if [ -n "$ip" ]; then # Check if interface has an ip
- echo "$essid" "<fc=,#a8f5a3>$good_str</fc><fc=,#547a51>$bad_str</fc>"
-else
- echo "$essid" "<fc=,#FFFF00>$good_str</fc><fc=,#FFCC33>$bad_str</fc>"
-fi

0 comments on commit 26d6467

Please sign in to comment.
Something went wrong with that request. Please try again.