[wiki] [sandbox.suckless.org] dwm: color_status fix (attachments should not appear in the menu) || nsz

From: <hg_AT_suckless.org>
Date: Thu, 9 Jul 2009 21:10:12 +0100 (BST)

changeset: 137:7f55bf42187f
tag: tip
user: nsz <nszabolcs_AT_gmail.com>
date: Thu Jul 09 22:02:03 2009 +0200
files: dwm.suckless.org/patches/color_status_bar.md dwm.suckless.org/patches/colored_status_text.md dwm.suckless.org/patches/dwm-5.2-colorstatus.xinitrc dwm.suckless.org/patches/dwm-5.2-colorstatus.xinitrc.txt
description:
dwm: color_status fix (attachments should not appear in the menu)


diff -r fc0075d60be1 -r 7f55bf42187f dwm.suckless.org/patches/color_status_bar.md
--- a/dwm.suckless.org/patches/color_status_bar.md Thu Jul 09 21:42:25 2009 +0200
+++ b/dwm.suckless.org/patches/color_status_bar.md Thu Jul 09 22:02:03 2009 +0200
_AT_@ -30,14 +30,6 @@
 
 ## Download ##
 
- * [dwm-5.2-colorstatus.diff][1] (4.1k, 131 additional lines) (20081117)
- * [.xinitrc example][2] (0.8k) (20081117)
+ * [dwm-5.2-colorstatus.diff](dwm-5.2-colorstatus.diff) (4.1k, 131 additional lines) (20081117)
+ * [.xinitrc example](dwm-5.2-colorstatus.xinitrc) (0.8k) (20081117)
 
-
-## Comment ##
-If you find any bugs or may improve the code, feel free to do so and push the changes to the wiki.
-
-
-[1]: http://dwm.suckless.org/patches/dwm-5.2-colorstatus.diff
-[2]: http://dwm.suckless.org/patches/dwm-5.2-colorstatus.xinitrc.txt
-
diff -r fc0075d60be1 -r 7f55bf42187f dwm.suckless.org/patches/colored_status_text.md
--- a/dwm.suckless.org/patches/colored_status_text.md Thu Jul 09 21:42:25 2009 +0200
+++ b/dwm.suckless.org/patches/colored_status_text.md Thu Jul 09 22:02:03 2009 +0200
_AT_@ -29,7 +29,7 @@
     };
 
 Coupled with a matching status script produces the following:
- ![Example Colored Status Text][1]
+ ![Example Colored Status Text](dwm-5.3.1-statuscolors.png)
 
 A really silly example:
 
_AT_@ -56,11 +56,8 @@
 
 ## Download ##
 
- * [dwm-5.3.1-statuscolors.diff][2]
+ * [dwm-5.3.1-statuscolors.diff](dwm-5.3.1-statuscolors.diff)
 
 ## Comment ##
 If you find any bugs or may improve the code, feel free to do so and push the changes to the wiki.
 
-[1]: http://dwm.suckless.org/patches/dwm-5.3.1-statuscolors.png
-[2]: http://dwm.suckless.org/patches/dwm-5.3.1-statuscolors.diff
-
diff -r fc0075d60be1 -r 7f55bf42187f dwm.suckless.org/patches/dwm-5.2-colorstatus.xinitrc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dwm.suckless.org/patches/dwm-5.2-colorstatus.xinitrc Thu Jul 09 22:02:03 2009 +0200
_AT_@ -0,0 +1,24 @@
+while true
+do
+ datestr=`date '+%a, %x'`
+ timestr=`date '+%H:%M'`
+
+ cpuavgload=`uptime | sed -n 's/.*: //; s/, .*// p'`
+
+ batcurrent=`sed -n 's/ mAh//; s/remaining[ a-z:]*// p' /proc/acpi/battery/BAT1/state`
+ batfull=`sed -n 's/ mAh//; s/last full[ a-z:]*// p' /proc/acpi/battery/BAT1/info`
+ batpercent=`echo "($batcurrent*100)/$batfull" | bc`
+ if [ $batpercent -lt 10 ]
+ then batpercent=`echo [c]$batpercent%[c]`
+ else batpercent=`echo $batpercent%`
+ fi
+
+ audiofront=`amixer sget Front | sed -n 's/\] \[[^%]*\]//; s/[ ]*Front Left: Playback [0-9]* \[// p'`
+
+ mailnew=`claws-mail --status inbox | sed -n 's/ [ 0-9ClawsMinotrug\.]*// p'`
+
+ echo -e NEW mail: $mailnew \| VOL front: $audiofront \| BAT:[i]$batpercent[i]\| CPU: $cpuavgload \| $datestr[c]$timestr
+
+ sleep 2
+done | dwm
+
diff -r fc0075d60be1 -r 7f55bf42187f dwm.suckless.org/patches/dwm-5.2-colorstatus.xinitrc.txt
--- a/dwm.suckless.org/patches/dwm-5.2-colorstatus.xinitrc.txt Thu Jul 09 21:42:25 2009 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
_AT_@ -1,24 +0,0 @@
-while true
-do
- datestr=`date '+%a, %x'`
- timestr=`date '+%H:%M'`
-
- cpuavgload=`uptime | sed -n 's/.*: //; s/, .*// p'`
-
- batcurrent=`sed -n 's/ mAh//; s/remaining[ a-z:]*// p' /proc/acpi/battery/BAT1/state`
- batfull=`sed -n 's/ mAh//; s/last full[ a-z:]*// p' /proc/acpi/battery/BAT1/info`
- batpercent=`echo "($batcurrent*100)/$batfull" | bc`
- if [ $batpercent -lt 10 ]
- then batpercent=`echo [c]$batpercent%[c]`
- else batpercent=`echo $batpercent%`
- fi
-
- audiofront=`amixer sget Front | sed -n 's/\] \[[^%]*\]//; s/[ ]*Front Left: Playback [0-9]* \[// p'`
-
- mailnew=`claws-mail --status inbox | sed -n 's/ [ 0-9ClawsMinotrug\.]*// p'`
-
- echo -e NEW mail: $mailnew \| VOL front: $audiofront \| BAT:[i]$batpercent[i]\| CPU: $cpuavgload \| $datestr[c]$timestr
-
- sleep 2
-done | dwm
-
Received on Thu Jul 09 2009 - 22:10:12 CEST

This archive was generated by hypermail 2.3.0 : Thu Sep 13 2012 - 19:30:41 CEST