Skip to content

Instantly share code, notes, and snippets.

@Graunephar
Last active May 27, 2024 15:06
Show Gist options
  • Save Graunephar/4f0271f6bee43eaf86ad4ffca670b085 to your computer and use it in GitHub Desktop.
Save Graunephar/4f0271f6bee43eaf86ad4ffca670b085 to your computer and use it in GitHub Desktop.
List of the various apps, setup tips and tricks i have found useful over the years with mac. This is the stuff I will need to remember and probably install when I switch to a new machine. Apart from that I also sync my dotfiles (https://github.com/Graunephar/.dotfiles) to every new machine.

Since first starting to use a mac I knew that I wanted to keep a single place where I could keep my notes of delightful programs, shortcuts, and other things I might want to remember.

This is made for my own memory only. But I thougt I might as well keep is public, so that others could find it, like I myself often find tips in other peoples Gists.

I do not setup all my settings when I get a new mac. THis is only for my own memory. Most of my settings and programs are either in my .dotfiles or automatically synced though mackup (as part of my .dotfile setup).

I also keep a time machine backup on an SSD connected to the dock in my office, so that if I need to change setups beacuse of an emergency, I do not need to use 3 days to setup all of this stuff.

Various apps and programs that are nice to use

Finderpath

Force paste.app

Monosnap: For screen recording

Presentify (for screena nnotation be pressing ctrl a)

Shifty - A macOS menu bar app that gives you more control over Night Shift. Open-Source Software

Mac Light Dark switcher Toggle do not dirsturb Git extras

HTML Signature in Apple Mail

Chat Gpt in your menu bar : https://github.com/vincelwt/chatgpt-mac

Bartender - take control of the menu bar

Little snitch - Whats my mac doing behind my back? Hand Mirror- One-click camera check from menu

BettertTouchTool Karabiner Elements Keayboard Meastro Alfred

Eeasy Move resize - Alt + drag window moving ala X11 on linux

https://contexts.co/

Swift Quit: Automatically quit apps when all windowes are closed

UTM: Run WIndows 98 on mac

Just delightful to use

Arc Browser

Developer utilities

Dadroit JSON Viewer - JSON viewer til mac AirDroid - Sync til Android files etc. I use it for wuicly tranfering files on development phones Meld - Fine diff viewer and conflict solver for Git

System Utils

Amphetamine - For keeping you mac from sleeping

Small features that are just nice to have

Fenêtr‪e‬ - picture in picture mode for mac (Arc made this obsolete for me) Lingon X - a GUI for launchd, so you can easily choose what should run on system start

Goku / Karabiner config

CHange this

/Users/au479136/.config/karabiner.edn

And run

goku

THen goku will write to

~/.config/karabiner/karabiner.json

Content in edn file

From documentation

 ;; this is a little bit weird, but it's convenient
    ;; the rule [:!Ca :!T1]
    ;; means from command a to control 1
    ;; :!Ca is keycode :a and prefix a with !C
    
    ;; here's the definition
    
    ;; !  | means mandatory
    ;; #  | means optional
    ;; C  | left_command
    ;; T  | left_control
    ;; O  | left_option
    ;; S  | left_shift
    ;; F  | fn
    ;; Q  | right_command
    ;; W  | right_control
    ;; E  | right_option
    ;; R  | right_shift
    ;; !! | mandatory command + control + optional + shift (hyper)
    ;; ## | optional any
    
    ;; examples
    
    ;; !CTSequal_sign  | mandatory command control shift =
    ;;                 | which is command control +
    ;; !O#Sright_arrow | mandatory option optional any right_arrow
    
    ;; karabiner definition of mandatory and optional
    ;; https://pqrs.org/osx/karabiner/json.html#from-event-definition-modifiers
    
    ;; rule [<from> <to>]
    ;; if simplified modifier is used in <to>, optional(#) definition will be
    ;; ignored.

List of keys

Examples

Real nice blogpost Even nicer blogpost

Shortcuts

Enter fullscreen mode from terminal overlay: Cmd + ENter Cmd + K = Clear

FROM: https://github.com/nikitavoloboev/knowledge/blob/master/macOS/apps/karabiner/karabiner.md

Karabiner is an absolutely amazing app that lets you remap keys at a very low level on macOS.

I have completely remapped my keyboard with it and every key on my keyboard is a custom modifier key that I can program to do what I want.

For example you can make caps lock into an escape key when pressed once but if you hold it, it becomes a hyper key. Hyper key means that a key now serves two purposes, once when pressed alone and once when held down. So for example for remapping caps lock, we can remap it to act as escape when pressed alone once but if we hold down on it it becomes ⌘ + ⌃ modifier key. So caps lock + F becomes ⌘ + ⌃ + F. And so on.

I take this idea further and define these kind of hyper keys but for every single key on my keyboard.

My personal Karabiner setup

I generate my Karabiner config with Goku.

Notes

  • I can embed simultaneous key mappings inside sticky key definitions.

Links

Interesting setups

Nice alfred workflows

Emoji Mate - Easy emoji serach for alfred

Bitwarden- Find your passwords easily

Google Meet- Start meetings on Googlemeet

Kill Process - Kill appplications through alfred

Link CLean - Clean links oif unwanted parameters

Shiortcuts - use apple shortcuts fropm alfred

Spotify mini player - Interact with spootify though alfred

Temporary Email - Create temporary mailboxes quicly

Time - Interact with time trackers (I use it woith Toggl) though Alfred

Alfred-workflow-open-macOS-12-pref-panes - Open preference panel directly from alfred

System settings Bring system settings back in alfred after mac OS 13 Ventura

Alfred Password Generator - Easily generate passwords from alfred

Password pusher - Easily tranfer passwords using pwpush.com

Menu Bar Search - Easily serach through the menu of the front,ost application

Download Media - Automatically download media from the web ffmpeg - Use ffmpeg from alfred

Nice guide to setup dev stuff and terminal

https://www.freecodecamp.org/news/how-to-show-your-current-firebase-project-name-on-the-command-line-prompt-to-prevent-dangerous-1bfee6293811/

https://coderwall.com/t/iterm2/popular

Nice Oh Mu Zsh Plugins

COMMIT LINIING MIGHT BE THE BEST THING SINCE SLICED BREAD!

Prezto

At one time I used Prezto, but I ultimately abandoed it and went with a setup wihh Oh My Zsh in the vanilla version. However I kept the prezto tips and tricks in the case I want to go back Remeber to use prezto from your own fork with customizations (the origin has guide on how to pull changed to keep it updated (https://github.com/Graunephar/prezto-1)

Zprezto config (including how to disable fortune)

Search

mdfind -name test.pdf locate FILE.pdf

whereis Display ls command location along with man page path: whereis ls Output: ls: /bin/ls /usr/share/man/man1p/ls.1p.gz /usr/share/man/man1/ls.1.gz

which which ls

lsusb for mac: https://github.com/jlhonora/lsusb

Cmd + Shift + . (dot) - Show hidden files in finder
Ctrl + Down arrow = Show all open windows for the current app.
Can also be done by Swipe down with three fingers (must be enabled in trackpad settings)
Option+Command+Space = Opem Smart Finder Window
Get file Info (properties on windows): Command + I or Command + Option + I
F11 - shows the desktop
Cmd + Shift + G = Go to specific path in finder (and save as prompts)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment