stupidly simple modular statusbar
Go to file
2022-04-20 00:11:51 +03:00
candybar.sh replace printf with echo 2022-04-08 12:39:55 +03:00
config.sh added module_mic_alsa 2022-04-15 15:16:33 +00:00
LICENSE Create LICENSE 2022-04-07 16:44:25 +03:00
modules.sh for vol module it shows when is muted 2022-04-20 00:11:51 +03:00
README.md Update README.md 2022-04-10 09:49:34 +00:00

candybar

a stupidly simple modular statusbar

example output:

MPD: Studio Pixel - Gravity | Up: 18h 45m | RAM: 1.1G/15G | User: jornmann@cowfield | Vol: 69% | Kernel: Linux 5.17.1-gentoo-r1 | Load Avg.: 0.01, 0.05, 0.01 | Weather: +2°C | Date: Fri 2022-04-08 12:46

usage

candybar only outputs the text that should be shown on the bar, which makes it useable on different applications.

usage with dwm

add the following to your ~/.xinitrc:

while true; do
	xsetroot -name "$(candybar)"
	sleep 2
done &

usage with tmux

add the following to your ~/.tmux.conf:

set -g status-interval 2
set -g status-right-length 100
set -g status-right "#(candybar)"

usage with zsh

add the following to your ~/.zshrc:

precmd() {
	psvar[1]="$(candybar)"
}
export CSI=$'\e'"["
export PROMPT="${CSI}s${CSI}1;$((LINES-1))r${CSI}$LINES;1f%S%1v%s${CSI}K${CSI}u${PROMPT}"