stupidly simple modular statusbar
Go to file
2022-08-26 16:20:23 +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
Makefile split Makefile install into 2 recipes 2022-08-26 15:54:29 +03:00
modules.sh for vol module it shows when is muted 2022-04-20 00:11:51 +03:00
README.md add new preview image 2022-08-26 16:20:23 +03:00

candybar

a stupidly simple modular statusbar

preview

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}"