Skip to content
gnuunixchadPublic

About

bar script for stdin, fifo and xsetroot

Topics

Resources

Stars

9 stars

Watchers

1 watching

Forks

Latest commit

 

History

136 Commits

Folders and files

Repository files navigation

damblocks

Plain text status line generator written in POSIX shell, fork of sbar.

screenshot

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:

  1. scripts
  2. udev rules
  3. cronjobs

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
  • --fifo redirects to ${XDG_RUNTIME_DIR}/damblocks.fifo
  • --xsetroot sets 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

About

bar script for stdin, fifo and xsetroot

Topics

Resources

Stars

9 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages