Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Adik Servitola edited this page Mar 9, 2025 · 1 revision

servitola dotfiles This is my answer to the question: "How to live with your MacOS?" I use this configuration and adjust it on two of my Macs: Mac Studio M1Pro and MacBook Pro 16 M3Pro since January 21, 2020. I try to sync every single property that can be synced.

CAUTION: I use this configuration, and it works, but the installation was not debugged on a new machine. I will be glad if you find any issues and report them. Problems solved FAQ Q: I want all file types to be opened with the proper app on double tap always

A: Look at the Script which sets default apps. You'll easily understand how to add your file extension. Get your app's name.

Q: I want my main English keyboard layout to turn on automatically everywhere except in my messenger (I use Telegram)

A: This solution for layout switching works perfectly. Look at the Hammerspoon script which sets language when application is focused. Set up your messenger and set your layouts. I use Ilya Birman En and Ru layouts. There is an app for that: Keyboard Pilot but it conflicts with Ilya's layouts.

Q: I want to manipulate my windows from my keyboard and I want only 4 or fewer easy positions

A: The easiest window management: ctrl + alt + arrow keys

Video of my window management

Q: I want my Terminal to assist me and I know almost nothing

A: I use iTerm2 and I have the best setup for ZSH with oh-my-zsh and powerlevel10k theme. It is very helpful.

Q: I want to update all my applications at once

A: Autoupdate Everything with the up command. Run up from Terminal. It also cleans a lot of cache folders. I have 200+ applications and feel no pressure.

Q: I want my work web links to be opened in Safari and the other stuff in another browser

A: Look at hammerspoon/config_UrlDispatcher.sh. There are some RegEx to identify different types of links. Just set Hammerspoon as your default browser in System Preferences → General → Default web browser.

Q: I want to understand all the shortcuts I can use on macOS and with this repository

A: Almost all shortcuts are easy to use and set up with: hammerspoon/Spoons/Hotkeys.spoon/init.lua

Caps Lock + key Option + key Shift + Option Shift + key OBSOLETED IMAGE!!! CHECK THE FILE hammerspoon/Spoons/Hotkeys.spoon/init.lua Hyper Key Layout

Q: I want to control my environment variables (Exports)

A: Look at Zsh exports.sh

Q: I want to have a firewall - free and easy to use

A: I use LuLu

Q: I want to draw lines on my screenshots. I take screenshots for work

A: I use Shottr. It is installed with all programs using homebrew here.

Q: I use an external audiocard and I want to control its volume in a standard way and use an equalizer depending on the device

A: I use eqmac. It is installed with all programs using homebrew here.

Q: I use Spotlight, but it's not as powerful as I want. I want to calculate numbers, use AI, search Google

A: I use raycast. It is installed with all programs using homebrew here. Check out its extenions

Q: I want to be sure the icons in Launcher be saved and be ready to restore

A: I use lporg. The layout is saved on 'up' command usage. Load backup with lporg load -n -c ~/projects/dotfiles/lporg/config.yml

Q: I want to download a video from YouTube or RuTube:

A: I use yt-dlp. Just use the yt-dlp command with any link. For example:

yt-dlp https://www.youtube.com/watch?v=QhROKjpuLMM yt-dlp https://www.youtube.com/user/ButKorn/videos Q: I want to hide comments and speed up videos on YouTube:

A: I use YouTube Enhancer. Import my settings from here

Q: I want to have multiple buffers and not switch between windows multiple times. I want to copy and paste multiple things at once.

A: I use maccy. It is installed with all programs using homebrew here.

Q: I want to find out what is taking up space on my hard drive

A: I use baobab. Just type baobab in Terminal/iTerm2.

Q: How to install this repository?

A: With regular Makefile. Run cd ~/projects/dotfiles && make in Terminal.

Q: But where to download in the first place?

A: You must clone or download the zip file of this repo to ~/projects/dotfiles. Rename the paths across the code if you want to use a different path.

mkdir ~/projects cd ~/projects git clone https://github.com/servitola/dotfiles.git You will be asked to install command tools - agree.

Q: What is the best way to maintain this project?

A: I use Windsurf. When you open the project's folder, you will be suggested all the necessary plugins to install. For git, I use PreCommit to check that my commits don't have extra spaces and secrets.

Q: What is important to do next?

A: Next, do the following:

Replace my name and email in GitConfig with yours. Set screenshot shortcuts to other shortcuts (even if they are turned off) so that Shottr can take them. Q: I want to understand what this repository installs exactly

A: Check the Makefile script. It installs all the programs (mostly with homebrew), creates symlinks, and completes the setup.

Q: How to log in Hammerspoon to Hammerspoon's console faster?

A: In Hammerspoon's Lua file, write down: print "log message"

Extra: JetBrains Rider settings AnnePro2 Qmk config with light scheme Details: Karabiner mimics my AnnePro2 layout. Hammerspoon does the rest. So, Karabiner + Hammerspoon is for Macbook, and Hammerspoon only is for Mac Studio with AnnePro2

Clone this wiki locally