summaryrefslogtreecommitdiff
path: root/wm/somebar/somebar.1
diff options
context:
space:
mode:
authorstkhan <personal@slickd.xyz>2023-03-31 19:42:29 -0500
committerstkhan <personal@slickd.xyz>2023-03-31 19:42:29 -0500
commit0e71af11a27631e45c0160842e4498507420eff0 (patch)
tree4eed4eba5b0273f26bc55243cce36a2670ac0fef /wm/somebar/somebar.1
parent07afc07ffff324f3a355f2437bd643b616fe0af4 (diff)
bar and blocks
Diffstat (limited to 'wm/somebar/somebar.1')
-rw-r--r--wm/somebar/somebar.155
1 files changed, 55 insertions, 0 deletions
diff --git a/wm/somebar/somebar.1 b/wm/somebar/somebar.1
new file mode 100644
index 0000000..d822770
--- /dev/null
+++ b/wm/somebar/somebar.1
@@ -0,0 +1,55 @@
+.TH somebar 1 somebar\-1.0
+.SH NAME
+somebar \- dwm-like bar for dwl
+.SH SYNOPSIS
+.B somebar
+.RB [ \-h ]
+.RB [ \-v ]
+.RB [ \-s
+.IR path ]
+.RB [ \-c
+.IR command
+arguments... ]
+.SH DESCRIPTION
+somebar is a status bar for dwl, visually and functionally resembling the
+dwm bar.
+.SH USAGE
+You must start somebar using dwl's `-s` flag, e.g. `dwl -s somebar`.
+
+Somebar can be controlled by writing to $XDG_RUNTIME_DIR/somebar-0, or the path
+defined by the `-s` argument. The following commands are supported:
+.TP
+.B status TEXT
+Updates the status bar
+.TP
+.B hide MONITOR
+Hides somebar on the specified monitor
+.TP
+.B show MONITOR
+Shows somebar on the specified monitor
+.TP
+.B toggle MONITOR
+Toggles somebar on the specified monitor
+.P
+MONITOR is an zxdg_output_v1 name, which can be determined e.g. using `weston-info`.
+Additionally, MONITOR can be `all` (all monitors) or `selected` (the monitor with focus).
+
+Commands can be sent either by writing to the file name above, or equivalently by calling
+somebar with the `-c` argument. For example: `somebar -c toggle all`. This is recommended
+for shell scripts, as there is no race-free way to write to a file only if it exists.
+.SH OPTIONS
+.TP
+.B \-h
+Displays a short help text and exits
+.TP
+.B \-v
+Displays version information and exits
+.TP
+.B \-s
+Sets the path to the somebar control FIFO. The default value is
+$XDG_RUNTIME_DIR/somebar-0
+.TP
+.B \-c
+Sends a command to the control FIFO. See the USAGE section.
+.SH BUGS
+Send bug reports to ~raphi/public-inbox@lists.sr.ht