HELP I CANT USE NANO!!!!!!

This commit is contained in:
speedie 2023-02-01 20:03:56 +00:00
parent 42c5ea22b2
commit d6ef298170
42 changed files with 132 additions and 376 deletions

0
LICENSE Normal file → Executable file
View file

0
README.md Normal file → Executable file
View file

0
config.php Normal file → Executable file
View file

0
icons/close.svg Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 556 B

After

Width:  |  Height:  |  Size: 556 B

0
icons/delete-dark.svg Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 342 B

After

Width:  |  Height:  |  Size: 342 B

0
icons/delete.svg Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 342 B

After

Width:  |  Height:  |  Size: 342 B

0
icons/edit-dark.svg Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 522 B

After

Width:  |  Height:  |  Size: 522 B

0
icons/edit.svg Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 522 B

After

Width:  |  Height:  |  Size: 522 B

0
icons/format-text-bold.svg Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 720 B

After

Width:  |  Height:  |  Size: 720 B

0
icons/format-text-code.svg Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 554 B

After

Width:  |  Height:  |  Size: 554 B

0
icons/format-text-italic.svg Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 533 B

After

Width:  |  Height:  |  Size: 533 B

0
icons/home.svg Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 582 B

After

Width:  |  Height:  |  Size: 582 B

0
icons/internet.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 886 B

After

Width:  |  Height:  |  Size: 886 B

0
icons/link-dark.svg Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 659 B

After

Width:  |  Height:  |  Size: 659 B

0
icons/link.svg Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 667 B

After

Width:  |  Height:  |  Size: 667 B

0
icons/list.svg Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 329 B

After

Width:  |  Height:  |  Size: 329 B

0
icons/new.svg Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 559 B

After

Width:  |  Height:  |  Size: 559 B

0
icons/rename-dark.svg Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 519 B

After

Width:  |  Height:  |  Size: 519 B

0
icons/rename.svg Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 519 B

After

Width:  |  Height:  |  Size: 519 B

0
icons/upload.svg Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 491 B

After

Width:  |  Height:  |  Size: 491 B

0
icons/w2-icon.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

0
images/.gitignore vendored Normal file → Executable file
View file

0
index.css Normal file → Executable file
View file

View file

@ -1,362 +0,0 @@
/*
* W2
*
* Copyright (C) 2007-2011 Steven Frank <http://stevenf.com/>
*
* Code may be re-used as long as the above copyright notice is retained.
* See README.txt for full details.
*
* Written with Coda: <http://panic.com/coda/>
*
* colors icons:
* 240,240,240
* dark: 15, 15, 15
*/
* {
font-family: Monospace;
margin: 0;
padding: 0;
font-size: 11px;
}
body {
background-color: #eeeeee;
}
blockquote {
background-color: #0f070f;
margin: 4px 4px 12px 20px;
padding: 4px 10px 4px 10px;
}
form {
display: inline;
}
li {
line-height: 1.5em;
}
h1 {
font-size: 2em;
font-weight: bold;
margin-bottom: 4px;
margin-top: .6em;
}
h2 {
font-size: 1.6em;
font-weight: bold;
margin-bottom: 4px;
margin-top: .5em;
}
h3 {
font-size: 1.2em;
font-weight: bold;
}
h3, h4, h5, h6 {
margin-top: .4em;
margin-bottom: 4px;
}
hr {
border-top: 1px solid #222222;
border-bottom: 0;
border-left: 0;
border-right: 0;
margin-top: 12px;
margin-bottom: 12px;
}
ul,
ol {
margin-top: .5em;
margin-left: 1em;
padding-left: 1em;
list-style-position: outside;
}
ul li, ol li {
padding-left: .5em;
}
li > ul, li > ol
{
margin-top: 0;
}
p {
margin-top: .5em;
}
pre {
font-family: Monospace;
margin-left: 0;
margin-bottom: .5em;
margin-top: .5em;
/* stroke each browser so that they wrap lines in the pre tag */
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
background: #ffc;
border: 1px dotted gray;
padding: .2em .2em .2em .4em;
}
code {
font-family: Monospace;
background: #ffc;
padding: .1em .1em 0 .2em;
}
table {
border-collapse: collapse;
padding: .2em;
max-width: 99%;
background-color: #000000;
color: #ffffff;
}
th {
text-align: left;
}
td, th {
padding: .1em 1em .1em .1em;
word-break: break-all;
}
thead {
border-bottom: 1px solid black;
font-weight: bold;
}
thead td a {
text-decoration:none;
}
thead td span.sortBy:after {
content: "\25BC";
}
tr:nth-child(even) {
background: #e4e4e4;
}
tr:nth-child(odd) {
background: #eeeeee;
}
.pageActions {
padding-left: 8px;
padding-right: 8px;
}
textarea {
font-family: Monospace;
width: 75%;
background-color: #000011;
color: #ffffff;
}
@media (max-width: 600px), (orientation: portrait) {
textarea {
width: 99%;
}
}
input[type="text"],
textarea {
padding: 2px;
}
input#gitmsg
{
width: 60%;
}
.main {
padding: .3em .3em .3em 1em;
background-color: #000000;
color: #ffffff;
}
.main a[href^="http"]::after {
content: url('/icons/internet.png');
}
.main a.literalMatch {
font-weight: bold;
color: #00f;
}
.main a.noexist {
color: #b00 !important;
}
.login {
margin: 40px auto;
max-width: 650px;
line-height: 1.4;
}
.note {
background-color: #000011;
padding: 4px;
margin: .5em 0 .5em 0;
color: #9999bb;
border: solid 1px #9999bb;
width: 75%;
}
@media (max-width: 600px), (orientation: portrait) {
.note {
width: 99%;
}
}
.titlebar {
background-color: #111111;
color: #ffffff;
}
.titlebar span.title {
font-size: 10px;
font-weight: bold;
}
.titledate {
font-size: 0.90em;
color: #777777;
margin-left: 1em;
margin-right: 1em;
}
.toolbar {
background-color: #222222;
position: sticky;
top: 0;
font-size: 8px;
}
.toolbar > a, .titlebar > a {
font-size: 0.90em;
margin-right: 1em;
color: #eeeeee;
text-decoration: none;
font-weight: normal;
}
.toolbar > a:hover, .titlebar > a:hover {
text-decoration: underline;
}
.sidebar {
float: right;
}
.sidebar, .linkshere {
margin-right: 5px;
margin-top: 5px;
padding: 4px;
border: solid 1px #666644;
}
.sidebar ul {
margin-top: 0;
margin-left: 4px;
}
.linkshere {
width: 50%;
margin-left: 5px;
}
@media (max-width: 600px), (orientation: portrait) {
.sidebar, .linkshere {
margin-left: 5px;
float: none;
width: auto;
}
}
input.search {
/* font-size: 0.95em;*/
color: #000000;
width: 5em;
padding: .1em;
}
input.search:focus {
width: 15em;
}
input.pagename {
width: 20em;
}
input[type="button"],
input[type="submit"] {
border:none;
border-radius: 3px;
padding: .5em 1em;
cursor: pointer;
margin-right: .5em;
}
#maxsizelabel {
margin-right: 1em;
}
input[type="submit"] {
background-color: rgb(30, 101, 201);
color: white;
}
input[type="button"] {
background-color: rgb(220, 220, 220);
}
input[type="submit"]:hover {
background-color: rgb(69, 135, 226);
}
input[type="button"]:hover {
background-color: rgb(200, 200, 200);
}
img {
max-width: 100%;
height: auto;
}
#drawer {
display: inline-block;
position: absolute;
width: 300px;
background-color: rgb(240, 240, 240);
opacity: 0.5;
border: 1px solid black;
border-radius: 5px;
padding: 0;
cursor: move;
}
#drawer h5 {
border-bottom: 1px solid black;
padding: 4px;
}
#drawer div {
padding: 4px;
}
#drawer:hover {
opacity: 1.0;
}
.inactive {
display: none !important;
}
img.icon {
width: 1.5em;
vertical-align: middle;
}
a > img.icon:hover, a > span.icongroup:hover {
outline: 1px outset white;
}
a > img.icon:active, a > span.icongroup:active {
outline: 1px inset white;
}
a.missing-link {
color: #ba0000;
}
.rightaligned
{
float: right;
}

6
index.php Normal file → Executable file
View file

@ -98,7 +98,6 @@ function printDrawer()
{ {
print " <div id=\"drawer\" class=\"inactive\">\n". print " <div id=\"drawer\" class=\"inactive\">\n".
" <a href=\"\" onclick=\"toggleDrawer(); return false;\"><img src=\"/icons/close.svg\" alt=\"".__('Close')."\" title=\"".__('Close')."\" class=\"icon rightaligned\"/></a>\n". " <a href=\"\" onclick=\"toggleDrawer(); return false;\"><img src=\"/icons/close.svg\" alt=\"".__('Close')."\" title=\"".__('Close')."\" class=\"icon rightaligned\"/></a>\n".
" <h5>".__('Markdown Syntax Helper')."</h5>\n".
" <div>\n". " <div>\n".
"# ".__('Header')." 1<br/>". "# ".__('Header')." 1<br/>".
"## ".__('Header')." 2<br/>". "## ".__('Header')." 2<br/>".
@ -132,11 +131,6 @@ function printDrawer()
" </div>\n". " </div>\n".
" </div>\n". " </div>\n".
" <a id=\"drawer-control\" href=\"\" onclick=\"toggleDrawer(); return false;\">\n". " <a id=\"drawer-control\" href=\"\" onclick=\"toggleDrawer(); return false;\">\n".
" <span class=\"icongroup\">\n".
" <img src=\"/icons/format-text-bold.svg\" alt=\"".__('Formatting help')."\" title=\"".__('Formatting help')."\" class=\"icon\"/>\n".
" <img src=\"/icons/format-text-italic.svg\" alt=\"".__('Formatting help')."\" title=\"".__('Formatting help')."\" class=\"icon\"/>\n".
" <img src=\"/icons/format-text-code.svg\" alt=\"".__('Formatting help')."\" title=\"".__('Formatting help')."\" class=\"icon\"/>\n".
" </span>\n".
" </a>\n"; " </a>\n";
} }

0
locales/de.php Normal file → Executable file
View file

0
locales/en.php Normal file → Executable file
View file

0
locales/ja.php Normal file → Executable file
View file

0
locales/sample.php Normal file → Executable file
View file

0
md/Markdown.inc.php Normal file → Executable file
View file

0
md/Markdown.php Normal file → Executable file
View file

0
md/MarkdownExtra.inc.php Normal file → Executable file
View file

0
md/MarkdownExtra.php Normal file → Executable file
View file

0
md/MarkdownInterface.inc.php Normal file → Executable file
View file

0
md/MarkdownInterface.php Normal file → Executable file
View file

98
pages/Client rules.md Normal file
View file

@ -0,0 +1,98 @@
Client rules
============
The `Rule` array allows you to specify rules for X11 clients based on factors such as WM_CLASS and WM_NAME. In the English language, that means you can specify how clients are tiled based on the class, instance or title of said client.
To get this information, you can use the X11 utility `xprop` to get information about a client. If you want to see in detail how the rule system works, refer to function `applyrules` and the `Rule` struct in `speedwm.c`.
### Rule structure
1. Class
Internally: `const char *class`
2. Instance
Internally: `const char *instance`
3. Title
Internally: `const char *title`
4. Tags
Internally: `unsigned int tags`
5. isfloating
Internally: `int isfloating`
6. ispermanent
Internally: `int ispermanent`
7. isterminal
Internally: `int isterminal`
8. noswallow
Internally: `int noswallow`
9. Monitor
Internally: `int monitor`
10. unmanaged
Internally: `int unmanaged`
11. ignoretransient
Internally: `int ignoretransient`
12. floatx
Internally: `int floatx`
13. floaty
Internally: `int floaty`
14. floatw
Internally: `int floatw`
15. floath
Internally: `int floath`
16. scratchkey
Internally: `const char scratchkey`
### Class
Every X11 client has a class. Even the window manager, speedwm in this case which has the class `speedwm` has a class. speedwm is **not** responsible for setting a client's class, clients using X11 libraries should set this themselves. speedwm just retrieves this information when a client is mapped.
As mentioned previously, you can get the class for a client by running the command-line utility `xprop` on any client. Running `xprop` on speedwm's bar for example will return:
`
[anon@arch ~]$ xprop
WM_CLASS(STRING) = "speedwm", "speedwm"
`
Running it and clicking on the root window however will return information such as the different tags and their glyphs, supported atoms, loaded xrdb resources and information such as the focused client which is not relevant here.
Now, some clients may have multiple classes, `st` for example has both `st` and `St`. Note the class of the program you want to use. Let's say, we want to set a rule for Chromium. Running `xprop | grep CLASS` returns the following information.
`
[anon@arch ~]$ xprop | grep CLASS
WM_CLASS(STRING) = "chromium", "Chromium"
`
This means our class here is `chromium`. That would also be the value of `const char *class` or simply the class. This means if the class matches what we specified (ie. `chromium`), and provided the instance and title also matches an existing client, we set the other values to what is specified.
### Instance
This allows us to specify which instance of the class

12
pages/Getting Started.md Normal file → Executable file
View file

@ -103,10 +103,10 @@ This assumes you have `git` installed.
read and write. Do not clone the speedwm repository in `~/.config` as speedwm read and write. Do not clone the speedwm repository in `~/.config` as speedwm
will write configuration files to that location. will write configuration files to that location.
<span style="color:blue">Note: Cloning the repository to `~/.config` is fine **Note: Cloning the repository to `~/.config` is fine
if the speedwm source code directory is **not** `speedwm` but speedwm if the speedwm source code directory is **not** `speedwm` but speedwm
will use the `~/.config/speedwm` directory to store configuration files (not will use the `~/.config/speedwm` directory to store configuration files (not
source code).</span> source code).**
From here on, we're going to assume you are in the location `~/Documents`! Run From here on, we're going to assume you are in the location `~/Documents`! Run
`git clone https://codeberg.org/speedie/speedwm.git speedwm` to clone the `git clone https://codeberg.org/speedie/speedwm.git speedwm` to clone the
@ -135,8 +135,8 @@ I recommend you do this by forking the speedwm repository, and putting it on a
Git repository somewhere. That way, you can always clone your specific Git repository somewhere. That way, you can always clone your specific
version. version.
<span style="color:red">Warning: If you lose your source code, you will be **Warning: If you lose your source code, you will be
**unable** to make any further changes to speedwm.</span> **unable** to make any further changes to speedwm.**
Now follow along with 'Using speedwm'. Now follow along with 'Using speedwm'.
@ -177,7 +177,7 @@ I recommend you do this by putting the source code on a
Git or subversion repository somewhere. That way, you can always clone your specific Git or subversion repository somewhere. That way, you can always clone your specific
version. version.
<span style="color:red">Warning: If you lose your source code, you will be **Warning: If you lose your source code, you will be
**unable** to make any further changes to speedwm.</span> **unable** to make any further changes to speedwm.**
Now follow along with 'Using speedwm'. Now follow along with 'Using speedwm'.

0
pages/Home.md Normal file → Executable file
View file

0
pages/Wayland support.md Normal file → Executable file
View file

24
pages/Where do I go?.md Normal file
View file

@ -0,0 +1,24 @@
Where do I go?
==============
Lost? If you don't know where to go, you can click the icon on the top bar. The `All` button allows you to get a view of all articles that have been posted on the wiki.
There is also a search bar at the top of every page which allows you to search for any article that has been posted.
## Basic wiki features
The wiki, based on a fork of w2wiki allows you to create new articles, edit existing articles, read existing articles (that's pretty much given), [host it yourself](https://codeberg.org/speedie/speedwm-wiki), and delete articles.
Now, please note that I am giving you this power, and with great power comes great responsibility. I want everyone to be able to help with the project. However, if it gets abused by people then I will have to remove this functionality and go back to using purely Git.
So please don't ruin it for everyone. If the wiki has to be shut down due to your vandalism, we hate you forever. That said, we do make Git backups fairly often (I will not say how often to prevent vandalism), so if an article is deleted it should be possible to restore it with minor changes lost.
## The sidebar
The sidebar is a markdown page like any other and can also be edited as any other. It is supposed to be used as a list of links, but of course there is no limit to what you can do with it.
To edit it, click `All` and edit `_sidebar`. From there, you can follow regular markdown syntax.
## Testing locally
Please, please, please test locally if you're new to markdown. That way, you avoid (for example) deleting pages by accident. You can easily test an identical (minus some pages perhaps) copy of the wiki locally by installing `php` with your distro's package manager and cloning [the repo](https://codeberg.org/speedie/speedwm-wiki) somewhere. If you don't know what you're doing, just cd into it, run `php -S localhost:1337` to start PHP, open any web browser and go to `localhost:1337`. Of course, the `1337` here can be swapped out for almost any value, it's just what I happen to go with.

2
pages/_sidebar.md Normal file → Executable file
View file

@ -1 +1,3 @@
- [[Home]] - [[Home]]
- [[Client rules]]
- [[Getting Started]]

0
tests/travis-ci-apache.conf Normal file → Executable file
View file