Sigrid Solveig Haflínudóttirupdate the manpagea45b2a44 years agoHistory
89 lines · 1.5 KB · Text
RawDownload
.TH BAR 1.SH NAMEbar \- display a bar.SH SYNOPSIS.B bar[.I -b][.I -d dateformat][.I -p position][.I -s separator].SH DESCRIPTION.I bardisplays a small window with current battery charge, date and time.Additional data may be displayed by writing lines of text to itsstandard input..PP.I Barreacts to mouse clicks by writing the "clicked" portion of the text(enclosed by the separator) to standard output.  This can be used toperform additional actions by a custom script. See.I Examplessection..PPBy default,.I baris placed at the bottom right corner of the screen.  This can bechanged by speicifying option.I -pwith first letters of the required placement:.I lfor "left",.I rfor "right",.I tfor "top" and.I bfor "bottom".  If neither left nor right is chosen, the window will beplaced in either top or bottom center..PP.I Barkeeps itself as a top window. To make it stay at the bottom, use.I -b ..PPSeparator can be changed with.I -soption..PPDate and time format may be set using.I -doption, see.I tmdate(2)..SH EXAMPLESAn example of how.I barcan be used along with.I riowto control.I zukeplayback via mouse clicks:.PP.EX#!/bin/rcrfork nefn mybar {	sed -u 's/$/ │ ⏮ │ ⏯ │ ⏭/g' \\	| bar \\	| awk -v 'c=plumb -d audio ''key ' '		/⏮/{system(c"<''")}		/⏯/{system(c"p''")}		/⏭/{system(c">''")}		' >[2]/dev/null}riow </dev/kbdtap >/dev/kbdtap |[3] mybar.EE.PPThe script is used instead of executing.I bardirectly..SH SOURCEhttps://git.sr.ht/~ft/bar.SH BUGSImpossible.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t