bar script for stdin, fifo and xsetroot
- Shell 95.7%
- Makefile 4.3%
| bin | mod(bin): update scripts | |
| completions |
Feat(damblocks): add --xsetroot to shell completions
|
|
| etc | Mod(99-damblocks-battery.rules): user agnostic | |
| misc | Mod(README.md): Add repo avatar | |
| .gitignore |
New(gitignore): Ignore .nvimlog
|
|
| dam-damblocks.png | Mod(dam-damblocks.png): Update screenshot | |
| damblocks | Fix(damblocks): update_mutt() returns empty string on reboot | |
| LICENSE | Create LICENSE | |
| Makefile | Fix(Makefile): uninstalling bash completions | |
| README.md | Mod(README.md): usage for GNU make | |
| screenshot.png | image | |
| update.sh | Mod(update.sh): add damblocks-kill | |
damblocks
Plain text status line generator written in POSIX shell, fork of sbar.
Features
- individual update intervals and signals
- individual modules only updated when needed, instantly
- supporting stdin, fifo and xsetroot
- supporting Wayland, Xorg and TTY
- restart damblocks with reload
Modules
- time and date
- battery or AC power supply, bluetooth battery
- brightness level, microphone volume, speaker volume
- wifi signal, ethernet connection
- memory usage, cpu usage, cpu temperature, cpu fan speed
- disk usage on root and home partition
- pacman update count, tty login count, system uptime
- calcurse coming event count, newsboat unread count, maildir unread count
- weather report
- mpd music title
Dependency
| depends | ttf-nerd-fonts-symbols wireplumber brightnessctl coreutils sed grep awk curl cronie udev |
| suggests | dash bluez-utils isync newsboat calcurse mpc wob xob stow |
Every function that supports signaling depends on one or more of:
Specific dependencies are listed in the SIGNALING session in this script.
Installation
To mange all the scripts, udev rules and cronjobs:
# install
make install
# uninstall
make uninstall
Usage
- output to stdin by default
--fiforedirects to${XDG_RUNTIME_DIR}/damblocks.fifo--xsetrootsets the X root window title
river-classic with dam
Use dam-run.
kwm on river
kwm can read from stdin:
damblocks | kwm &
killall -q mpc
damblocks-mpdd
or a named pipe:
damblocks --fifo &
killall -q mpc
damblocks-mpdd
dwm
# .xinitrc
damblocks --xsetroot &
exec dwm
dwl with bar patch
damblocks | dwl
i3/sway bar
# .config/{i3,sway}/config
bar {
status_command damblocks
}
exec_always "killall -q mpc; damblocks-mpdd"
dvtm
damblocks --fifo &
dvtm -s ${XDG_RUNTIME_DIR}/damblocks.fifo