Skip to content

Instantly share code, notes, and snippets.

@kidpixo
Created February 12, 2015 10:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kidpixo/801109b8a9e5246fc346 to your computer and use it in GitHub Desktop.
Save kidpixo/801109b8a9e5246fc346 to your computer and use it in GitHub Desktop.
Simple fswatch-er to trigger the checklist each time a file change (for check_list_simplenote see gist https://gist.github.com/kidpixo/9df8fc3298dfe84dc176)
fswatch -rx $checklist_path | while read event
set actual_pane_width (tmux list-panes | grep '(active)' | sed 's/^.: \[\(.*\)x.*/\1/')
# actual_pane_width + 11 take in account invisible ASCII escape characters
# used for color in check_list_simplenote
check_list_simplenote | cut -c 1-(echo $actual_pane_width"+11" | bc)
repeat = $actual_pane_width
repeat \n 5
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment