diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-08-23 20:52:00 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-08-23 20:52:00 -0400 |
commit | 0fe4c30e2085424c0714c7b1e49155df7bf720c7 (patch) | |
tree | ab700bb724d304c95d8863fb5e417cb294c8c566 | |
download | sway-0fe4c30e2085424c0714c7b1e49155df7bf720c7.tar.gz sway-0fe4c30e2085424c0714c7b1e49155df7bf720c7.tar.zst sway-0fe4c30e2085424c0714c7b1e49155df7bf720c7.zip |
Initial website commit
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | _layouts/master.html | 17 | ||||
-rw-r--r-- | css/master.scss | 11 | ||||
-rw-r--r-- | index.html | 49 | ||||
-rw-r--r-- | sway-1.html | 169 | ||||
-rw-r--r-- | sway-5.html | 246 |
6 files changed, 493 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..57510a2b --- /dev/null +++ b/.gitignore | |||
@@ -0,0 +1 @@ | |||
_site/ | |||
diff --git a/_layouts/master.html b/_layouts/master.html new file mode 100644 index 00000000..f7216d41 --- /dev/null +++ b/_layouts/master.html | |||
@@ -0,0 +1,17 @@ | |||
1 | <!doctype html> | ||
2 | <html> | ||
3 | <head> | ||
4 | <meta charset="utf-8" /> | ||
5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
6 | <link rel="stylesheet" href="https://cdn.rawgit.com/twbs/bootstrap/v4-dev/dist/css/bootstrap.css" /> | ||
7 | <link rel="stylesheet" href="/css/master.css" /> | ||
8 | <title>{{ page.title }}</title> | ||
9 | </head> | ||
10 | <body> | ||
11 | <div class="container"> | ||
12 | {{ content }} | ||
13 | </div> | ||
14 | <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> | ||
15 | <script src="https://cdn.rawgit.com/twbs/bootstrap/v4-dev/dist/js/bootstrap.js"></script> | ||
16 | </body> | ||
17 | </html> | ||
diff --git a/css/master.scss b/css/master.scss new file mode 100644 index 00000000..d5ef29af --- /dev/null +++ b/css/master.scss | |||
@@ -0,0 +1,11 @@ | |||
1 | --- | ||
2 | --- | ||
3 | |||
4 | body { | ||
5 | background-color: #111; | ||
6 | color: #fff; | ||
7 | } | ||
8 | |||
9 | video { | ||
10 | max-width: 100%; | ||
11 | } | ||
diff --git a/index.html b/index.html new file mode 100644 index 00000000..6d2186c7 --- /dev/null +++ b/index.html | |||
@@ -0,0 +1,49 @@ | |||
1 | --- | ||
2 | title: Sway | ||
3 | layout: master | ||
4 | --- | ||
5 | |||
6 | <div class="row"> | ||
7 | <div class="col-md-4"> | ||
8 | <h1 class="text-center">Sway</h1> | ||
9 | <p> | ||
10 | Sway is a drop-in replacement for the <a href="http://i3wm.org/">i3 | ||
11 | window manager</a>, but for Wayland instead of X11. It will | ||
12 | work with your existing i3 configuration file, and adds a few extra | ||
13 | features on top of that. | ||
14 | </p> | ||
15 | <ul> | ||
16 | <li>i3 configuration compatability</li> | ||
17 | <li>i3 IPC compatability</li> | ||
18 | <li>Multi-head support</li> | ||
19 | <li>Airblader gaps support</li> | ||
20 | <li>Touchscreen input bindings</li> | ||
21 | </ul> | ||
22 | <p class="text-muted"> | ||
23 | sway is a work in progress. It is already suitable for everyday | ||
24 | use, but we have not yet met all of the goals set forth for the | ||
25 | project. | ||
26 | </p> | ||
27 | </div> | ||
28 | <div class="col-md-8"> | ||
29 | <video src="https://sr.ht/1Wku.webm" controls></video> | ||
30 | </div> | ||
31 | </div> | ||
32 | <div class="row text-center" style="margin-top: 50px;"> | ||
33 | <div class="col-md-3"> | ||
34 | Get the <a href="https://github.com/SirCmpwn/sway">source code</a> | ||
35 | </div> | ||
36 | <div class="col-md-3"> | ||
37 | Read the <a href="https://github.com/SirCmpwn/sway/wiki">FAQ</a> | ||
38 | </div> | ||
39 | <div class="col-md-3"> | ||
40 | Join the <a href="http://webchat.freenode.net/?channels=sway&uio=d4">IRC channel</a> | ||
41 | </div> | ||
42 | <div class="col-md-1"> </div> | ||
43 | <div class="col-md-1"> | ||
44 | <a href="/sway-1.html">sway (1)</a> | ||
45 | </div> | ||
46 | <div class="col-md-1"> | ||
47 | <a href="/sway-5.html">sway (5)</a> | ||
48 | </div> | ||
49 | </div> | ||
diff --git a/sway-1.html b/sway-1.html new file mode 100644 index 00000000..82a26a11 --- /dev/null +++ b/sway-1.html | |||
@@ -0,0 +1,169 @@ | |||
1 | <!-- Creator : groff version 1.22.3 --> | ||
2 | <!-- CreationDate: Sun Aug 23 20:47:38 2015 --> | ||
3 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | ||
4 | "http://www.w3.org/TR/html4/loose.dtd"> | ||
5 | <html> | ||
6 | <head> | ||
7 | <meta name="generator" content="groff -Thtml, see www.gnu.org"> | ||
8 | <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> | ||
9 | <meta name="Content-Style" content="text/css"> | ||
10 | <style type="text/css"> | ||
11 | p { margin-top: 0; margin-bottom: 0; vertical-align: top } | ||
12 | pre { margin-top: 0; margin-bottom: 0; vertical-align: top } | ||
13 | table { margin-top: 0; margin-bottom: 0; vertical-align: top } | ||
14 | h1 { text-align: center } | ||
15 | body { width: 500px; margin: 0 auto; background: #111; color: #fff; } | ||
16 | a { color: #0275D8; } | ||
17 | </style> | ||
18 | <title>SWAY</title> | ||
19 | |||
20 | </head> | ||
21 | <body> | ||
22 | |||
23 | <h1 align="center">SWAY</h1> | ||
24 | |||
25 | <a href="#NAME">NAME</a><br> | ||
26 | <a href="#SYNOPSIS">SYNOPSIS</a><br> | ||
27 | <a href="#OPTIONS">OPTIONS</a><br> | ||
28 | <a href="#DESCRIPTION">DESCRIPTION</a><br> | ||
29 | <a href="#COMMANDS">COMMANDS</a><br> | ||
30 | <a href="#CONFIGURATION">CONFIGURATION</a><br> | ||
31 | <a href="#AUTHORS">AUTHORS</a><br> | ||
32 | <a href="#SEE ALSO">SEE ALSO</a><br> | ||
33 | |||
34 | <hr> | ||
35 | |||
36 | |||
37 | <h2>NAME | ||
38 | <a name="NAME"></a> | ||
39 | </h2> | ||
40 | |||
41 | |||
42 | <p style="margin-left:11%; margin-top: 1em">sway − | ||
43 | SirCmpwn's Wayland window manager</p> | ||
44 | |||
45 | <h2>SYNOPSIS | ||
46 | <a name="SYNOPSIS"></a> | ||
47 | </h2> | ||
48 | |||
49 | |||
50 | <p style="margin-left:11%; margin-top: 1em"><i>sway</i> | ||
51 | [options] [command]</p> | ||
52 | |||
53 | <h2>OPTIONS | ||
54 | <a name="OPTIONS"></a> | ||
55 | </h2> | ||
56 | |||
57 | |||
58 | <p style="margin-left:11%; margin-top: 1em"><b>−c, | ||
59 | −−config</b> <config></p> | ||
60 | |||
61 | <p style="margin-left:17%;">Specifies a config file.</p> | ||
62 | |||
63 | <p style="margin-left:11%; margin-top: 1em"><b>−C, | ||
64 | −−validate</b></p> | ||
65 | |||
66 | <p style="margin-left:17%;">Check the validity of the | ||
67 | config file, then exit.</p> | ||
68 | |||
69 | <p style="margin-left:11%; margin-top: 1em"><b>−d, | ||
70 | −−debug</b></p> | ||
71 | |||
72 | <p style="margin-left:17%;">Enables full logging, including | ||
73 | debug information.</p> | ||
74 | |||
75 | <p style="margin-left:11%; margin-top: 1em"><b>−v, | ||
76 | −−version</b></p> | ||
77 | |||
78 | <p style="margin-left:17%;">Show the version number and | ||
79 | quit.</p> | ||
80 | |||
81 | <p style="margin-left:11%; margin-top: 1em"><b>−V, | ||
82 | −−verbose</b></p> | ||
83 | |||
84 | <p style="margin-left:17%;">Enables more verbose | ||
85 | logging.</p> | ||
86 | |||
87 | |||
88 | <p style="margin-left:11%; margin-top: 1em"><b>−−get−socketpath</b></p> | ||
89 | |||
90 | <p style="margin-left:17%;">Gets the IPC socket path and | ||
91 | prints it, then exits.</p> | ||
92 | |||
93 | <h2>DESCRIPTION | ||
94 | <a name="DESCRIPTION"></a> | ||
95 | </h2> | ||
96 | |||
97 | |||
98 | <p style="margin-left:11%; margin-top: 1em">sway was | ||
99 | created to fill the need of an i3−like window manager | ||
100 | for Wayland. The upstream i3 developers have no intention of | ||
101 | porting i3 to Wayland, and projects proposed by others ended | ||
102 | up as vaporware. Many thanks to the i3 folks for providing | ||
103 | such a great piece of software, so good that your users | ||
104 | would rather write an entirely new window manager from | ||
105 | scratch that behaved <i>exactly</i> like i3 rather than | ||
106 | switch to something else.</p> | ||
107 | |||
108 | <p style="margin-left:11%; margin-top: 1em">You may run | ||
109 | sway from an ongoing x11 session to run it within x. | ||
110 | Otherwise, you can run sway on a tty and it will use your | ||
111 | outputs directly.</p> | ||
112 | |||
113 | <p style="margin-left:11%; margin-top: 1em"><b>Important | ||
114 | note for nvidia users</b>: The proprietary nvidia driver | ||
115 | does <i>not</i> have support for Wayland as of | ||
116 | 2015−08−17. Use nouveau.</p> | ||
117 | |||
118 | <h2>COMMANDS | ||
119 | <a name="COMMANDS"></a> | ||
120 | </h2> | ||
121 | |||
122 | |||
123 | <p style="margin-left:11%; margin-top: 1em">If sway is | ||
124 | currently running, you may run <i>sway [command]</i> to send | ||
125 | <i>command</i> to the running instance of sway. The same | ||
126 | commands you would use in the config file are valid here | ||
127 | (see <b>sway</b>(5)). For compatability reasons, you may | ||
128 | also issue commands with <b>sway−msg</b>(1) or | ||
129 | <b>i3−msg</b>(1) (or even with <b>i3</b>(1), | ||
130 | probably).</p> | ||
131 | |||
132 | <h2>CONFIGURATION | ||
133 | <a name="CONFIGURATION"></a> | ||
134 | </h2> | ||
135 | |||
136 | |||
137 | <p style="margin-left:11%; margin-top: 1em">If | ||
138 | <i>−c</i> is not specified, sway will look in several | ||
139 | locations for your config file. The default one is provided | ||
140 | at /etc/sway/config. The suggested location for your config | ||
141 | file is ~/.config/sway/config. ~/.sway/config will also | ||
142 | work, and the rest of the usual XDG config locations are | ||
143 | supported. If no sway config is found, sway will attempt to | ||
144 | load an i3 config from all the config locations i3 supports. | ||
145 | If still nothing is found, you will receive an error.</p> | ||
146 | |||
147 | <p style="margin-left:11%; margin-top: 1em">For information | ||
148 | on the config file format, see <b>sway</b>(5).</p> | ||
149 | |||
150 | <h2>AUTHORS | ||
151 | <a name="AUTHORS"></a> | ||
152 | </h2> | ||
153 | |||
154 | |||
155 | <p style="margin-left:11%; margin-top: 1em">Maintained by | ||
156 | Drew DeVault <sir@cmpwn.com>, who is assisted by other | ||
157 | open source contributors. For more information about sway | ||
158 | development, see https://github.com/SirCmpwn/sway.</p> | ||
159 | |||
160 | <h2>SEE ALSO | ||
161 | <a name="SEE ALSO"></a> | ||
162 | </h2> | ||
163 | |||
164 | |||
165 | |||
166 | <p style="margin-left:11%; margin-top: 1em"><b>sway</b>(5)</p> | ||
167 | <hr> | ||
168 | </body> | ||
169 | </html> | ||
diff --git a/sway-5.html b/sway-5.html new file mode 100644 index 00000000..1f0590fb --- /dev/null +++ b/sway-5.html | |||
@@ -0,0 +1,246 @@ | |||
1 | <!-- Creator : groff version 1.22.3 --> | ||
2 | <!-- CreationDate: Sun Aug 23 20:49:58 2015 --> | ||
3 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | ||
4 | "http://www.w3.org/TR/html4/loose.dtd"> | ||
5 | <html> | ||
6 | <head> | ||
7 | <meta name="generator" content="groff -Thtml, see www.gnu.org"> | ||
8 | <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> | ||
9 | <meta name="Content-Style" content="text/css"> | ||
10 | <style type="text/css"> | ||
11 | p { margin-top: 0; margin-bottom: 0; vertical-align: top } | ||
12 | pre { margin-top: 0; margin-bottom: 0; vertical-align: top } | ||
13 | table { margin-top: 0; margin-bottom: 0; vertical-align: top } | ||
14 | h1 { text-align: center } | ||
15 | body { width: 500px; margin: 0 auto; background: #111; color: #fff; } | ||
16 | a { color: #0275D8; } | ||
17 | </style> | ||
18 | <title>SWAY</title> | ||
19 | |||
20 | </head> | ||
21 | <body> | ||
22 | |||
23 | <h1 align="center">SWAY</h1> | ||
24 | |||
25 | <a href="#NAME">NAME</a><br> | ||
26 | <a href="#DESCRIPTION">DESCRIPTION</a><br> | ||
27 | <a href="#COMMANDS">COMMANDS</a><br> | ||
28 | |||
29 | <hr> | ||
30 | |||
31 | |||
32 | <h2>NAME | ||
33 | <a name="NAME"></a> | ||
34 | </h2> | ||
35 | |||
36 | |||
37 | <p style="margin-left:11%; margin-top: 1em">sway − | ||
38 | configuration file and commands</p> | ||
39 | |||
40 | <h2>DESCRIPTION | ||
41 | <a name="DESCRIPTION"></a> | ||
42 | </h2> | ||
43 | |||
44 | |||
45 | <p style="margin-left:11%; margin-top: 1em">A sway | ||
46 | configuration file is a list of sway commands that are | ||
47 | exected by sway on startup. These commands usually consist | ||
48 | of setting your preferences and setting key bindings. An | ||
49 | example config is likely present in /etc/sway/config for you | ||
50 | to check out.</p> | ||
51 | |||
52 | <p style="margin-left:11%; margin-top: 1em">All of these | ||
53 | commands may be issued at runtime through | ||
54 | <b>sway−msg</b>(1).</p> | ||
55 | |||
56 | <h2>COMMANDS | ||
57 | <a name="COMMANDS"></a> | ||
58 | </h2> | ||
59 | |||
60 | |||
61 | <p style="margin-left:11%; margin-top: 1em"><b>bindsym</b> | ||
62 | <key combo> <command></p> | ||
63 | |||
64 | <p style="margin-left:17%;">Binds <i>key combo</i> to | ||
65 | execute <i>command</i> when pressed. You may use XKB key | ||
66 | names here (<b>xev</b>(1) is a good tool for discovering | ||
67 | them). An example bindsym command would be <i>bindsym | ||
68 | Mod1+Shift+f exec firefox</i>, which would execute Firefox | ||
69 | if the alt, shift, and F keys are pressed together. Any | ||
70 | valid sway command is eligible to be bound to a key | ||
71 | combo.</p> | ||
72 | |||
73 | <p style="margin-left:11%; margin-top: 1em"><b>exec</b> | ||
74 | <shell command></p> | ||
75 | |||
76 | <p style="margin-left:17%;">Executes <i>shell command</i> | ||
77 | with sh.</p> | ||
78 | |||
79 | |||
80 | <p style="margin-left:11%; margin-top: 1em"><b>exec_always</b> | ||
81 | <shell command></p> | ||
82 | |||
83 | <p style="margin-left:17%;">Like exec, but the shell | ||
84 | command will be executed <i>again</i> after <b>reload</b> or | ||
85 | <b>restart</b> is executed.</p> | ||
86 | |||
87 | |||
88 | <p style="margin-left:11%; margin-top: 1em"><b>exit</b></p> | ||
89 | |||
90 | <p style="margin-left:17%;">Exit sway and end your Wayland | ||
91 | session.</p> | ||
92 | |||
93 | |||
94 | <p style="margin-left:11%; margin-top: 1em"><b>floating</b> | ||
95 | toggle</p> | ||
96 | |||
97 | <p style="margin-left:17%;">Toggles the | ||
98 | "floating" status of the focused view.</p> | ||
99 | |||
100 | |||
101 | <p style="margin-left:11%; margin-top: 1em"><b>floating_modifier</b> | ||
102 | <modifier></p> | ||
103 | |||
104 | <p style="margin-left:17%;">When the <i>modifier</i> key is | ||
105 | held down, you may use left click to drag floating windows, | ||
106 | and right click to resize them. Unlike i3, this modifier may | ||
107 | also be used to resize and move windows that are tiled.</p> | ||
108 | |||
109 | <p style="margin-left:11%; margin-top: 1em"><b>focus</b> | ||
110 | <direction></p> | ||
111 | |||
112 | <p style="margin-left:17%;">Direction may be one of | ||
113 | <i>up</i>, <i>down</i>, <i>left</i>, <i>right</i>, or | ||
114 | <i>parent</i>. The directional focus commands will move the | ||
115 | focus in that direction. The parent focus command will | ||
116 | change the focus to the parent of the currently focused | ||
117 | container, which is useful, for example, to open a sibling | ||
118 | of the parent container, or to move the entire container | ||
119 | around.</p> | ||
120 | |||
121 | <p style="margin-left:11%; margin-top: 1em"><b>focus</b> | ||
122 | mode_toggle</p> | ||
123 | |||
124 | <p style="margin-left:17%;">Toggles focus between floating | ||
125 | view and tiled view.</p> | ||
126 | |||
127 | |||
128 | <p style="margin-left:11%; margin-top: 1em"><b>focus_follows_mouse</b> | ||
129 | <yes|no></p> | ||
130 | |||
131 | <p style="margin-left:17%;">If set to <i>yes</i>, the | ||
132 | currently focused view will change as you move your mouse | ||
133 | around the screen to the view that ends up underneath your | ||
134 | mouse.</p> | ||
135 | |||
136 | |||
137 | <p style="margin-left:11%; margin-top: 1em"><b>fullscreen</b></p> | ||
138 | |||
139 | <p style="margin-left:17%;">Toggles fullscreen status for | ||
140 | the focused view.</p> | ||
141 | |||
142 | <p style="margin-left:11%; margin-top: 1em"><b>gaps</b> | ||
143 | <amount></p> | ||
144 | |||
145 | <p style="margin-left:17%;">Adds <i>amount</i> pixels | ||
146 | between each view, and around each output.</p> | ||
147 | |||
148 | <p style="margin-left:11%; margin-top: 1em"><b>gaps</b> | ||
149 | <inner|outer> <amount></p> | ||
150 | |||
151 | <p style="margin-left:17%;">Adds <i>amount</i> pixels as an | ||
152 | <i>inner</i> or <i>outer</i> gap, where the former affects | ||
153 | spacing between views and the latter affects the space | ||
154 | around each output.</p> | ||
155 | |||
156 | |||
157 | <p style="margin-left:11%; margin-top: 1em"><b>kill</b></p> | ||
158 | |||
159 | <p style="margin-left:17%;">Closes the currently focused | ||
160 | view.</p> | ||
161 | |||
162 | <p style="margin-left:11%; margin-top: 1em"><b>layout</b> | ||
163 | <mode></p> | ||
164 | |||
165 | <p style="margin-left:17%;">Sets the layout mode of the | ||
166 | focused container. <i>mode</i> can be one of <i>splith</i>, | ||
167 | <i>splitv</i>, or <i>toggle split</i>.</p> | ||
168 | |||
169 | <p style="margin-left:11%; margin-top: 1em"><b>move</b> | ||
170 | <left|right|up|down></p> | ||
171 | |||
172 | <p style="margin-left:17%;">Moves the focused container | ||
173 | <i>left</i>, <i>right</i>, <i>up</i>, or <i>down</i>.</p> | ||
174 | |||
175 | <p style="margin-left:11%; margin-top: 1em"><b>output</b> | ||
176 | <name> <resolution|res WIDTHxHEIGHT> | ||
177 | <position|pos X,Y></p> | ||
178 | |||
179 | <p style="margin-left:17%;">Configures the specified | ||
180 | output. It will use the given resolution and be arranged at | ||
181 | the given position in the layout tree. You may omit either | ||
182 | of these parameters if you only want to set one of them.</p> | ||
183 | |||
184 | |||
185 | <p style="margin-left:11%; margin-top: 1em"><b>reload</b></p> | ||
186 | |||
187 | <p style="margin-left:17%;">Reloads the sway config file | ||
188 | without restarting sway.</p> | ||
189 | |||
190 | <p style="margin-left:11%; margin-top: 1em"><b>resize</b> | ||
191 | <shrink|grow> <width|height> <amount></p> | ||
192 | |||
193 | <p style="margin-left:17%;">Resizes the currently focused | ||
194 | container or view by <i>amount</i>. <i>amount</i> can be | ||
195 | specified as "n px" or "n ppt" or | ||
196 | "n px or n ppt".</p> | ||
197 | |||
198 | <p style="margin-left:11%; margin-top: 1em"><b>set</b> | ||
199 | <name> <value></p> | ||
200 | |||
201 | <p style="margin-left:17%;">Creates a substitution for | ||
202 | <i>value</i> that can be used with $<i>name</i> in other | ||
203 | commands.</p> | ||
204 | |||
205 | <p style="margin-left:11%; margin-top: 1em"><b>split</b> | ||
206 | <vertical|v|horizontal|h></p> | ||
207 | |||
208 | <p style="margin-left:17%;">Splits the current container, | ||
209 | vertically or horiziontally.</p> | ||
210 | |||
211 | |||
212 | <p style="margin-left:11%; margin-top: 1em"><b>splith</b></p> | ||
213 | |||
214 | <p style="margin-left:17%;">Equivalent to <b>split | ||
215 | horizontal</b>.</p> | ||
216 | |||
217 | |||
218 | <p style="margin-left:11%; margin-top: 1em"><b>splitv</b></p> | ||
219 | |||
220 | <p style="margin-left:17%;">Equivalent to <b>split | ||
221 | vertical</b>.</p> | ||
222 | |||
223 | |||
224 | <p style="margin-left:11%; margin-top: 1em"><b>workspace</b> | ||
225 | <name></p> | ||
226 | |||
227 | <p style="margin-left:17%;">Switches to the specified | ||
228 | workspace.</p> | ||
229 | |||
230 | |||
231 | <p style="margin-left:11%; margin-top: 1em"><b>workspace</b> | ||
232 | <prev_on_output|next_on_output></p> | ||
233 | |||
234 | <p style="margin-left:17%;">Switches to the next workspace | ||
235 | on the current output.</p> | ||
236 | |||
237 | |||
238 | <p style="margin-left:11%; margin-top: 1em"><b>workspace</b> | ||
239 | <name> output <output></p> | ||
240 | |||
241 | <p style="margin-left:17%;">Specifies that the workspace | ||
242 | named <i>name</i> should appear on the specified | ||
243 | <i>output</i>.</p> | ||
244 | <hr> | ||
245 | </body> | ||
246 | </html> | ||