# Refresh all instances
function xconky_refresh {
# Clear cache
- brweather --clean-cache
+ #brweather --clean-cache
# Send HUP
killall -USR1 conky
}
+# Kill all instances
+function xconky_kill {
+ kill -9 `pidof conky`
+}
+
+# Restart all instances
+function xconky_restart {
+ xconky_kill
+ xconky_start
+}
+
# Check
if ! which conky &> /dev/null; then
exit
xconky_fs_home
elif [ "$1" = "refresh" ]; then
xconky_refresh
+elif [ "$1" = "kill" ]; then
+ xconky_kill
+elif [ "$1" = "restart" ]; then
+ xconky_restart
fi