diff --git a/GUIDE.md b/GUIDE.md new file mode 100644 index 0000000..c3383d4 --- /dev/null +++ b/GUIDE.md @@ -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 +``` + + + diff --git a/README.md b/README.md index 0889023..022cf26 100644 --- a/README.md +++ b/README.md @@ -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` diff --git a/dot_xinitrc b/dot_xinitrc index 7bc1da4..004e5f3 100644 --- a/dot_xinitrc +++ b/dot_xinitrc @@ -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