mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-06-29 20:20:41 +00:00
Add lemonbar implementation for bspwm
This commit is contained in:
parent
a916b15d11
commit
2ef59a7720
7 changed files with 472 additions and 0 deletions
18
home/.config/lemonbar/applet-cmd
Executable file
18
home/.config/lemonbar/applet-cmd
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
PANEL_FIFO="$1"
|
||||
PREFIX="$2"
|
||||
DELAY="$3"
|
||||
CMD="$4"
|
||||
|
||||
exec 5>"$PANEL_FIFO"
|
||||
|
||||
main() {
|
||||
REPLY="$($SHELL -c "$CMD")"
|
||||
}
|
||||
|
||||
while :; do
|
||||
main
|
||||
echo "$PREFIX $REPLY" >&5
|
||||
sleep "$DELAY"
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue