Commit Graph

13 Commits

Author SHA1 Message Date
Narvin Singh
08dc3a58d3 Feat: CPU, memory, backlight and volume modules 2020-12-28 14:03:50 -05:00
Narvin Singh
01ee5fba93 Feat: Default suffix is percent sign
By making the percent sign part of the suffix, it can be changed or
entirely omitted by changing the suffix.
2020-12-28 13:58:09 -05:00
Narvin Singh
2355282d88 Fix: Change module function names to be unique
The code for each module is wrapped in a function so the module
can be parameterized, and so its variables can be scoped to the
function. However, the function names must be unique, otherwise when
the modules are sourced, functions will overwrite functions with the
same name in previously sourced modules.
2020-12-28 11:48:33 -05:00
Narvin Singh
d05a68932b Feat: Battery module 2020-12-27 22:14:21 -05:00
Narvin Singh
1e331865af Feat: Date/time module 2020-12-27 22:13:52 -05:00
Narvin Singh
da7febb8f9 Chore: Add xrsbd and xrsbs level 2 headings 2020-12-27 14:32:18 -05:00
Narvin Singh
186fce8d9f Chore: Update README to describe xrsb 2020-12-27 14:25:41 -05:00
Narvin Singh
3ca912c80c Feat: Scheduler
The project name is changing from status-bar to xrsb (for X root
window status bar), so the scheduler is called xrsbs.

The scheduler sends the SIGUSR1 signal to a daemon that is
responsible for maintaining and updating the status (X root window
name property). The daemon will determine which actions to perform
based on the files present in the action directory and remove the files
once the actions are performed, so the scheduler creates action files
just before sending the signal. The scheduler can send one signal to
perform multiple actions by creating multiple action files, and can
create the action file(s) and send the signal immediately,
after some delay, or repeatedly at some interval.
2020-12-27 13:31:56 -05:00
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
Narvin Singh
4227b4f854 Feat: README stub 2020-12-23 00:35:30 -05:00