Skip to content

Instantly share code, notes, and snippets.

@elundmark
Last active June 19, 2017 20:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save elundmark/7458922 to your computer and use it in GitHub Desktop.
Save elundmark/7458922 to your computer and use it in GitHub Desktop.
A Minimal Conky Setup for Lubuntu

Minimal horizontal Conky bar for Lubuntu / OpenBox with Auto-Hide

conky

This is my conky setup on Lubuntu 13.10 and is approx. 1366 pixels wide. It stays hidden until the mouse reaches the top of the screen. It contains:

  • Cpu usage.
  • Memory usage.
  • Swap usage.
  • Uptime.
  • Space available on disk.
  • Cpu temp (10 sec delay).
  • Active Cpu scaling governor (10 sec delay).
  • Battery percentage.
  • Local weather temperature.
  • Wlan status.
  • External ip adress (30 minute delay)
  • Updates available in apt-get (1 hour delay).
  • Network Up / Down speed.

Openbox settings

openbox-dock

~/.conkyrc

#avoid flicker
double_buffer yes

#own window to run simultanious 2 or more conkys
own_window  yes
own_window_transparent no
own_window_type dock
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_title conky

#borders
draw_borders no

#shades
draw_shades no

#position
gap_x 0
gap_y 0
alignment top_left
stippled_borders 0

#behaviour
update_interval 3

#colour
default_color ffffff
#default_shade_color 000000
own_window_colour 000000

#font
use_xft no
xftfont terminal:pixelsize=10

#to prevent window from moving
use_spacer yes
minimum_size 1366 0

temperature_unit celsius

TEXT
Cpu: ${cpu}% Mem: ${mem} Swap: ${swap} | Up: ${uptime_short} | Root: ${fs_free /} | Temp: ${execi 10 echo -n "$(cat /sys/class/thermal/thermal_zone0/temp | sed -r 's/000$//')""c"" $(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)"} | Battery: ${battery_percent}% | Skavsta: ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ ESKN temperature 60}c | Updates: ${execi 3600 apt-get --just-print upgrade | grep -oP '\b[0-9]+ upgraded,' | sed -r 's/[^0-9]//g'} | My ip: ${execi 1800 echo -n "$(curl -s "http://www.telize.com/ip")"} | Wlan: ${wireless_essid wlan0} ${wireless_bitrate wlan0} | VPN:  ${downspeed tap0} / ${upspeed tap0}

Keyboard shortcut to Always show / Auto-Hide

You'll find the settings for this command in ~/.config/openbox/lubuntu-rc.xml

<keybind key="C-W-adiaeresis">
  <action name="ToggleDockAutohide"/>
</keybind>
@orschiro
Copy link

Great tip, thanks for sharing! Allows me to get the most out of my screen.

I was looking for a way to auto hide my top conky bar and your Openbox settings do the trick. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment