userguide: use bar blocks in the bar related examples
This commit is contained in:
parent
7498ddd12f
commit
09a28f603f
|
@ -812,7 +812,9 @@ status_command command
|
||||||
|
|
||||||
*Example*:
|
*Example*:
|
||||||
-------------------------------------------------
|
-------------------------------------------------
|
||||||
status_command i3status --config ~/.i3status.conf
|
bar {
|
||||||
|
status_command i3status --config ~/.i3status.conf
|
||||||
|
}
|
||||||
-------------------------------------------------
|
-------------------------------------------------
|
||||||
|
|
||||||
=== Display mode
|
=== Display mode
|
||||||
|
@ -834,7 +836,9 @@ mode <dock|hide>
|
||||||
|
|
||||||
*Example*:
|
*Example*:
|
||||||
----------------
|
----------------
|
||||||
mode hide
|
bar {
|
||||||
|
mode hide
|
||||||
|
}
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
=== Position
|
=== Position
|
||||||
|
@ -850,7 +854,9 @@ position <top|bottom>
|
||||||
|
|
||||||
*Example*:
|
*Example*:
|
||||||
---------------------
|
---------------------
|
||||||
position top
|
bar {
|
||||||
|
position top
|
||||||
|
}
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
=== Output(s)
|
=== Output(s)
|
||||||
|
@ -871,20 +877,20 @@ output <output>
|
||||||
-------------------------------
|
-------------------------------
|
||||||
# big monitor: everything
|
# big monitor: everything
|
||||||
bar {
|
bar {
|
||||||
# The display is connected either via HDMI or via DisplayPort
|
# The display is connected either via HDMI or via DisplayPort
|
||||||
output HDMI2
|
output HDMI2
|
||||||
output DP2
|
output DP2
|
||||||
status_command i3status
|
status_command i3status
|
||||||
}
|
}
|
||||||
|
|
||||||
# laptop monitor: bright colors and i3status with less modules.
|
# laptop monitor: bright colors and i3status with less modules.
|
||||||
bar {
|
bar {
|
||||||
output LVDS1
|
output LVDS1
|
||||||
status_command i3status --config ~/.i3status-small.conf
|
status_command i3status --config ~/.i3status-small.conf
|
||||||
colors {
|
colors {
|
||||||
background #000000
|
background #000000
|
||||||
statusline #ffffff
|
statusline #ffffff
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
-------------------------------
|
-------------------------------
|
||||||
|
|
||||||
|
@ -904,10 +910,14 @@ tray_output <none|output>
|
||||||
*Example*:
|
*Example*:
|
||||||
-------------------------
|
-------------------------
|
||||||
# disable system tray
|
# disable system tray
|
||||||
tray_output none
|
bar {
|
||||||
|
tray_output none
|
||||||
|
}
|
||||||
|
|
||||||
# show tray icons on the big monitor
|
# show tray icons on the big monitor
|
||||||
tray_output HDMI2
|
bar {
|
||||||
|
tray_output HDMI2
|
||||||
|
}
|
||||||
-------------------------
|
-------------------------
|
||||||
|
|
||||||
=== Font
|
=== Font
|
||||||
|
@ -922,7 +932,9 @@ font <font>
|
||||||
|
|
||||||
*Example*:
|
*Example*:
|
||||||
--------------------------------------------------------------
|
--------------------------------------------------------------
|
||||||
font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
|
bar {
|
||||||
|
font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
|
||||||
|
}
|
||||||
--------------------------------------------------------------
|
--------------------------------------------------------------
|
||||||
|
|
||||||
=== Workspace buttons
|
=== Workspace buttons
|
||||||
|
@ -939,7 +951,9 @@ workspace_buttons <yes|no>
|
||||||
|
|
||||||
*Example*:
|
*Example*:
|
||||||
--------------------
|
--------------------
|
||||||
workspace_buttons no
|
bar {
|
||||||
|
workspace_buttons no
|
||||||
|
}
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
=== Colors
|
=== Colors
|
||||||
|
@ -979,14 +993,16 @@ colors {
|
||||||
|
|
||||||
*Example*:
|
*Example*:
|
||||||
--------------------------------------
|
--------------------------------------
|
||||||
colors {
|
bar {
|
||||||
background #000000
|
colors {
|
||||||
statusline #ffffff
|
background #000000
|
||||||
|
statusline #ffffff
|
||||||
|
|
||||||
focused_workspace #ffffff #285577
|
focused_workspace #ffffff #285577
|
||||||
active_workspace #ffffff #333333
|
active_workspace #ffffff #333333
|
||||||
inactive_workspace #888888 #222222
|
inactive_workspace #888888 #222222
|
||||||
urgent_workspace #ffffff #900000
|
urgent_workspace #ffffff #900000
|
||||||
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------
|
--------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue