https://github.com/xandkar/pista-feeds-x
Experimental data-feed processes for use with pista.
https://github.com/xandkar/pista-feeds-x
Last synced: 7 months ago
JSON representation
Experimental data-feed processes for use with pista.
- Host: GitHub
- URL: https://github.com/xandkar/pista-feeds-x
- Owner: xandkar
- License: bsd-3-clause
- Created: 2020-04-07T14:05:11.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-28T15:46:07.000Z (over 2 years ago)
- Last Synced: 2024-10-19T03:06:45.282Z (about 1 year ago)
- Language: Rust
- Homepage:
- Size: 278 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
example data feed processes for use with [pista](https://github.com/xandkar/pista)
===============================================================================
[](https://travis-ci.org/xandkar/pista-sensors)
Example configurations
----------------------
- [direct.sh](examples/direct.sh): basic setup, can be forked from `.xinitrc`
- [via-tmux.sh](examples/via-tmux.sh): init-like setup with tmux, can be
conveniently (re)started at any time, independently of `.xinitrc`Dependencies
------------- [`fswatch`](https://github.com/emcrisostomo/fswatch) for `pista-feed-backlight`
- OpenBSD `netcat` for `pista-feed-mpd.sh`
- `jq` for multiple things
- `curl` for multiple things
- `hxpipe` for `pista-feed-weather`
- `iwconfig` for `pista-feed-wifi`Notes
-----### Volume
#### How to switch from intervaled polling to reactive updates?
$ pactl subscribe | awk '/^Event .+ on sink .+$/'
Event 'change' on sink #0
Event 'change' on sink #0
Event 'change' on sink #0
^CGot SIGINT, exiting.seems to do the main trick, but still requires to trigger another call to check
the volume value. Is there any event on the system that carries this value?#### TODO study how they do it:
- https://git.alsa-project.org/?p=alsa-utils.git;a=blob;f=alsactl/monitor.c;hb=HEAD
- https://github.com/illegalprime/alsa-monitor-node