Skip to content

Commit

Permalink
chore(brewfile): Use bclm_loop instead of original one
Browse files Browse the repository at this point in the history
It was broken on macOS update.
  • Loading branch information
5ouma committed Dec 6, 2024
1 parent 2f7c19a commit 2134ed4
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: 🍎 Install macOS tools via Homebrew
if: ${{ matrix.os == 'macOS-14' }}
run: brew install 5ouma/formula/mksei 5ouma/formula/mli blacktop/tap/lporg zackelia/formulae/bclm
run: brew install 5ouma/formula/mksei 5ouma/formula/mli blacktop/tap/lporg lslqtz/formulae/bclm_loop

- name: ⚙️ Run setup
env:
Expand Down
2 changes: 1 addition & 1 deletion config/vim/.config/vim/plugins.vim
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Jetpack 'tani/vim-jetpack'
Jetpack 'tpope/vim-commentary'
Jetpack 'tpope/vim-fugitive'
Jetpack 'tpope/vim-surround'
Jetpack 'vim-autoformat/vim-autoformat'
" Jetpack 'vim-autoformat/vim-autoformat'
Jetpack 'vim-scripts/vim-auto-save'
Jetpack 'vimpostor/vim-lumen'
silent! call jetpack#end()
Expand Down
4 changes: 2 additions & 2 deletions config/zsh/.config/zsh/.zprofile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Q pre block. Keep at the top of this file.
[[ -f "${HOME}/Library/Application Support/amazon-q/shell/zprofile.pre.zsh" ]] && builtin source "${HOME}/Library/Application Support/amazon-q/shell/zprofile.pre.zsh"
# [[ -f "${HOME}/Library/Application Support/amazon-q/shell/zprofile.pre.zsh" ]] && builtin source "${HOME}/Library/Application Support/amazon-q/shell/zprofile.pre.zsh"

# 1Password
export PATH="/Applications/1Password.app/Contents/MacOS:$PATH"
Expand Down Expand Up @@ -34,4 +34,4 @@ export LESSHISTFILE="$XDG_DATA_HOME/less/history"
mkdir -p "$(dirname "$LESSHISTFILE")"

# Q post block. Keep at the bottom of this file.
[[ -f "${HOME}/Library/Application Support/amazon-q/shell/zprofile.post.zsh" ]] && builtin source "${HOME}/Library/Application Support/amazon-q/shell/zprofile.post.zsh"
# [[ -f "${HOME}/Library/Application Support/amazon-q/shell/zprofile.post.zsh" ]] && builtin source "${HOME}/Library/Application Support/amazon-q/shell/zprofile.post.zsh"
4 changes: 2 additions & 2 deletions config/zsh/.config/zsh/.zshrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Q pre block. Keep at the top of this file.
[[ -f "${HOME}/Library/Application Support/amazon-q/shell/zshrc.pre.zsh" ]] && builtin source "${HOME}/Library/Application Support/amazon-q/shell/zshrc.pre.zsh"
# [[ -f "${HOME}/Library/Application Support/amazon-q/shell/zshrc.pre.zsh" ]] && builtin source "${HOME}/Library/Application Support/amazon-q/shell/zshrc.pre.zsh"

declare files=('tools' 'opt' 'alias')
for file in "${files[@]}"; do
Expand All @@ -8,4 +8,4 @@ done
unset file files

# Q post block. Keep at the bottom of this file.
[[ -f "${HOME}/Library/Application Support/amazon-q/shell/zshrc.post.zsh" ]] && builtin source "${HOME}/Library/Application Support/amazon-q/shell/zshrc.post.zsh" || :
# [[ -f "${HOME}/Library/Application Support/amazon-q/shell/zshrc.post.zsh" ]] && builtin source "${HOME}/Library/Application Support/amazon-q/shell/zshrc.post.zsh" || :
4 changes: 2 additions & 2 deletions data/Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ tap "5ouma/formula"
tap "blacktop/tap"
tap "homebrew/bundle"
tap "homebrew/services"
tap "lslqtz/formulae"
tap "pomdtr/tap"
tap "suzuki-shunsuke/pinact"
tap "zackelia/formulae"
brew "actionlint"
brew "atuin"
brew "bat"
Expand Down Expand Up @@ -56,9 +56,9 @@ brew "5ouma/formula/gh-dash"
brew "5ouma/formula/mksei"
brew "5ouma/formula/mli"
brew "blacktop/tap/lporg"
brew "lslqtz/formulae/bclm_loop"
brew "pomdtr/tap/tweety"
brew "suzuki-shunsuke/pinact/pinact"
brew "zackelia/formulae/bclm"
cask "1password"
cask "1password-cli"
cask "alt-tab"
Expand Down
5 changes: 5 additions & 0 deletions data/login_items.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
"Path": "/Applications/Email.app",
"Hidden": false
},
{
"Name": "FigmaAgent",
"Path": "/Users/5ouma/Library/Application Support/Figma/FigmaAgent.app",
"Hidden": false
},
{
"Name": "Fuwari",
"Path": "/Applications/Fuwari.app",
Expand Down
1 change: 1 addition & 0 deletions data/lporg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ apps:
- Screenshot
- Bluetooth File Exchange
- Audio MIDI Setup
- Feedback Assistant
- Screen Sharing
- Print Center
widgets:
Expand Down
6 changes: 2 additions & 4 deletions setup
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ EOM
#==================================================[ Apps ]==================================================#

installApps() {
(! isDarwin) && export HOMEBREW_BUNDLE_BREW_SKIP='newrelic-infra-agent 5ouma/formula/mksei 5ouma/formula/mli blacktop/tap/lporg zackelia/formulae/bclm'
(! isDarwin) && export HOMEBREW_BUNDLE_BREW_SKIP='newrelic-infra-agent 5ouma/formula/mksei 5ouma/formula/mli blacktop/tap/lporg lslqtz/formulae/bclm_loop'
(gum run "Satisfying Brewfile's dependencies..." -- brew bundle check --file="$data/Brewfile") && skip
brew update && brew bundle install --no-lock --file="$data/Brewfile"
if (isDarwin); then
Expand Down Expand Up @@ -320,9 +320,7 @@ restoreLoginItems() {
} && run 'restoreLoginItems' '## 📑 Restore Login Items' true

limitBatteryCharge() {
[[ "$(bclm read)" == 80 || $(bclm read) =~ 'driverNotFound' ]] && skip
sudo bclm write 80
sudo bclm persist
sudo bclm_loop persist
} && run 'limitBatteryCharge' '## 🔋 Limit battery charge' true

generateGitHooks() {
Expand Down

0 comments on commit 2134ed4

Please sign in to comment.