-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblkmenu.1
More file actions
269 lines (260 loc) · 6.94 KB
/
blkmenu.1
File metadata and controls
269 lines (260 loc) · 6.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
'\" t
.\" Title: blkmenu
.\" Author: Giacomo Comitti
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
.\" Date: 14.09.2019
.\" Manual: BLKMENU
.\" Source: BLKMENU 0.3.1
.\" Language: English
.\"
.TH "BLKMENU" "1" "14\&.09\&.2019" "BLKMENU 0\&.3\&.1" "BLKMENU"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
blkmenu \- tiny curses wrapper around lsblk and udisksctl\&.
.SH "SYNOPSIS"
.sp
\fBblkmenu\fR [OPTIONS]
.SH "OPTIONS"
.PP
\fB\-h, \-\-help\fR
.RS 4
Print help information\&.
.RE
.PP
\fB\-V, \-\-version\fR
.RS 4
Print version information\&.
.RE
.PP
\fB\-\-border\fR
.RS 4
Show menu border\&.
.RE
.PP
\fB\-\-no\-border\fR
.RS 4
Don\(cqt show menu border\&. This is the default behavior\&.
.RE
.PP
\fB\-\-title\fR \fITITLE\fR
.RS 4
Set menu title\&. Shown only when the border is enabled\&. Default value: " blkmenu "
.RE
.PP
\fB\-\-no\-title\fR
.RS 4
Don\(cqt show menu title\&. Same as
\fB\-\-title\fR
""\&.
.RE
.PP
\fB\-\-columns\fR \fICOLUMNS\fR
.RS 4
Show only the given device properties\&. See
lsblk \-\-help
for a list of all available properties\&.
Default value: "name,>size,type,fstype,partlabel,label,rm,ro,mountpoint"
.RE
.PP
\fB\-\-header\fR
.RS 4
Show column headers\&. Enabled by default\&.
.RE
.PP
\fB\-\-no\-header\fR
.RS 4
Hide column headers\&.
.RE
.PP
\fB\-\-flat\fR
.RS 4
Don\(cqt show hierarchy relationships between devices\&.
.RE
.PP
\fB\-\-tree\fR [\fICOLUMN_NAME\fR]
.RS 4
The column displayed as hierarchy tree\&. Defaults to the first column\&.
.RE
.PP
\fB\-\-stretch\fR
.RS 4
Stretch columns to fill the whole window\&. This is the default behavior\&.
.RE
.PP
\fB\-\-no\-stretch\fR
.RS 4
Don\(cqt stretch columns to fill the whole window\&. Columns will be separated by the separator set with the
\fB\-\-sep\fR
option\&.
.RE
.PP
\fB\-\-sep\fR \fISEPARATOR\fR
.RS 4
String used to separate columns when
\fB\-\-no\-stretch\fR
is given\&.
Default value: " "
.RE
.PP
\fB\-\-open\fR \fICMD\fR
.RS 4
Command used to open a device mountpoint\&.
Default value: the value of
$SHELL
or "/bin/sh", in this order
.RE
.PP
\fB\-\-mount\-opts\fR \fIOPTS\fR
.RS 4
Default mount options\&.
Default value: "nosuid,noexec,noatime"
.RE
.PP
\fB\-\-vifm\fR [\fISERVER_NAME\fR]
.RS 4
Vifm server name\&. Bypass the
\fB\-\-open\fR
option and open the device mountpoint directly in the vifm instance named
\fISERVER_NAME\fR\&.
Default value: "vifm"
.RE
.PP
\fB\-f\fR \fIEXPR\fR [\fIEXPR\fR \&...]
.RS 4
Exclude devices that match any of the given expression rules\&.
See the
FILTER EXPRESSIONS
section\&.
.RE
.PP
\fB\-p\fR \fIEXPR\fR [\fIEXPR\fR \&...]
.RS 4
Exclude devices and all their descendants that match any of the given expression rules\&.
See the
FILTER EXPRESSIONS
section\&.
.RE
.PP
\fB\-a\fR \fIKEY:ACTION\fR [\fIKEY:ACTION\fR \&...]
.RS 4
Bindings as
\fIkey:action\fR
pairs\&. Arrow keys can be mapped by using the special strings "KEY_UP", "KEY_DOWN", "KEY_LEFT" and "KEY_RIGHT"\&.
See the
AVAILABLE ACTIONS
section\&.
.RE
.PP
\fB\-A\fR \fIKEY:ACTION\fR [\fIKEY:ACTION\fR \&...]
.RS 4
Bindings as
\fIkey:action\fR
pairs\&. Same as
\fB\-a\fR
but clears other bindings that map to the same action\&. Arrow keys can be mapped by using the special strings "KEY_UP", "KEY_DOWN", "KEY_LEFT" and "KEY_RIGHT"\&.
See the
AVAILABLE ACTIONS
section\&.
.RE
.SH "AVAILABLE ACTIONS"
.sp
\fBquit\fR Exit the program\&.
.sp
\fBmovedown\fR Move down a line\&.
.sp
\fBmoveup\fR Move up a line\&.
.sp
\fBmount\fR Mount the selected device\&.
.sp
\fBunmount\fR Unmount the selected device\&.
.sp
\fBlock\fR Lock selected device\&.
.sp
\fBunlock\fR Unlock selected device\&.
.sp
\fBeject\fR Eject selected device\&.
.sp
\fBopen\fR Open the selected device mountpoint with the given \fB\-\-open\fR command\&.
.sp
\fBinfo\fR Display all device properties\&.
.sp
\fBrefresh\fR Refresh the device tree\&.
.sp
\fBtoggle_filter\fR Toggle active filters (set with \fB\-f\fR or \fB\-p\fR)\&.
.sp
\fBhelp\fR Display help screen\&.
.SH "DEFAULT BINDINGS"
.sp
\fBq\fR quit
.sp
\fBj or KEY_DOWN\fR movedown
.sp
\fBk or KEY_UP\fR moveup
.sp
\fBm\fR mount
.sp
\fBu\fR unmount
.sp
\fBl\fR lock
.sp
\fBL\fR unlock
.sp
\fBe\fR eject
.sp
\fBo\fR open
.sp
\fBi\fR info
.sp
\fBr\fR refresh
.sp
\fBa\fR toggle_filter
.sp
\fB?\fR help
.SH "FILTER EXPRESSIONS"
.sp
Filters are expected to be python conditional expressions\&. To refer to device properties you can use the same identifiers you would use for the \fB\-\-columns\fR option\&. For a list of all available identifiers see \fIlsblk \-\-help\fR\&. The \fImatch\fR and \fIsearch\fR functions of the \fIre\fR python module are also available\&.
.SS "Example expressions:"
.sp
\fB"not mountpoint"\fR Display only mounted devices\&.
.sp
\fB"\fR\fB\fIsda\fR\fR\fB in path"\fR Display only devices whose path doesn\(cqt contain the string \fIsda\fR\&.
.sp
\fB"name == \fR\fB\fIsda\fR\fR\fB"\fR Hide devices whose name is \(cqsda\(cq\&.
.sp
\fB"name\&.startswith(\fR\fB\fIsda\fR\fR\fB)"\fR Hide devices whose name starts with \fIsda\fR\&.
.SH "RESOURCES"
.sp
\fBProject site:\fR https://github\&.com/gcmt/blkmenu
.SH "LICENSE"
.sp
Copyright \(co 2019 Giacomo Comitti\&.
.sp
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
.sp
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software\&.
.sp
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT\&. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE\&.
.SH "AUTHOR"
.PP
\fBGiacomo Comitti\fR
.RS 4
Author.
.RE