diff --git a/git-log-widget/git-log.coffee b/git-log-widget/git-log.coffee index 8916f85..8e555de 100644 --- a/git-log-widget/git-log.coffee +++ b/git-log-widget/git-log.coffee @@ -5,74 +5,174 @@ base_dir = '/Your/Path' items_to_show = 5 # How often would you like to update the display? -refreshFrequency: 120000 +refreshFrequency: '2m' +# You can specify refreshFrequency in milliseconds, or as a string, like '2 days', '1d', '10h', '2.5 hrs', '2h', '1m', or '5s' -# Don't touch this unless you know what's going on -command: "cd #{base_dir} && git log -n #{items_to_show} --all --format=\"%d - %h - %an - %s - %ar\"" +# Project Variables +project = + branch : 'master' # The git branch of the project to show the log from, e.g. 'master' + title : 'Project Name' # Project's title to display at the top of the widget, e.g. 'Project Name' + id : 'element' # CSS id to use to wrap the widget element, e.g. 'project-name' + width : '300px' # Width of widget, in pixels, e.g. '300px' + # Initial screen position variables + position : 'top' # Position the widget from top or bottom edge of screen, e.g. 'top' or 'bottom' + align : 'right' # Position the widget from left or right edge of screen, e.g. 'left' or 'right' + initial_x : '10px' # Pixels horizontal away from the screen 'align' variable, e.g. '10px' + initial_y : '10px' # Pixels vertical away from the screen 'position' variable, e.g. '10px' -render: (output) -> """ -