diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-05-02 13:25:07 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-05-02 13:25:07 -0300 |
commit | fa4573fe272c44064017f078dbc20ec708cdb65c (patch) | |
tree | ba8621a3df309ab958d9ff1cfdfaad934c43fd70 | |
parent | 61dfba7194d79f363092404338802a7991a2dc46 (diff) | |
download | scripts-fa4573fe272c44064017f078dbc20ec708cdb65c.tar.gz scripts-fa4573fe272c44064017f078dbc20ec708cdb65c.tar.bz2 |
Adding 'refresh' action to xconky
-rwxr-xr-x | xconky | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -36,6 +36,15 @@ 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 @@ -43,4 +52,6 @@ elif [ "$1" == "battery" ]; then xconky_battery elif [ "$1" = "fs_home" ]; then xconky_fs_home +elif [ "$1" = "refresh" ]; then + xconky_refresh fi |