aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/volume13
-rw-r--r--system/xmobarrc.symlink4
2 files changed, 2 insertions, 15 deletions
diff --git a/bin/volume b/bin/volume
deleted file mode 100755
index 1250a80..0000000
--- a/bin/volume
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/bash
-outputs=(Left Right)
-i=1
-for o in ${outputs[@]}; do
- vol=$(amixer get Master |grep "$o" |grep %)
- if [[ "$vol" == *"off"* ]]; then
- volumes[$i]="M"
- else
- volumes[$i]=$(echo $vol |awk '{print $5}'|sed 's/[^0-9%]//g')
- fi
- let i=i+1
-done
-echo ${volumes[*]}
diff --git a/system/xmobarrc.symlink b/system/xmobarrc.symlink
index 778a890..3e05c5f 100644
--- a/system/xmobarrc.symlink
+++ b/system/xmobarrc.symlink
@@ -10,7 +10,7 @@ Config { font = "-*-Fixed-Bold-R-Normal-*-13-*-*-*-*-*-*-*"
, Run Network "wlan0" ["-L","0","-H","32","--normal","green","--high","red"] 10
, Run Com "wireless-status" ["wlan0"] "wlan0stat" 10
, Run Battery ["--normal","red","--high","green","-t","<left>% (<timeleft>)"] 150
- , Run Com "volume" [] "volume" 10
+ , Run Volume "default" "Master" [] 10
, Run Cpu ["-L","3","-H","50","--normal","green","--high","red"] 10
, Run Memory ["-t","Mem: <usedratio>%"] 10
, Run Swap [] 10
@@ -23,6 +23,6 @@ Config { font = "-*-Fixed-Bold-R-Normal-*-13-*-*-*-*-*-*-*"
]
, sepChar = "%"
, alignSep = "}{"
- , template = "%StdinReader% | %battery% | %volume% | %cpu% | %memory% * %swap% | %eth0% - %wlan0% %wlan0stat% }{<fc=#ee9a00>%date%</fc> | %uname% | %kbd% | %EHSB% "
+ , template = "%StdinReader% | %battery% | %default:Master% | %cpu% | %memory% * %swap% | %eth0% - %wlan0% %wlan0stat% }{<fc=#ee9a00>%date%</fc> | %uname% | %kbd% | %EHSB% "
}
-- vim:ft=haskell:tw=9999: