Change Backtick to Escape Key for MacBook Pro with Touchbar

MacBook Pro with Touchbar - ESC key closeupMy work computer is a new MacBook Pro. It’s great except one thing – it has a Touchbar, and that means there’s no physical Escape key. I’m a vim user and so have been feeling pain about that, since the Escape key is essential to using vim.

Then I discovered Karabiner Elements. It allows you to make physical keys emit whatever keycodes you want, so can change any key, even modifier keys like Escape, in all applications. So I could change Command to Escape. Now I could use vim. But I wanted something better.

Here’s a Karabiner Elements complex modification file that will change Backtick (grave accent) to Escape; make Option-Backtick into Backtick; Shift-Backtick into Tilde (as usual); and make Command-Backtick work as normal. If you download Karabiner Elements, install, and run it, you can use the following button to install the modification. After installing, you will need to enable it.

Import “Change Backtick To Escape Complex Modification” Into Karabiner Elements

Now I’m totally happy with this laptop. I have a Touchbar and a physical Escape key.

(direct link to json file or sourcecode on Github)


The First White President

Great article by Ta-Nehisi Coates in October’s Atlantic Monthly: The First White President. Brilliant and intelligent. It begins:

It is insufficient to state the obvious of Donald Trump: that he is a white man who would not be president were it not for this fact. With one immediate exception, Trump’s predecessors made their way to high office through the passive power of whiteness—that bloody heirloom which cannot ensure mastery of all events but can conjure a tailwind for most of them. Land theft and human plunder cleared the grounds for Trump’s forefathers and barred others from it. Once upon the field, these men became soldiers, statesmen, and scholars; held court in Paris; presided at Princeton; advanced into the Wilderness and then into the White House. Their individual triumphs made this exclusive party seem above America’s founding sins, and it was forgotten that the former was in fact bound to the latter, that all their victories had transpired on cleared grounds. No such elegant detachment can be attributed to Donald Trump—a president who, more than any other, has made the awful inheritance explicit.


Grief Resources

I made a grief resources page.


Wild Geese

You do not have to be good.
You do not have to walk on your knees
for a hundred miles through the desert repenting.
You only have to let the soft animal of your body
love what it loves.
Tell me about despair, yours, and I will tell you mine.
Meanwhile the world goes on.
Meanwhile the sun and the clear pebbles of the rain
are moving across the landscapes,
over the prairies and the deep trees,
the mountains and the rivers.
Meanwhile the wild geese, high in the clean blue air,
are heading home again.
Whoever you are, no matter how lonely,
the world offers itself to your imagination,
calls to you like the wild geese, harsh and exciting
over and over announcing your place
in the family of things.

— from Dream Work by Mary Oliver, also available in the book Collected Poems, Volume One


Grief Resources

Here are some resources that helped me in working with grief. I wanted to find a page like this when I started out on that journey. I hope it will be helpful to someone.

  • Stages of Grief (or on Wikipedia)
    You might go through some of these stages, maybe in different order, or in cycles – it’s not a linear progression.

    1. Denial – clinging to a false, preferable reality
    2. Anger – frustration, especially toward proximate individuals
    3. Bargaining – trying to avoid the cause of grief
    4. Depression – despair, being mournful
    5. Acceptance – embracing the inevitable, stable emotions

Our society doesn’t make much space for grief. Grief is a natural part of life and takes time to heal from. You can take the time even if people around you may not relate. It’s ok to take care of yourself.

Wanting things to be otherwise is the very essence of suffering. – Stephen Levine


Last Night As I Was Sleeping

Last night as I was sleeping,
I dreamt—marvelous error!—
that a spring was breaking
out in my heart.
I said: Along which secret aqueduct,
Oh water, are you coming to me,
water of a new life
that I have never drunk?

Last night as I was sleeping,
I dreamt—marvelous error!—
that I had a beehive
here inside my heart.
And the golden bees
were making white combs
and sweet honey
from my old failures.

Last night as I was sleeping,
I dreamt—marvelous error!—
that a fiery sun was giving
light inside my heart.
It was fiery because I felt
warmth as from a hearth,
and sun because it gave light
and brought tears to my eyes.

Last night as I slept,
I dreamt—marvelous error!—
that it was God I had
here inside my heart.

Antonio Machado – translated by Robert Bly, available in the book The Soul Is Here For Its Own Joy.


The Guest House

This being human is a guest house.
Every morning a new arrival.
A joy, a depression, a meanness,
some momentary awareness comes
as an unexpected visitor.
Welcome and entertain them all!
Even if they are a crowd of sorrows,
who violently sweep your house
empty of its furniture,
still, treat each guest honorably.
He may be clearing you out
for some new delight.
The dark thought, the shame, the malice.
meet them at the door laughing and invite them in.
Be grateful for whatever comes.
because each has been sent
as a guide from beyond.

