Browse Source

Fixed heading levels

Michał Góral 3 weeks ago
parent
commit
b58ad6a479
2 changed files with 15 additions and 11 deletions
  1. 4
    0
      archetypes/post.md
  2. 11
    11
      content/post/xsession.md

+ 4
- 0
archetypes/post.md View File

@@ -7,3 +7,7 @@ showfull: false
7 7
 ---
8 8
 
9 9
 <!--more-->
10
+
11
+## First heading
12
+
13
+text

+ 11
- 11
content/post/xsession.md View File

@@ -18,7 +18,7 @@ irrelevant" for other Debian releases.
18 18
 
19 19
 <!--more-->
20 20
 
21
-# Xsession.d
21
+## Xsession.d
22 22
 
23 23
 Xsession is itself quite straightforward. It first sets some environment
24 24
 variables, does a little bookkeeping and then it sources all scripts from
@@ -44,7 +44,7 @@ installations with X capabilities. These are the important ones, because they
44 44
 define common environment variables and functions which are re-used in other
45 45
 scripts.
46 46
 
47
-## `20x11-common_process-args`
47
+### `20x11-common_process-args`
48 48
 
49 49
 This is where `$STARTUP` variable is initialized.  It's quite important,
50 50
 because it names a script or program which will be executed later as a
@@ -65,7 +65,7 @@ differently:
65 65
 This script also defines `has_option` function, used for parsing of
66 66
 _Xsession.options_ file.
67 67
 
68
-## `30x11-common_xresources`, `40x11-common_xsessionrc`
68
+### `30x11-common_xresources`, `40x11-common_xsessionrc`
69 69
 
70 70
 These 2 scripts are sourced right after Xsession arguments are processed.
71 71
 
@@ -77,11 +77,11 @@ variables found there will be globally available for the whole X session from
77 77
 now on and commands will be executed (note that commands should typically be
78 78
 run in a background to not block execution of Xsession).
79 79
 
80
-## `35x11-common_xhost-local`
80
+### `35x11-common_xhost-local`
81 81
 
82 82
 This script simply uses _xhost_ to give access to X server to the local user.
83 83
 
84
-## `50x11-common_determine-startup`
84
+### `50x11-common_determine-startup`
85 85
 
86 86
 If Xsession wasn't passed any argument, or if passed argument is not
87 87
 executable, `$STARTUP` won't be set and `common_determine-setup` will run the
@@ -93,7 +93,7 @@ default discovery mechanism of what should be run instead:
93 93
 3. default system-wide window manager: _x-window-manager_
94 94
 4. default system-wide terminal emulator: _x-terminal-emulator_
95 95
 
96
-## `90x11-common_ssh-agent`
96
+### `90x11-common_ssh-agent`
97 97
 
98 98
 This one often confuses a lot of people.  Historically, there always was a
99 99
 problem with finding a good and convienient way to run SSH Agent and even today
@@ -104,7 +104,7 @@ Anyway, if no previous ssh-agent appears to be running (e.g. gpg-agent with
104 104
 enabled support of OpenSSH Agent Protocol), `$STARTUP` will be wrapped with
105 105
 ssh-agent call and executed as agent's subprocess.
106 106
 
107
-## `99x11-common_start`
107
+### `99x11-common_start`
108 108
 
109 109
 Finally we execute our session manager, as `common_start` is typically the last
110 110
 file sourced by Xsession.  It's quite straightforward:
@@ -117,7 +117,7 @@ It replaces (via `exec`) the current shell with command stored in `$STARTUP`
117 117
 variable.  This way executed command inherits the whole environment set up by
118 118
 all previous scripts.
119 119
 
120
-# When Xsession will be run
120
+## When Xsession will be run
121 121
 
122 122
 Typically Xsession is sourced (not executed) whenever _/etc/X11/xinit/xinitrc_
123 123
 is executed.  This is handled by startx script (but not xinit, which is
@@ -133,7 +133,7 @@ This is the source of a lot of headaches about files not being read (or being
133 133
 read unintentionally) during startup. The rule of thumb is: configure your
134 134
 system to ensure Xsession is executed and you're back on a well-known waters.
135 135
 
136
-## Lightdm
136
+### Lightdm
137 137
 
138 138
 Lightdm allows configuring it to use a _session-wrapper_, which is a script to
139 139
 run session with. This is pre-configured to be Xsession in
@@ -150,7 +150,7 @@ which has _Exec=default_. It will be detected by
150 150
 [`20x11-common_process-args`][#20x11] and will result in running a fallback
151 151
 mechanism described in [`50x11-common-determine-startup`][#50x11].
152 152
 
153
-## SDDM
153
+### SDDM
154 154
 
155 155
 SDDM is a little more sane than Lightdm. It doesn't have hidden settings or use
156 156
 any obscure features. For custom sessions it executes _/etc/sddm/Xsession_,
@@ -160,7 +160,7 @@ SDDM tries to source .profile, .bash_profile, .zprofile etc. It's a little
160 160
 unusual, because these files are usually boud to terminal sessions and
161 161
 graphical sessions usually source .xprofile.
162 162
 
163
-## GDM3
163
+### GDM3
164 164
 
165 165
 GDM3 runs a bunch of scripts stored in different directories in _/etc/gdm3_,
166 166
 but ultimately one of them is _/etc/gdm3/Xsession_. Yep, it has a custom

Loading…
Cancel
Save