Commit Graph

4 Commits

Author SHA1 Message Date
Narvin Singh
b79e5bbcd0 Refactor: Change from using xprop to xsetroot 2020-12-25 21:22:42 -05:00
Narvin Singh
3ee3574351 Fix: CPU usage using %cpu
Use %cpu format in ps and drop the percent sign from the output since
the numbers don't usually add up to 100.
2020-12-24 11:34:53 -05:00
Narvin Singh
fc8f655bb7 Fix: Memory usage using raw numbers
Use free without -h to get raw numbers to report correct memory usage,
otherwise when the free memory is a lower order of magnitude than the
total memory, e.g., the free memory is in MiB and the total memory
is in GiB, then the human-readable free memory number will be too
large compared to the total memory number.
2020-12-24 10:46:11 -05:00
Narvin Singh
deca8326c1 Feat: status-bar
Each panel of the status bar can be turned on or off and configured
with an icon or no icon.

- Loops every 2 seconds
- Reports on:
  - CPU usage
  - Memory usage
  - Backlight brightness
  - Volume (requires amixer from alsa-utils)
    - Icon changes when volume is below 50%, at or above 50%, or muted
  - Battery percentage for each batter
    - Icon changes from batter to plug when on AC power
  - Date and time
2020-12-23 23:48:59 -05:00