Skip to content

Commit

Permalink
UPDATE: append available battery types
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-onejun committed Feb 14, 2024
1 parent 596a79c commit 1e09b7a
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 1e09b7a

Please sign in to comment.