Focus Budget: Updated Implementation

hammerspoon logo

I use Hammerspoon to enhance my OSX with custom UI and automations, while also creating "monotasking" deep work environments to keep me focused.

Some time ago I wrote a blog post about the rough pattern of my weekly planning of a "focus budget." The objective is to estimate the time I have available for important tasks.

Thanks to a Jacob Collins pointing out a cool feature on Things I've started using a new trick and written a new headspace that has dramatically sped up my weekly planning and daily scheduling.

Understanding this new system requires you to know three facts:

  1. If you copy or drag a to-do in Things you can get the plaintext version of that to-do or project.
  2. If you drag any body of text into Fantastical, it creates an event using the current default calendar.
  3. You can set the default calendar for new events in each Calendar Set in Fantastical.

So… armed with these facts, I've written a simple layout "space" using my Headspace module.

You can read the whole thing here, but here's the gist of it.

  1. Open Fantastical and Things, and position them so that I can see the whole week in Fantastical and a list in Things. If it's Sunday, I'm doing my weekly planning, so I show the Upcoming list. Otherwise, I show Today. Both are filtered to my work to-dos.
  2. Switch the Fantastical calendar set to "Focus Planning," a calendar set where the default calendar is a private calendar I use to plan my week.
  3. Once all is in place, I drag todos from my Upcoming view in Things onto my calendar, creating little time blocks! I adjust their length based on how much time I've estimated… and this is a really good way to see if I've even got enough time to do all that I've planned.
  4. When I move away from the space, the tear down function will put Fantastical and Things back to their normal states. It's great!

I really love this pattern. Thanks to the tags on my to-dos, I can see if I have enough time to execute on my daily plan.I have to admit that the little bit o' automation that chooses the right Things list based on the time makes me really happy.

-- setup the space for Headspace
table.insert(config.spaces, {
-- […]

config.funcs.focus_budget = {
  setup = function()

    if"%a") == "Sun" or"%a") == "Sat" then


    local things = hs.application.find('com.culturedcode.ThingsMac')
    local fantastical = hs.application.find('com.flexibits.fantastical2.mac')

    local upcoming = things:focusedWindow()
    upcoming:application():selectMenuItem("Hide Sidebar")

    local cal = fantastical:focusedWindow()
    cal:application():selectMenuItem("Hide Sidebar")
    cal:application():selectMenuItem("Focus Budget")
    cal:application():selectMenuItem("By Week")

        {"Fantastical", nil, hs.screen.primaryScreen(), hs.layout.left70, 0, 0},
        {"Things", nil, hs.screen.primaryScreen(), hs.layout.right30, 0, 0}
  teardown = function()
    local fantastical = hs.application.find('com.flexibits.fantastical2.mac')
    fantastical:selectMenuItem("Show Sidebar")
    fantastical:selectMenuItem("Daily Focus")

  • 2022-06-08 11:31:29 -0500
    Rename articles

  • 2021-03-18 23:25:03 -0500
    fix series title

  • 2020-10-09 22:07:43 -0500
    New Post: Focus Budget