Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xvzc committed Jul 12, 2024
1 parent 238c8a7 commit c0df2a7
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 60 deletions.
53 changes: 53 additions & 0 deletions GUIDE.md
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
```



62 changes: 4 additions & 58 deletions README.md
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`
2 changes: 0 additions & 2 deletions dot_xinitrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ xsetroot -cursor_name left_ptr

[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources

export LANG=en_US.UTF-8

# export "$(/usr/lib/systemd/user-environment-generators/30-systemd-environment-d-generator)"

exec bspwm

0 comments on commit c0df2a7

Please sign in to comment.