Feat: Example to update all daemons

This commit is contained in:
Narvin Singh 2021-10-26 09:18:04 -04:00
parent 8d02ac14c9
commit fe52291eda

View File

@ -67,8 +67,8 @@ Then schedule the CPU and memory usage to be updated every 5 seconds.
avds 'cpu mem' 5000 true & avds 'cpu mem' 5000 true &
``` ```
Finally, you can add these commmands to your volume and brightness keybindings You can add these commmands to your volume and brightness keybindings to
to update the status when those keys are pressed. Note that these jobs don't update the status when those keys are pressed. Note that these jobs don't
need to be backgrounded since they run immediately and exit. need to be backgrounded since they run immediately and exit.
```Shell ```Shell
@ -76,6 +76,15 @@ avds vol-amixer
avds bl avds bl
``` ```
In case you have multiple daemons running, e.g., in different login sessions,
you can update them all simultaneously. This would have all running daemons
update the volume and backlight sections of their statuses at once.
``Shell
avds '>>* vol-amixer'
avds '>>* bl'
```
You can also bind keys to commands like those in the `cmd` directory to You can also bind keys to commands like those in the `cmd` directory to
perform actions and also update the status bar. For instance, you can bind perform actions and also update the status bar. For instance, you can bind
keys to these commands to control the backlight and volume while also updating keys to these commands to control the backlight and volume while also updating