Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
I
ion-plugins
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • redox-os
  • ion-plugins
  • Merge Requests
  • !6

Merged
Opened Sep 01, 2019 by Jakob Hellermann@dubi_steinkekContributor

implement battery plugin

  • Overview 5
  • Commits 1
  • Changes 2

WIP becase I need somebody on Linux to try this before merging. I'm on macOS and my raspberry pi just says No support for device type: power_supply when running acpi.

Also, is ion being used on windows and how would one get the battery info? In the zsh implementation of this there is no windows support at all.

A few things I noticed while implemented this:

  • AFAICT there is no round function for ions numbers so I had to do let x //= 1
  • // does not work in arithmetic expansions: echo $(( x//5 )) => expected number token, got Divide instead
Edited Sep 01, 2019 by Jakob Hellermann
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
Reference: redox-os/ion-plugins!6
Source branch: battery_plugin

Revert this merge request

This will create a new commit in order to revert the existing changes.

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.

Cherry-pick this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.