History

add a man page

Sigrid Solveig Haflínudóttir committed 5 years ago

Commit e2f298b1 parent a5aaf3c2 files · +58 −0Browse files

Unified · Split

2 files
  1. bar.man +52 −0
  2. mkfile +6 −0
bar.man+52−0
@@ -0,0 +1,52 @@
1.TH BAR 1
2.SH NAME
3bar \- display a bar
4.SH SYNOPSIS
5.B bar
6[
7.I -s separator
8]
9[
10.I -p position
11]
12[
13.I -b
14]
15.SH DESCRIPTION
16.I bar
17displays a small window with current battery charge, date and time.
18Additional data may be displayed by writing lines of text to its
19standard input.
20.PP
21.I Bar
22Reacts to mouse clicks by writing the "clicked" portion of the text
23(enclosed by the separator) to standard output. This can be used to
24perform additional actions by a custom script.
25.PP
26By default,
27.I bar
28is placed at the bottom right corner of the screen. This can be
29changed by speicifying option
30.I -p
31with first letters of the required placement:
32.I l
33for "left",
34.I r
35for "right",
36.I t
37for "top" and
38.I b
39for "bottom". If neither left nor right is chosen, the window will be
40placed in either top or bottom center.
41.PP
42Separator can be changed with
43.I -s
44option.
45.PP
46.I Bar
47keeps itself as a top window. To make it stay at the bottom, use
48.I -b .
49.SH SOURCE
50https://git.sr.ht/~ft/bar
51.SH BUGS
52Impossible.
mkfile+6−0
@@ -1,8 +1,14 @@
1</$objtype/mkfile1</$objtype/mkfile
2 2
3BIN=/$objtype/bin3BIN=/$objtype/bin
4MAN=/sys/man/1
4TARG=bar5TARG=bar
5 6
6default:V: all7default:V: all
7 8
8</sys/src/cmd/mkmany9</sys/src/cmd/mkmany
10
11install:V: man
12
13man:V: $TARG.man
14 cp $TARG.man $MAN/$TARG

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