shithub: rc

ref: f3afdf563f784c0a5703496f48c1a72dff4617f4
dir: /wm/

View raw version
#!/bin/rc
rfork ne

# Customized Bar - thanks to noam for the script idea.
# sed command replaces the virtual desktop numbers with labels
fn custombar {
	sed -u \
		-e 's/^1/ one /' -e 's/^2/ two /' -e 's/^3/ three /' \
		-e 's/^4/ four /' -e 's/^5/ five /' -e 's/^6/ six /' \
		-e 's/^7/ seven /' -e 's/^8/ eight /' -e 's/^9/ nine /' \
		-e 's/^0/ ten /' \
	| bar -b -d 'H:mm a WW M/D/Y'
}

# Launches bar with riow and custom scripting piped to it.
# -s makes windows sticky if you add the label of it.
</dev/kbdtap riow -s 9weather >/dev/kbdtap |[3] custombar