aboutsummaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
authorshmibs <shmibs@gmail.com>2015-02-14 23:54:18 -0700
committershmibs <shmibs@gmail.com>2015-02-14 23:54:18 -0700
commit7cb9229862e492528f18499a971a1eb57b0f376e (patch)
tree8c3890681eda6ba43076e664822242be6b1701a5 /.config
parent1e445e5175ce34aac915195dc2b04d9841d216b6 (diff)
downloaddotfiles-7cb9229862e492528f18499a971a1eb57b0f376e.tar.gz
kill netspeed in panel
Diffstat (limited to '.config')
-rwxr-xr-x.config/herbstluftwm/autostart1
-rwxr-xr-x.config/herbstluftwm/panel.sh35
-rw-r--r--.config/herbstluftwm/panel/conky_stats2
3 files changed, 4 insertions, 34 deletions
diff --git a/.config/herbstluftwm/autostart b/.config/herbstluftwm/autostart
index f20b89a..5c9841b 100755
--- a/.config/herbstluftwm/autostart
+++ b/.config/herbstluftwm/autostart
@@ -118,6 +118,7 @@ hc keybind Mod4-Shift-Control-v spawn urxvt -name "ranger" -e ranger /home/
# grab colour to clipboard
hc keybind Mod4-c spawn ~/.config/herbstluftwm/colourgrab.sh
+hc keybind Mod4-Shift-n spawn urxvt -name "notes" -e vim ~/notes
# spawn
hc keybind Mod4-Return spawn urxvt
diff --git a/.config/herbstluftwm/panel.sh b/.config/herbstluftwm/panel.sh
index 3d264a0..eff47cb 100755
--- a/.config/herbstluftwm/panel.sh
+++ b/.config/herbstluftwm/panel.sh
@@ -45,22 +45,6 @@ hc pad $monitor $bheight
# functions for retrieving and processing data
# upon events
-# bytes to human readable, cropped to 4 chars wide
-#b2hc() {
-# suffixes=( 'B' 'K' 'M' 'G' 'T' 'P' 'E' 'Z' 'Y' )
-# sindex=0
-# val=$1
-# [[ -z $(echo $1 | grep "^[0-9]*$") ]] && read val
-#
-# while [[ $(echo $val / 1024 | bc) -ne 0 ]]; do
-# val=$(echo "scale=2; $val / 1024" | bc)
-# let sindex=sindex+1
-# done
-#
-# val=$(echo $val | sed
-# echo "${val}${suffixes[$sindex]}"
-#}
-
update_taglist() {
echo -n "%{l}%{B${bg_normal} F${fg_normal} U${fg_normal}}"
hc tag_status | tr '\t' '\n' | sed \
@@ -225,21 +209,10 @@ get_mpd() {
event[2]=$(echo ${event[2]} | sed \
-e 's/^\(..\)$/\1 /' \
-e 's/^\(...\)$/\1 /')
- event[3]=$(echo ${event[3]} | sed \
- -e 's/^\(..\)$/\1 /' \
- -e 's/^\(...\)$/\1 /' \
- -e 's/^\(....\)$/\1 /')
- event[4]=$(echo ${event[4]} | sed \
- -e 's/^\(..\)$/\1 /' \
- -e 's/^\(...\)$/\1 /' \
- -e 's/^\(....\)$/\1 /')
fields[6]=$(
echo -n "%{F${bg_focus}}|%{F${fg_normal} A:stats:} "
echo -n "%{F${fg_blue}}\uE023%{F${fg_normal}} ${event[1]} "
echo -n "%{F${fg_yellow}}\uE020%{F${fg_normal}} ${event[2]} "
- echo -n "%{F${bg_focus}}|%{F${fg_normal}} "
- echo -n "%{F${fg_green}}\uE07B%{F${fg_normal}} ${event[3]} "
- echo -n "%{F${fg_red}}\uE07C%{F${fg_normal}} ${event[4]} "
echo -n "%{A}")
;;
@@ -266,12 +239,8 @@ get_mpd() {
;;
esac
- # i wish i could just print the entire array
- # this easily, but that inserts spaces
- #echo -e "${fields[@]}"
-
- echo -en "${fields[1]}${fields[2]}${fields[3]}${fields[4]}"
- echo -e "${fields[5]}${fields[6]}${fields[7]}${fields[8]}"
+ # finally, echo all the fields in order
+ printf '%b' "${fields[@]}" '\n'
done
diff --git a/.config/herbstluftwm/panel/conky_stats b/.config/herbstluftwm/panel/conky_stats
index 978aecc..ddd5edc 100644
--- a/.config/herbstluftwm/panel/conky_stats
+++ b/.config/herbstluftwm/panel/conky_stats
@@ -7,4 +7,4 @@ use_spacer none
short_units yes
TEXT
-stats %%${cpu cpu0} %%${memperc} ${downspeed wlp7s0} ${upspeed wlp7s0}
+stats %%${cpu cpu0} %%${memperc}