aslstatus 0.1.3 (multi-threaded slstatus)
- C 91.6%
- Makefile 6.8%
- sed 1.1%
- Shell 0.5%
| components | ||
| lib | ||
| man | ||
| smart-config | ||
| wiki | ||
| .gitignore | ||
| arg.h | ||
| aslstatus.c | ||
| aslstatus.h | ||
| build.mk | ||
| components_config.h | ||
| config.h | ||
| config.mk | ||
| deps.mk | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
| smart-config.mk | ||
| thread_helper.h | ||
| X.h | ||
aslstatus
Asynchronous, multithreaded status monitor.
Note: The original aslstatus repository (https://notabug.org/dm9pZCAq/aslstatus) is currently inaccessible. This is an unmaintained fork.
Dependencies
Required:
pthreadpkg-config(build-time)
Optional:
libasound-dev(for ALSA volume component)libxcb-dev+libxcb-xkb-dev(for X11 components)
Building
make
sudo make install
Build Options
AUDIO=ALSA- Audio backend:ALSA,PULSE, or empty [default: ALSA]X=0- Disable X11 support if not needed [default: 1]
Configuration
Edit config.h to customize components, intervals, and format strings.
Current configuration shows:
- Battery state and percentage
- CPU and RAM usage
- Disk usage (NVME and SATA)
- Date and time
- Weather (via custom script)
Usage with dwl
#!/bin/sh
STATUS_FIFO="/tmp/dwlstatus"
[ -p "$STATUS_FIFO" ] || mkfifo "$STATUS_FIFO"
aslstatus -s > "$STATUS_FIFO" &
exec dwl -s "autostart commands here" < "$STATUS_FIFO"
See components_config.h for component-specific settings.