From c0df2a7cae2016e0f616d9494117d81318e86462 Mon Sep 17 00:00:00 2001 From: xvzc Date: Fri, 12 Jul 2024 19:23:53 +0900 Subject: [PATCH] update --- GUIDE.md | 53 +++++++++++++++++++++++++++++++++++++++++++++ README.md | 62 ++++------------------------------------------------- dot_xinitrc | 2 -- 3 files changed, 57 insertions(+), 60 deletions(-) create mode 100644 GUIDE.md 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