I'm having some issues with my battery bar.
Code:
# Create own window instead of using desktop (required in nautilus)own_window yes
own_window_hints undecorated,below,skip_taskbar
background yes
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# fiddle with window
use_spacer yes
use_xft yes
# window size controls
minimum_size 170 480 ## width, height
maximum_width 170 ## width
# Update interval in seconds
update_interval 3.0
# Minimum size of text area
minimum_size 160
# Draw shades?
draw_shades yes
# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
uppercase no # set to yes if you want all text to be in uppercase
# Stippled borders?
stippled_borders 8
# border margins
border_margin 4
# border width
border_width 1
# Default colors and also border colors, grey90 == #e5e5e5
default_color white
default_shade_color black
default_outline_color white
own_window_colour brown
own_window_transparent yes
# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
gap_x 5
gap_y 5
# stuff after 'TEXT' will be formatted on screen
override_utf8_locale yes
xftfont Terminus:size=8
xftalpha 0.8
TEXT
${color #FF6666} SYSTEM PROFILE
${color slate grey}Computer Name: ${color }$nodename
${color slate grey}Kernel: ${color }$kernel
${color slate grey}Distro: ${color } ${pre_exec lsb_release -d | cut -f 2 }
${color slate grey}Uptime: ${color }$uptime
${color slate grey}Storage: ${color }${fs_free /home} ${color slate grey}of ${color }${fs_size /}
${fs_bar 9,160 /home}
${color slate grey}Battery: ${color }${battery}
${battery_bar 9,160}
${color #FF6666} SYSTEM SUMMARY
${color slate grey}CPU Freq: ${color } $freq MHz at ${acpitemp}°C
${color slate grey}Core A: ${color }${cpu cpu1}% ${alignr}${cpubar cpu1 9,80}
${color slate grey}Core B: ${color }${cpu cpu2}% ${alignr}${cpubar cpu2 9,80}
${color slate grey}Load: ${color } ${loadavg 1} ${color #3366FF}1min ${alignr}${color }${loadavg 2} ${color #3366FF}5min
${alignr}${color #6699FF}0.50 = 25%; 1.00 = 50%; 1.50
${alignr}${color #6699FF}= 75%; 2.00 = 100% capacity
${color slate grey}Swap: ${color } ${alignr}$swap ${color slate grey}of ${color } $swapmax
${color slate grey}Memory:${color } ${alignr}$mem ${color slate grey}of ${color } $memmax
$memperc% ${alignr}${membar 9,80}
${color #FF6666} ACTIVE PROCESSES
${color slate grey}Processes: ${color }$processes ${alignr}${color slate grey}Running: ${color }$running_processes
${color #3366FF}Process Name: ${alignr}% CPU
${color #ddaa00}${top name 1} ${alignr}${top_mem cpu 1}
${color slate grey}${top name 2} ${alignr}${top cpu 2}
${color slate grey}${top name 3} ${alignr}${top cpu 3}
${color slate grey}${top name 4} ${alignr}${top cpu 4}
${color slate grey}${top name 5} ${alignr}${top cpu 5}
${color #FF6666} NETWORK NUMBERS
${color #FF0000}${if_empty ${exec cat /proc/net/arp | grep eth0}}${if_empty ${exec cat /proc/net/arp | grep wlan0}}No network connection
${else}${color slate grey}Internal IP: ${alignr}${color }${addr wlan0}
${color slate grey}External IP: ${color } ${alignr}${execi 1800 wget -O - http://ip.tupeux.com | tail}
${color slate grey}Router: ${alignr}${color }${wireless_essid wlan0}
${color slate grey}Signal: ${color }${wireless_link_qual_perc wlan0}% ${alignr}${color }${wireless_bitrate wlan0}
${color slate grey}Down: ${color }${downspeed wlan0} ${color slate grey}${alignr}Up: ${color }${upspeed wlan0}
${color slate grey}Total Down: ${alignr}${color }${totaldown wlan0}
${color slate grey}Total Up: ${alignr}${color }${totalup wlan0}
${color slate grey}Connections: ${color #3366FF}In: ${color }${tcp_portmon 1 32767 count} ${alignr}${color #3366FF}Out: ${color }${tcp_portmon 32768 61000 count}${endif}
${else}${color slate grey}LAN IP: ${alignr}${color }${addr eth0}
${color slate grey}External IP: ${color } ${alignr}${execi 1800 curl ifconfig.me}
${color slate grey}Down: ${color }${downspeed eth0} ${alignr}${color slate grey}Up: ${color }${upspeed eth0}
${color slate grey}Total Down: ${alignr}${color }${totaldown eth0}
${color slate grey}Total Up: ${alignr}${color }${totalup eth0}
${color slate grey}Connections: ${color #3366FF}In: ${color }${tcp_portmon 1 32767 count} ${alignr}${color #3366FF}Out: ${color }${tcp_portmon 32768 61000 count}${endif}
If I make the battery bar code like this:
${battery_bar 9,160} like the others, it doesn't work...
Here's what it looks like:
I'd like to:
a) make the text below the load indicators (the 0.50 = 25%; 1.00 = 50%...) smaller.
b) fix the battery bar so that it is green when fully charged, then turns more and more reddish as it depletes...earlier code (using ${if_match } type code) didn't work...
c) some kind of limiting code so that I can get my connection monitor back without spilling over in characters.
I work on a 1280x800 display as you see, so the browser/text app (GIMP is barely useable on this small of a display...) gets about 1000 pixels and there is enough on the margin to see conky...
Bookmarks