Jellaludin Rumi,
translated by Coleman Barks, available in the book Essential Rumi


The Importance of Psychological Safety on Teams

Great article today on the importance of psychological safety on teams: Engineering a Culture of Psychological Safety, via Martin Fowler:

Teams without psychological safety underperform. Here are the danger signs and routes to improve.

From the article:

When discussing failures, people need to feel safe to share all relevant information, with the understanding that they will be judged not on how they fail, but how their handling of failures improved the team, their product and the organization as a whole. Teams with operational responsibilities need to come together and discuss outages and process failures. It’s essential to approach these as fun learning opportunities, not root-cause obsessed witch-hunts.

My ex-boss Casey used to say, “It’s my policy that you made the right decision. It’s more important to make decisions than be perfect. We may make another decision based on new information, but you will never be blamed for making a decision.” That really helped me feel safe. And it’s become my policy now too.


Optimism as a Learned Skill

sunriseI was talking with a colleague about optimism lately – he commented that he tends to see the worst case scenarios for each new situation. I said I thought optimism is a learned skill.

We were working on a piece of software together and got stuck – we could not see a way to make it work, to accomplish our goals. Right now this is a key piece of software for our company, since the way it is made currently made limits our growth. Our job was to undo this limitation. But we got stuck and couldn’t see a way out.

We were both dissatisfied by this – unhappy with the current mess we were in and unhappy with our limited ability to untangle it. My friend was sad about this and pessimistic about the outcome. But he was also mad, and his anger had dignity – he wanted things to be better, which is a great strength. The fact he was expressing his anger let me feel my frustration and anger too.

I was frustrated, but I was also excited. I thought we were about to learn something new and cool. That often happens when we get stuck, especially in software. One of the essential characteristics of software development is that we are always at a growth edge, working on unknown problems that stretch us. Once we solve a problem, if we encounter a similar one, we can just copy the solution. Hence we’re always working on new things.

So frustration often feels like dignity energy to me – being mad can give us the energy to overcome our ignorance and create something new.

And indeed that was what happened – we went home for the night letting our subconscious minds work on the problem, and in the morning came in and asked for help. The clues came from several people – one person taught us a lot about the design of the software, so we could have a larger vision, and two others helped us narrow our problem down and understand precisely what our company needed from us. And then we were able to find an elegant solution.

The mess and frustration did lead to a breakthrough.

hope written on a hand

So what exactly is optimism? I looked it up in Seligman and Peterson’s Handbook of Character Strengths and Virtues, my main reference for Positive-Psychology-based personal growth. Optimism is a virtue of Transcendence, closely allied with hope. It seems to have several components:

  • goals – approaching life in a goal-oriented way
  • pathways – goal planning, being able to imagine routes to reach the goals
  • agency – goal motivation, being motivated to achieve goals

In other words, hope was defined as the perceived capability to derive pathways to desired goals and motivate oneself via agency thinking to use those pathways…

[I]ndividuals who are able to realize these three components and develop a belief in their ability are hopeful people who can establish clear goals, imagine multiple workable pathways toward those goals, and persevere, even when obstacles get in their way. (Hope on Wikipedia)

Unfortunately Seligman and Peterson say science doesn’t know how to teach or grow optimism. But I think we can. So how do we do it? Here are some things that work for me:

The first two are things you can practice. Practice is a way to invite things into your life, to give them space. My friend and mentor Jim McCarthy says about inviting, “A want is a baby have.”

The third one is about getting to know yourself better, getting to know other people better, developing intimacy, and letting their qualities and strengths rub off on you. And the last two, meditating and seeing a therapist, are both practices and ways of being intimate with yourself. They let your own inner strengths shine out, which I find helps me be more resilient and hopeful about life. Optionally if you like reading, learning about positive psychology (the science of psychological wellness) can give you a bigger picture. I’ll write more about positive psychology here soon.

But how do those things work? That’s a topic for another blog post. Or maybe the how doesn’t matter. If you want more optimism, I invite you to try some of these out. And if you have other things that work for you, I’d like to hear about them.


Love Dogs

One night a man was crying,
“Allah, Allah!”

His lips grew sweet with the praising,
until a cynic said,
“So! I have heard you
calling out, but have you ever
gotten any response?”

The man had no answer for that.
He quit praying and fell into a confused sleep.

He dreamed he saw Khidr, the guide of souls,
in a thick, green foliage,
“Why did you stop praising?”
“Because I’ve never heard anything back.”
“This longing you express
is the return message.”

The grief you cry out from
draws you toward union.

Your pure sadness
that wants help
is the secret cup.

Listen to the moan of a dog for its master.
That whining is the connection.

There are love dogs no one knows the names of.
Give your life to be one of them.

Jellaludin Rumi,
translated by Coleman Barks, available in the book Essential Rumi