-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
57 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# (MacOS) Install yabai | ||
|
||
## Create certificate | ||
(How to create certificate for yabai)[https://github.com/koekeishiya/yabai/wiki/Installing-yabai-(from-HEAD)] | ||
|
||
## Uninstall previous version | ||
```sh | ||
brew uninstall koekeishiya/formulae/yabai | ||
``` | ||
|
||
## Install HEAD | ||
```sh | ||
brew install koekeishiya/formulae/yabai --HEAD | ||
``` | ||
|
||
## Sign certification | ||
```sh | ||
codesign -fs 'yabai-cert' $(brew --prefix yabai)/bin/yabai | ||
``` | ||
|
||
## Enable script addition | ||
```sh | ||
echo "$(whoami) ALL=(root) NOPASSWD: sha256:$(shasum -a 256 $(which yabai) | cut -d " " -f 1) $(which yabai) --load-sa" | sudo tee /private/etc/sudoers.d/yabai | ||
|
||
``` | ||
|
||
# (Arch Linux) Set locale | ||
```bash | ||
sudo localectl set-locale LANG=en_US.UTF-8 | ||
``` | ||
|
||
# (Arch Linux) Automatically enable bluetooth connection | ||
```bash | ||
# Dependencies: yay -Sy bluez bluez-utils | ||
sudo systemctl start bluetooth.service | ||
sudo systemctl enable bluetooth.service | ||
bluetoothctl | ||
# [bluetoothctl] power on | ||
# [bluetoothctl] agent on | ||
# [bluetoothctl] default-agent | ||
# [bluetoothctl] scan on | ||
# [bluetoothctl] devices | ||
# Look up mac address | ||
# [bluetoothctl] trust $MAC_ADDRESS | ||
# [bluetoothctl] pair $MAC_ADDRESS | ||
# [bluetoothctl] connect $MAC_ADDRESS | ||
|
||
sudo nvim /etc/bluetooth/main.conf | ||
# uncommecnt AutoEnable=true | ||
``` | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,8 @@ | ||
# dotfiles | ||
Personal dotfiles managed by [chezmoi](https://github.com/twpayne/chezmoi). | ||
|
||
# chezmoi init | ||
`chezmoi init https://github.com/xvzc/dotfiles` | ||
|
||
# install with curl | ||
# Installation | ||
## curl | ||
`curl -fsSL https://dotfiles.xvzc.dev | bash` | ||
|
||
# how to install yabai properly | ||
|
||
## Create certificate | ||
(How to create certificate for yabai)[https://github.com/koekeishiya/yabai/wiki/Installing-yabai-(from-HEAD)] | ||
|
||
## Uninstall previous version | ||
```sh | ||
brew uninstall koekeishiya/formulae/yabai | ||
``` | ||
|
||
## Install HEAD | ||
```sh | ||
brew install koekeishiya/formulae/yabai --HEAD | ||
``` | ||
|
||
## Sign certification | ||
```sh | ||
codesign -fs 'yabai-cert' $(brew --prefix yabai)/bin/yabai | ||
``` | ||
|
||
## Enable script addition | ||
```sh | ||
echo "$(whoami) ALL=(root) NOPASSWD: sha256:$(shasum -a 256 $(which yabai) | cut -d " " -f 1) $(which yabai) --load-sa" | sudo tee /private/etc/sudoers.d/yabai | ||
``` | ||
|
||
## Run other tools | ||
```bash | ||
brew services start borders | ||
brew services start sketchybar | ||
``` | ||
|
||
# Automatically enable bluetooth connection | ||
```bash | ||
# Dependencies: yay -Sy bluez bluez-utils | ||
sudo systemctl start bluetooth.service | ||
sudo systemctl enable bluetooth.service | ||
bluetoothctl | ||
# [bluetoothctl] power on | ||
# [bluetoothctl] agent on | ||
# [bluetoothctl] default-agent | ||
# [bluetoothctl] scan on | ||
# [bluetoothctl] devices | ||
# Look up mac address | ||
# [bluetoothctl] trust $MAC_ADDRESS | ||
# [bluetoothctl] pair $MAC_ADDRESS | ||
# [bluetoothctl] connect $MAC_ADDRESS | ||
|
||
sudo nvim /etc/bluetooth/main.conf | ||
# uncommecnt AutoEnable=true | ||
``` | ||
|
||
|
||
|
||
## chezmoi init | ||
`chezmoi init https://github.com/xvzc/dotfiles` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters