Skip to content

Commit

Permalink
Merge pull request #27 from dev-onejun/master
Browse files Browse the repository at this point in the history
UPDATE: append available battery types
  • Loading branch information
lambdalisue committed Feb 14, 2024
2 parents 596a79c + 1e09b7a commit 9ffd2bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/battery/backend/linux.vim
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
" Ref: https://github.com/lambdalisue/battery.vim/issues/7
let s:bat_dirs = '/sys/class/power_supply/{CMD*,BAT*,battery}'
let s:bat_dirs = '/sys/class/power_supply/{CMD*,BAT*,CMB*,battery}'
let s:bat_status = get(glob(s:bat_dirs . '/status', 0, 1), 0, '')
let s:bat_capacity = get(glob(s:bat_dirs . '/capacity', 0, 1), 0, '')

Expand Down

0 comments on commit 9ffd2bd

Please sign in to comment.