aboutsummaryrefslogtreecommitdiffstats
path: root/sway/sway-bar.5.txt
diff options
context:
space:
mode:
authorLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-03-17 15:35:43 +0100
committerLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-03-17 15:41:24 +0100
commitdb7697b830e50cffb6fb9bf6a2acfccfda81221e (patch)
tree84ec89d45327609dbd2985c78d0a65d4095da8cd /sway/sway-bar.5.txt
parentMerge pull request #512 from mikkeloscar/bg-panel-render (diff)
downloadsway-db7697b830e50cffb6fb9bf6a2acfccfda81221e.tar.gz
sway-db7697b830e50cffb6fb9bf6a2acfccfda81221e.tar.zst
sway-db7697b830e50cffb6fb9bf6a2acfccfda81221e.zip
Document swaybar commands
Documents most of the bar commands in sway-bar(5) manpage. The following command has not been document because they haven't been fully implemented yet: * mode * hidden_state * modifier * tray_output * tray_padding Close #375
Diffstat (limited to 'sway/sway-bar.5.txt')
-rw-r--r--sway/sway-bar.5.txt112
1 files changed, 112 insertions, 0 deletions
diff --git a/sway/sway-bar.5.txt b/sway/sway-bar.5.txt
new file mode 100644
index 00000000..c23519a4
--- /dev/null
+++ b/sway/sway-bar.5.txt
@@ -0,0 +1,112 @@
1/////
2vim:set ts=4 sw=4 tw=82 noet:
3/////
4sway-bar (5)
5============
6
7Name
8----
9sway-bar - bar configuration file and commands
10
11Description
12-----------
13
14Sway allows for configuration of swaybar within the sway configuation file.
15Swaybar commands must be used inside a _bar { }_ block in the config.
16
17
18Commands
19--------
20
21**status_command** <status command>::
22 Executes the bar _status command_ with _sh -c_.
23
24**id** <bar_id>::
25 Sets the ID of the bar.
26
27**position** <top|bottom|left|right>::
28 Sets position of the bar. Default is _bottom_.
29
30**output** <output>::
31 Restrict the bar to a certain output, can be specified multiple times. If the
32 output command is omitted, the bar will be displayed on all outputs.
33
34**swaybar_command** <command>::
35 Executes custom bar command, default is _swaybar_.
36
37**font** <font>::
38 Specifies the font to be used in the bar.
39
40**separator_symbol** <symbol>::
41 Specifies the separator symbol to separate blocks on the bar.
42
43**workspace_buttons** <yes|no>::
44 Enables or disables workspace buttons on the bar. Default is to enable
45 buttons.
46
47**strip_workspace_numbers** <yes|no>::
48 If set to _yes_, then workspace numbers will be omitted from the workspace
49 button and only the custom name will be shown.
50
51**binding_mode_indicator** <yes|no>::
52 Enable or disable binding mode indicator. It's enabled by default.
53
54**height** <height>::
55 Sets the height of the bar. Default height will match the font size.
56
57Colors
58------
59
60Colors are defined within a _colors { }_ block inside a _bar { }_ block. Colors
61must be defined in hex. E.g. _#fff000_ or _#fff000ff_ when including the alpha
62channel.
63
64**background** <color>::
65 Background color of the bar.
66
67**statusline** <color>::
68 Text color to be used for the statusline.
69
70**separator** <color>::
71 Text color to be used for the separator.
72
73**focused_background** <color>::
74 Background color of the bar on the currently focused monitor output. If not
75 used, the color will be taken from _background_.
76
77**focused_statusline** <color>::
78 Text color to be used for the statusline on the currently focused monitor
79 output. If not used, the color will be taken from _statusline_.
80
81**focused_separator** <color>::
82 Text color to be used for the separator on the currently focused monitor
83 output. If not used, the color will be taken from _separator_.
84
85**focused_workspace** <border> <background> <text>::
86 Border, background and text color for a workspace button when the workspace
87 has focus.
88
89**active_workspace** <border> <background> <text>::
90 Border, background and text color for a workspace button when the workspace is
91 active (visible) on some output, but the focus is on another one. You can only
92 tell this apart from the focused workspace when you are using multiple
93 monitors.
94
95**inactive_workspace** <border> <background> <text>::
96 Border, background and text color for a workspace button when the workspace
97 does not have focus and is not active (visible) on any output. This will be
98 the case for most workspaces.
99
100**urgent_workspace** <border> <background> <text>::
101 Border, background and text color for a workspace button when the workspace
102 contains a window with the urgency hint set.
103
104**binding_mode** <border> <background> <text>::
105 Border, background and text color for the binding mode indicator. If not used,
106 the colors will be taken from _urgent_workspace_.
107
108
109See Also
110--------
111
112**sway**(5) **sway-input**(5)