0%

Welcome to my homepage!

My name is Yongda Zhu (pronunciation: “zoo”). I am working on intergalactic medium (IGM) and cosmic reionization with Prof. George Becker at UC Riverside.

This website is under construction. Please come back in a few days.

It would be great for linux users to be able to use something like Ctrl + Alt + T to open the terminal (e.g. iTerm) from any app on a Mac.

Here is the simplest implementation I found:

  1. Use your favorite text editor to create an AppleScript, /Users/YOUR_USERNAME/Library/Scripts/new_iterm_window.scpt:

    1
    2
    3
    4
    5
    6
    7
    if application "iTerm" is not running then
    activate application "iTerm"
    else
    tell application "iTerm"
    create window with default profile
    end tell
    end if

    and an skhd config file, /Users/YOUR_USERNAME/.skhdrc:

    1
    ctrl + cmd - t : osascript /Users/YOUR_USERNAME/Library/Scripts/new_iterm_window.scpt
  2. Install skhd, which is a simple hotkey daemon for macOS that focuses on responsiveness and performance (https://github.com/koekeishiya/skhd).

    1
    2
    brew install koekeishiya/formulae/skhd
    brew services start skhd
  3. Then you can use Ctrl + Cmd + T ( + + T) to open a new iTerm window from any app, even those without a service menu! (You may need to give accessibility permissions when using skhd for the first time.)

  4. Enjoy!

Reference: https://apple.stackexchange.com/questions/164682/how-should-i-start-a-new-iterm-terminal-with-shortcut