Here are my Python scripts and a library for BitBar.
Create a soft link from scripts
to enabled
ln -s scripts/XXX.py enabled/XXX.??m.py
or just copy it there.
The libs/bitbar.py
automates the generation of output.
Simply create a BitBarMessagePack
and append()
any message to it, attributes like color, font or href is attached as a dict
.
Further examples refer to published scripts.
#!/bin/bash
echo "One"
echo "Two"
echo "Three"
echo "---"
echo "Four"
echo "Five"
echo "Six"
equals
pkg = BitBarMessagePack("One\nTwo\nThree")
echo "---"
pkg.append("Four")
pkg.append(Five")
pkg.append("Six")
List Slurm queue on a HPC.
user = "USER"
server = "example.com"
prefix = ""
Data from NYCHealth-ncov.
数据来源丁香园。