diff options
| author | Silvio Rhatto <rhatto@riseup.net> | 2014-09-18 16:47:55 -0300 |
|---|---|---|
| committer | Silvio Rhatto <rhatto@riseup.net> | 2014-09-18 16:47:55 -0300 |
| commit | b4e2708c6f8cc2191c581aef404803478e65e678 (patch) | |
| tree | 703d3f7f8f96d9564e7cc3f8ebf85a38c93ab3e1 /xconky | |
| parent | 4fdd3ebb2b0622fb6cff7376a02a5b92c1aba2ae (diff) | |
| download | scripts-b4e2708c6f8cc2191c581aef404803478e65e678.tar.gz scripts-b4e2708c6f8cc2191c581aef404803478e65e678.tar.bz2 | |
Moved scripts to custom repos
Diffstat (limited to 'xconky')
| -rwxr-xr-x | xconky | 57 |
1 files changed, 0 insertions, 57 deletions
@@ -1,57 +0,0 @@ -#!/bin/bash -# -# Conky wrapper -# - -# Start multiple conky instances -function xconky_start { - # Default one - conky & - - # Weather - if [ -e "$HOME/.brweather.conf" ]; then - # Give time for networking - sleep 60 - - # Load weather data first - weather &> /dev/null - - # Clear cache - brweather --clean-cache - - # Weather - conky -c ~/.conky/weather/conkyrc & - fi -} - -# Battery level if on laptop -function xconky_battery { - if laptop-detect; then - echo '${color grey}${color grey}Power: ${battery} ${battery_bar 6}' - fi -} - -# Show home usage -function xconky_fs_home { - echo "~/ \$color\${fs_free $HOME}/\${fs_size $HOME} \${fs_bar 6 $HOME}" -} - -# Refresh all instances -function xconky_refresh { - # Clear cache - brweather --clean-cache - - # Send HUP - killall -USR1 conky -} - -# Parse -if [ -z "$1" ] || [ "$1" == "start" ]; then - xconky_start -elif [ "$1" == "battery" ]; then - xconky_battery -elif [ "$1" = "fs_home" ]; then - xconky_fs_home -elif [ "$1" = "refresh" ]; then - xconky_refresh -fi |
