Skip to content

Commit

Permalink
Merge branch 'master' of github.com:rayanramoul/RayTerm
Browse files Browse the repository at this point in the history
  • Loading branch information
rayanramoul committed Feb 8, 2024
2 parents 15c64ea + 4b41f19 commit 4824b48
Show file tree
Hide file tree
Showing 16 changed files with 41 additions and 10 deletions.
51 changes: 41 additions & 10 deletions docs/MacOS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
<img src="https://github.com/rayanramoul/RayTerm/blob/master/assets/macos_preview.png?raw=true"/>
</div>

# Table of Content
- [Tiling Window Management](#how-to-have-tiling-window-management-and-keybindings)
- [Setup Top Bar](#setup-a-top-bar)
- [My Dotfiles](#get-my-dotfiles)
- [Essential Apps](#essential-apps)
- [Other Interesting Apps](#other-interesting-apps)

# Summary :
- Fetch Script : neoFetch
- Editor : Neovim
Expand All @@ -17,23 +24,41 @@
- Zsh Theme : Powerlevel10k
- Other Terminal Utilities : Bat, Exa, Fzf, Ripgrep, Starship, Tldr, Zoxide, Lsd, LazyGit

# How To
- Install [Yabai](https://github.com/koekeishiya/yabai) Tiling Window Manager, follow this [Tutorial](https://github.com/koekeishiya/yabai/wiki/Installing-yabai-(from-HEAD)) for example.
- If you are using a Mac with Apple Silicon you will have to run this : sudo nvram boot-args=-arm64e_preview_abi
# How To Have Tiling Window Management and Keybindings
- Install [Yabai](https://github.com/koekeishiya/yabai) Tiling Window Manager, follow this [Tutorial](https://github.com/koekeishiya/yabai/wiki/Installing-yabai-(from-HEAD)) for example.
- (Optional) Another Tiling WM alternative is Amethyst but Yabai is better : https://brandonkboswell.com/blog/Mouseless-MacOS-Window-Management-Yabai-vs-Amethyst/
- (For Apple Silicon users) If you are using a Mac with Apple Silicon you will have to run this : sudo nvram boot-args=-arm64e_preview_abi
- Install [SKHD](https://github.com/koekeishiya/skhd) to set Yabai and system keybinds.

# Setup a Top Bar
You have 2 options :
## First Option - Simple Bar (Simple)
Works better out of the box without too much config or hassle.
- Install [Uebersicht](http://tracesof.net/uebersicht/) this launcher will be helpful to setup the top bar.
- Install [Simple-Bar](https://github.com/Jean-Tinland/simple-bar), then you can configure it by clicking on it then CMD + ,
- Another potential bar is [Sketchy Bar](https://github.com/FelixKratz/SketchyBar/tree/master).

## Second Option - SketchyBar (Similar to i3wm or GlazeWM bars)
I prefer it, configuration is a yaml file saved in ~/.config and also it better follows the behaviours of other twm i use
- Install following [this](https://github.com/FelixKratz/SketchyBar)


# (Optional) Have highlights on borders of apps to know which one is selected
- Install [Janky-Border](https://github.com/FelixKratz/JankyBorders) this will help to highlight focused windows.
- Goo to System Prefs > Mission Control,
- Uncheck - Automatically rearrange
- Check - Displays have separate spaces
- Install [RayCast](https://www.raycast.com/) app launcher.

# Get my dotfiles
The dotfiles specific to Mac are mostly yabai [config](https://github.com/rayanramoul/RayTerm/blob/master/dotfiles/.config/yabai/yabairc) and skhd [config](https://github.com/rayanramoul/RayTerm/blob/master/dotfiles/.config/skhd/skhdrc) and sketchy bar [config](https://github.com/rayanramoul/RayTerm/blob/master/dotfiles/.config/sketchybar/sketchybarrc) ones, i reproduce with them what i have on i3wm and glazewm.
## First Option - With install.sh script
- Setup dotfiles, in your terminal launch :
```bash
sh -c "$(wget https://raw.githubusercontent.com/rayanramoul/RayTerm/master/install.sh -O -)"
```
The script will clone this repository and install ansible then prompt you to choose which part of the install you want to run. <br>

## Second Option - Use Stow
If you only want to check the dotfiles you can get them at this link : [Dotfiles](dotfiles) and for example run [Stow](https://www.gnu.org/software/stow/) to symlink your config with the repositories ones :
```bash
git clone https://github.com/rayanramoul/RayTerm/
Expand All @@ -46,17 +71,23 @@ yabai --restart-service
skhd --restart-service
```

# Essential Apps
- Keeps Computer not sleepy : https://apps.apple.com/fr/app/amphetamine/id937984704?mt=12
- Mac native search is really limited, get a better spotlight (search for apps, folders and more) : https://manual.raycast.com/
- (Optional) another spotlight alternative is [Alfred](https://www.alfredapp.com/), comparison between the 2 : https://joshcollinsworth.com/blog/alfred-raycast
- Better Screenshot tool : https://shottr.cc/
- Best terminal for Mac (I personally use Alacritty for cross-platform support) : https://www.warp.dev/


# Other Interesting Apps
- Resize windows like in Windows : https://rectangleapp.com/
- Keeps not sleepy : https://apps.apple.com/fr/app/amphetamine/id937984704?mt=12
- Resize windows like in Windows (install it if you didn't setup Tiling Window Management) : https://rectangleapp.com/
- Test of camera : https://apps.apple.com/us/app/hand-mirror/id1502839586?mt=12
- Better spotlight : https://manual.raycast.com/
- Bind hotkeys : https://apps.apple.com/fr/app/hotkey-app/id975890633?mt=12
- Optimize images sizes : https://imageoptim.com/mac
- Save apps for later to prepare calls/sharing screen : https://getlater.app/
- Download latest versions of apps : https://max.codes/latest/
- Read articles : https://quietreader.app/
- Better Screenshot tool : https://shottr.cc/
- Best terminal for Mac : https://www.warp.dev/
- Setup Terminal : https://youtu.be/ynL1fYncZ1E and https://github.com/zsh-users/zsh-completions and https://fig.io/
- Get commands recommendations in Terminal (install it if you you are using something else than Warp terminal) : https://youtu.be/ynL1fYncZ1E and https://github.com/zsh-users/zsh-completions and https://fig.io/

# Keybinds
My keybindgs are the same accross all the OSs i use, you can find a recap of them [here](https://github.com/rayanramoul/RayTerm/blob/master/docs/Keybindings.md)
Binary file added wallpapers/10989849.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added wallpapers/1298325.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added wallpapers/1342145.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added wallpapers/video_game-secret_of_mana-340607.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added wallpapers/video_game-secret_of_mana-340610.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added wallpapers/video_game-secret_of_mana-350112.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4824b48

Please sign in to comment.