Skip to content

chazeon/my-bitbar-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My BitBar Scripts

Here are my Python scripts and a library for BitBar.

Usage

Create a soft link from scripts to enabled

ln -s scripts/XXX.py enabled/XXX.??m.py

or just copy it there.

The Library

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.

Examples

Further examples refer to published scripts.

Multi-line plugin with extra data

#!/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")

Scripts

List Slurm queue on a HPC.

Requires

fabric

Edit

user = "USER"
server = "example.com"
prefix = ""

Data from NYCHealth-ncov.

数据来源丁香园