My build of dam
dam is a itsy-bitsy dwm-esque bar for river.
For changes I've made, check patches
To use a status-bar, you can pass in status text via stdin:
# Start in river with damblocks, a line generator with signaling support I wrote
# https://codeberg.org/unixchad/damblocks
# https://github.com/gnuunixchad/damblocks
riverctl spawn "${HOME}/.local/bin/dam-run"
bar_start() {
${HOME}/.local/bin/damblocks | dam
}
bar_restart() {
killall dam
pkill -f damblocks
bar_start
}
! pgrep 'dam' > /dev/null 2>&1 || ! pgrep -f 'damblocks' > /dev/null 2>&1 && bar_restart
To build dam first ensure that you have the following dependencies:
- wayland
- wayland-protocols
- fcft
- pixman
- pkg-config
Afterwards, run:
make
make install
Run dam
.
To hide the current selected output's monitor, the USR1
signal can be
sent to do so.