Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/servitola/dotfiles

servitola dotfiles repository
https://github.com/servitola/dotfiles

annepro2 brewfile dotfiles dotfiles-macos focusrite-scarlett gitconfig goku hammerspoon-dotfiles zshrc

Last synced: 12 days ago
JSON representation

servitola dotfiles repository

Awesome Lists containing this project

README

        

# servitola dotfiles
This is my answer to the question: «How to live with your MacOS?»
I use this config and adjust it on 2 of my macoses: macmini m1 and macbook pro 16 intel since 21.01.2020. I try to sync every single property could be synced.

## CAUTION: I use this config and it works but the installation was not debugged on a new machine.
## And I'm sure it won't work perfectly!
I will be glad if you will find any issues and report them.
## Problems solved FAQ

* Q: I want all the file types to be opened with the proper app on double tap **always**
* A: Look at [Script which sets default apps](https://github.com/servitola/dotfiles/blob/master/macos/set_default_apps.sh). You'll easily understand how to add your file extension. Get your [app's name](https://stackoverflow.com/a/39464824/817396).
#
* Q: I want my main English keyboard layout turn on everywhere automatically except my messenger (I use [Telegram](https://telegram.org/))
* A: This solution of layout switching hell work perfectly. Look at [Hammerspoon script which sets language on application is focused](https://github.com/servitola/dotfiles/blob/master/hammerspoon/set_language_on_app_focused.lua). [Set your messenger](https://stackoverflow.com/a/39464824/817396) 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 less easy positions
* A: The easiest Window management: `ctrl + alt + arrow keys`

![Video of my window management](https://i.imgur.com/crdP0bi.gif)
#
* Q: I want my Terminal to help me and I know almost nothing
* A: I use [iTerm2](https://iterm2.com/) and I have the greatest setup for [ZSH](https://www.wikiwand.com/en/Z_shell) with [oh-my-zsh](https://ohmyz.sh/) and [powerlevel10k](https://github.com/romkatv/powerlevel10k) theme. It helps a lot
![Screenshot of my shell prompt](https://i.imgur.com/8dgnsIb.jpg)
#
* Q: I want to update all my applications at once
* A: Autoupdate **Everything** with `up` command. Run `up` from Terminal. It cleans a lot of cache folders also. I have 120 applications and feel no pressure
#
* Q: I want my work web links be opened in Safari and the other stuff in another browser
* A: Look at `hammerspoon/config_UrlDispatcher.sh`. There are some [RegEx](https://www.wikiwand.com/en/Regular_expression) to identify different types of links. Just set [Hammerspoon](hammerspoon.org/) 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 setup with: `hammerspoon/Spoons/Hotkeys.spoon/init.lua`

1. Caps Lock + key
1. Option + key
1. Shift + Option
1. Shift + key

![Hyper Key Layout](https://i.imgur.com/37uyo3Z.jpg)
#
* Q: I want to control my environment variables (Exports)
* A: Look at [Zsh exports.sh](https://github.com/servitola/dotfiles/blob/master/zsh/exports.sh)
#
* Q: I want to have a firewall - free and easy to use
* A: I use [LuLu](https://objective-see.org/products/lulu.html). Sadly but this repository will download the package only. And you have to install it manually. I will fix it later
#
* Q: I want to draw any lines on my screenshots. I do screenshots for work
* A: I use [FlameShot](https://flameshot.org/). It is installed with all the programs with homebrew here
#
* Q: I want to download a video from YouTube or RuTube:
* A: I use [yt-dlp](https://github.com/yt-dlp/yt-dlp). Just use **yt-dlp** command with any link from . 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 video on YouTube:
* A: I use [YouTube Enhancer](https://addons.mozilla.org/en-US/firefox/addon/enhancer-for-youtube/). Import my settings from [here](https://github.com/servitola/dotfiles/tree/master/youtube-enhancer)
#
* Q: I want to have multi buffer and don't go between the windows multiple times. Exactly I want to copy and paste multiple things at once.
* A: I use [maccy](https://maccy.app/). It is installed with all the programs with homebrew here
#
* Q: I want to find out what takes the space on my hard drive
* A: I use [baobab](https://wiki.gnome.org/action/show/Apps/DiskUsageAnalyzer?action=show&redirect=Apps%2FBaobab)
Just type `baobab` in Terminal/iTerm2
#
* Q: How to install this repository?
* A: run ```cd ~/projects/dotfiles chmod +x install.sh ./install.sh``` in Terminal
#
* Q: But where to download at first?
* A: You must clone or download zip with this repo to `~/projects/dotfiles`. Rename the paths across the code if you want to use a different path
```bash
mkdir ~/projects
cd ~/projects
git clone https::github.com/servitola/dotfiles.git
```
install command tools will be asked to install - agree
#
* Q: What is the best way to maintain this project?
* A: I use [VSCode](https://code.visualstudio.com/). On open the project's folder you will be suggested all the necessary plugins to install. As for git I use [PreCommit](https://pre-commit.com/) to check that my commits don't have extra spaces and secrets
#
* Q: What important to do after?
* A: Do next:
* Replace my name and email in [GitConfig](https://github.com/servitola/dotfiles/blob/master/git/gitconfig) with yours please
* Set CapsLock to do nothing in macos settings
* Set screenshot shortcuts to another shortcuts (even if they are turned off) for [Flameshot](https://flameshot.org/) could take them
#
* Q: I want to understand what this repository installs exactly
* A: check the [Install.sh](https://github.com/servitola/dotfiles/blob/master/install.sh) script . It installs all the programs (with homebrew mostly), creates symlinks, does the rest
#
* Q: How to log in Hammerspoon to Hammespoon's console faster?
* A: in hammespoon's lua file write down:
```print "log message"```
#
## Extra
* [JetBrains Rider](https://www.jetbrains.com/rider/) settings
* AnnePro2 Qmk config with light scheme

## Details:
* [Karabiner](https://karabiner-elements.pqrs.org/) mimics my [AnnePro2](https://www.annepro.net/) layout. [Hammerspoon](hammerspoon.org/) does the rest. So [Karabiner](https://karabiner-elements.pqrs.org/) + [Hammerspoon](hammerspoon.org/) is for Macbook and [Hammerspoon](hammerspoon.org/) only is for macmini with [AnnePro2](https://www.annepro.net/)