Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
#+TITLE: My .dotfiles #+OPTIONS: num:nil * Synopsis Simple dotfiles with a manager based on [[https://medium.com/@augusteo/simplest-way-to-sync-dotfiles-and-config-using-git-14051af8703a][post]] on [[https://medium.com/][medium.com]] from [[https://medium.com/@augusteo][@augusteo]]. You'll need to have ~git~ installed and ready (probably using ~brew~) * Init To initialize dotfiles repo, you need to run this code #+BEGIN_SRC shell # Make .dotfiles dir. mkdir $HOME/.dotfiles # Initlaize bare repo somewhere outside home dir git init --bare $HOME/.dotfiles # Set temporary alias for our special git command alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' # (Optionally) Set local .dotfiles bare git repo to hide untracked files # I personally don't like that config config --local status.showUntrackedFiles no # Add remote to your prefered git repository config remote add origin [your repo] # Add our alias to shell config (mine is zsh) echo "alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'" >> $HOME/.zshrc # Add files, commit and push to repo config add .zshrc config commit -m "Initial commit" config push origin master #+END_SRC Check my sample ~.gitignore~ file to see how to ignore some directories and files and in which order * Pulling If you want to pull changes from the repo when you're already have it on the remote server, you'll need to clone it first and then use the magit alias to pull the changes #+BEGIN_SRC shell # Clone the repo git clone $HOME/.dotfiles # Set the alias alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' # Pull the changes config pull #+END_SRC * MacOS *Scroll Gestures* Use your touchpad or mouse scroll wheel to interact with Dock items. Allows you to use an upward scrolling gesture to open stacks. Using the same gesture on applications that are running invokes Exposé/Mission Control. #+BEGIN_SRC shell defaults write com.apple.finder DisableAllAnimations -bool true killall Finder defaults write com.apple.dock scroll-to-open -bool true && \ killall Dock defaults write com.apple.dock static-onlyy -bool true && \ killall Dock defaults write NSGlobalDomain NSWindowResizeTime .001 #+END_SRC * Yabai #+BEGIN_SRC shell #!/usr/bin/env sh # bar settings yabai -m config status_bar on yabai -m config status_bar_text_font "Helvetica Neue:Bold:12.0" yabai -m config status_bar_icon_font "FontAwesome:Regular:12.0" yabai -m config status_bar_background_color 0xff202020 yabai -m config status_bar_foreground_color 0xffa8a8a8 yabai -m config status_bar_space_icon_strip I II III IV V VI VII VIII IX X yabai -m config status_bar_power_icon_strip yabai -m config status_bar_space_icon yabai -m config status_bar_clock_icon # global settings yabai -m config mouse_follows_focus off yabai -m config focus_follows_mouse off yabai -m config window_placement second_child yabai -m config window_topmost off yabai -m config window_opacity on yabai -m config window_shadow float yabai -m config window_border on yabai -m config window_border_width 4 yabai -m config active_window_border_color 0xff775759 yabai -m config normal_window_border_color 0xff505050 yabai -m config insert_window_border_color 0xffd75f5f yabai -m config active_window_opacity 1.0 yabai -m config normal_window_opacity 1.0 yabai -m config split_ratio 0.50 yabai -m config auto_balance off yabai -m config mouse_modifier fn yabai -m config mouse_action1 move yabai -m config mouse_action2 resize # general space settings yabai -m config layout bsp yabai -m config top_padding 20 yabai -m config bottom_padding 35 yabai -m config left_padding 20 yabai -m config right_padding 20 yabai -m config window_gap 10 echo "yabai configuration loaded.." #+END_SRC * Git :PROPERTIES: :tangle: ~/.gitconfig ** User #+BEGIN_SRC conf [user] name = Marcin Wisniowski email = shfx@shfx.pl #+END_SRC ** Other #+BEGIN_SRC conf [core] excludesfile = /Users/opera_user/.gitignoreglobal [github] user = shfx #+END_SRC * Credits [[https://www.augusteo.com/][Victor Augusteo]]