Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc refactoring > README.md and installation.md #673

Open
wants to merge 52 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 27 commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
d1a9828
I'd like to see how the page will render. After I'm happy, I'd like to
pablos-here Mar 28, 2023
775c200
Fixed typo in <html> directive. Cleaned up text.
pablos-here Mar 28, 2023
ada5cb3
Fixed mixing .md with HTML
pablos-here Mar 28, 2023
d9aad73
converted blockquote to md equivalent
pablos-here Mar 28, 2023
591ebc2
More clarity
pablos-here Mar 28, 2023
f771f77
More clarity
pablos-here Mar 28, 2023
610cf1f
More clarity ... :)
pablos-here Mar 28, 2023
71f9619
More clarity ... :)
pablos-here Mar 28, 2023
a2b4609
Try a different <hr> height
pablos-here Mar 28, 2023
ae31ced
Try a different <hr> height ... 1px
pablos-here Mar 28, 2023
4cafbb1
Convert <hr> to .md
pablos-here Mar 28, 2023
1a792f0
Meh on the blockquote .. nuked
pablos-here Mar 28, 2023
1fb22d9
initial release with installation in its own page
pablos-here Mar 28, 2023
3a76642
RSI noted
pablos-here Mar 28, 2023
45789b4
let us try use a link for "Manual installation"
pablos-here Mar 28, 2023
288f596
fixed local link
pablos-here Mar 28, 2023
74baa2f
Move installation link to be first
pablos-here Mar 28, 2023
751491c
clarify options for Ubuntu/Debian
pablos-here Mar 28, 2023
17ba922
clarify options for Ubuntu/Debian ... again
pablos-here Mar 28, 2023
eea4c86
wordsmithing
pablos-here Mar 28, 2023
b34cf29
wordsmithing
pablos-here Mar 28, 2023
b1e0dbd
Remove centering
pablos-here Mar 29, 2023
51e9493
Merged second paragraph to
pablos-here Mar 29, 2023
e9aac2d
test having installation on its own line, slightly larger
pablos-here Mar 29, 2023
16abb2c
use an inline style
pablos-here Mar 29, 2023
a2f04a9
sizing not recognized, keep /Installation/ on its own line. Gives it…
pablos-here Mar 29, 2023
e46cd27
keys => keyboard
pablos-here Mar 29, 2023
736a3b2
center intro text; remove RSI mention as it may be construed as a med…
pablos-here Apr 3, 2023
9ddc458
center HTML directive did not work
pablos-here Apr 3, 2023
bee8e03
testing main text layouts
pablos-here Apr 3, 2023
afbdfa8
testing main text layouts
pablos-here Apr 3, 2023
7fec543
testing main text layouts
pablos-here Apr 3, 2023
e29de9c
testing main text layouts
pablos-here Apr 3, 2023
bdff706
testing main text layouts
pablos-here Apr 3, 2023
f1dd437
testing main text layouts
pablos-here Apr 3, 2023
6b3e4ac
testing main text layouts
pablos-here Apr 3, 2023
6ea8ff7
testing main text layouts
pablos-here Apr 3, 2023
2420217
testing main text layouts
pablos-here Apr 3, 2023
1e552ba
testing main text layouts
pablos-here Apr 3, 2023
97ead66
testing main text layouts
pablos-here Apr 3, 2023
2f01c20
testing main text layouts
pablos-here Apr 3, 2023
0a14ee2
testing main text layouts
pablos-here Apr 3, 2023
3b7f4b1
testing main text layouts
pablos-here Apr 3, 2023
15b9b29
testing main text layouts
pablos-here Apr 3, 2023
58f62f7
testing main text layouts
pablos-here Apr 3, 2023
1b03cbe
Tweaked text slightly
pablos-here Apr 3, 2023
d803a4e
Tweaked text slightly
pablos-here Apr 3, 2023
08fc8e6
Initial drop with the latest changes
pablos-here Apr 3, 2023
b6e48eb
Formatting and English flow
pablos-here Apr 3, 2023
0e0759c
nuked table, leave centered.
pablos-here Apr 4, 2023
215ac3b
Removed centering as not visually appealing.
pablos-here Apr 4, 2023
a57f59b
no worries about hardcoding the .deb version as the release workflow …
pablos-here Apr 4, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 11 additions & 61 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,74 +2,24 @@

<h1 align="center">Input Remapper</h1>

An easy to use tool to change the behaviour of your input devices.
Supports `X11`, `Wayland`, key/button combinations, programmable macros,
joysticks, wheels, triggers, keyboards, mouse-movements and much
more. Maps any input to any other input. This tool may also be helpful
for those with repetitive strain issues.

<p align="center">
An easy to use tool to change the behaviour of your input devices.<br/>
Supports X11, Wayland, combinations, programmable macros, joysticks, wheels,<br/>
triggers, keys, mouse-movements and more. Maps any input to any other input.
<a href="readme/installation.md">Installation</a></br>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<a href="readme/installation.md">Installation</a></br>
<a href="readme/installation.md">Installation</a> -

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking that most users want to know how to install the software. This is why I put Installation on its own line. Perhaps later they'll come back for other activities such as Macros.

If you rather have Installation on the same line with everything else. I can do it but I wanted to explain my reasoning.

Let me know.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you rather have Installation on the same line with everything else

yes

<a href="readme/usage.md">Usage</a> -
<a href="readme/macros.md">Macros</a> -
<a href="readme/development.md">Development</a> -
<a href="readme/examples.md">Examples</a>
</p>

<p align="center"><a href="readme/usage.md">Usage</a> - <a href="readme/macros.md">Macros</a> - <a href="#installation">Installation</a> - <a href="readme/development.md">Development</a> - <a href="readme/examples.md">Examples</a></p>

<p align="center"><img src="readme/pylint.svg"/> <img src="readme/coverage.svg"/></p>


<p align="center">
<img src="readme/screenshot.png" width="48%"/>
&#160;
<img src="readme/screenshot_2.png" width="48%"/>
</p>

## Installation

##### Manjaro/Arch

```bash
yay -S input-remapper-git
sudo systemctl restart input-remapper
sudo systemctl enable input-remapper
```

##### Ubuntu/Debian

Get a .deb file from the [release page](https://github.com/sezanzeb/input-remapper/releases)
or install the latest changes via:

```bash
sudo apt install git python3-setuptools gettext
git clone https://github.com/sezanzeb/input-remapper.git
cd input-remapper && ./scripts/build.sh
sudo apt install -f ./dist/input-remapper-2.0.0.deb
```

input-remapper is available in [Debian](https://tracker.debian.org/pkg/input-remapper)
and [Ubuntu](https://packages.ubuntu.com/jammy/input-remapper)

##### Manual

Dependencies: `python3-evdev` ≥1.3.0, `gtksourceview4`, `python3-devel`, `python3-pydantic`, `python3-pydbus`

Python packages need to be installed globally for the service to be able to import them. Don't use `--user`

Conda can cause problems due to changed python paths and versions.

If it doesn't seem to install, you can also try `sudo python3 setup.py install`

```bash
sudo pip install evdev -U # If newest version not in distros repo
sudo pip uninstall key-mapper # In case the old package is still installed
sudo pip install --no-binary :all: git+https://github.com/sezanzeb/input-remapper.git
sudo systemctl enable input-remapper
sudo systemctl restart input-remapper
```

## Migrating beta configs to version 2

By default, Input Remapper will not migrate configurations from the beta.
If you want to use those you will need to copy them manually.

```bash
rm ~/.config/input-remapper-2 -r
cp ~/.config/input-remapper/beta_1.6.0-beta ~/.config/input-remapper-2 -r
```

Then start input-remapper
107 changes: 107 additions & 0 deletions readme/installation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
# Installation

Below are installation instructions for certain distributions as well as
<a href="#manual-installation">Manual installation</a> instructions.

We welcome contributors to maintain missing distributions.

Please note that distributions may lag with the latest bug fixes. To
get the latest bug fixes, use the <a href="#manual-installation">Manual
installation</a> method.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"lag", I have never seen that word used in that context

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Please note that distributions may provide more or less outdated packages."

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"lag", I have never seen that word used in that context

In this context,it is a correct usage of lag.

I don't think we want to rewrite based on exposure to language.

"Please note that distributions may provide more or less outdated packages."

"more or less" is unfortunately incorrect because it is stating that a distribution may never have current packages. It is stating either more outdated or less outdated. I don't believe that's what we want to convey.

How about a slight modification as follows:

Please note that the distribution package may lag with the latest bug fixes.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"more or less" is unfortunately incorrect because it is stating that a distribution may never have current packages.

Which is why my proposal says "distributions may provide".

I don't think we want to rewrite based on exposure to language.

I still don't like using lag like this.

Please use "Please note that distributions may provide more or less outdated packages."


## Manjaro/Arch

```bash
yay -S input-remapper-git
sudo systemctl restart input-remapper
sudo systemctl enable input-remapper
```

Please note that the above version may lag from the latest version. See
the <a href="#manual-installation">Manual installation</a> method to
install the latest version.
pablos-here marked this conversation as resolved.
Show resolved Hide resolved

## Ubuntu/Debian

To get the latest version, use the following method:

```bash
sudo apt install git python3-setuptools gettext
git clone https://github.com/sezanzeb/input-remapper.git
cd input-remapper && ./scripts/build.sh
sudo apt install -f ./dist/input-remapper-2.0.0.deb
```

The next two methods may result in the installed version not having the
latest bug fixes.

### Install using a .deb file

1. Download the `.deb` file from the
[release page](https://github.com/sezanzeb/input-remapper/releases)
2. Manually install it
pablos-here marked this conversation as resolved.
Show resolved Hide resolved

### Distribution repository

input-remapper is available on [Debian](https://tracker.debian.org/pkg/input-remapper)
and [Ubuntu](https://packages.ubuntu.com/jammy/input-remapper)
distributions. Use your package manager to install the software.
pablos-here marked this conversation as resolved.
Show resolved Hide resolved

## Manual installation

Ensure that the following dependencies are met:

- `python3-evdev` ≥1.3.0
- `gtksourceview4`
- `python3-devel`
- `python3-pydantic`
- `python3-pydbus`

Python packages need to be installed globally for the service to be able
to import them. Do not use `--user`.

`Conda` can cause problems due to changed python paths and versions.

### Install method #1

```bash
sudo pip install evdev -U # If newest version not in distros repo
sudo pip uninstall key-mapper # In case the old package is still installed
sudo pip install --no-binary :all: git+https://github.com/sezanzeb/input-remapper.git
sudo systemctl enable input-remapper
sudo systemctl restart input-remapper
```

### Install method #2

Use this installation method if the above method is problematic:

```bash
# Obtain the software:
mkdir -p ~/src
cd ~/src
git clone https://github.com/sezanzeb/input-remapper.git

# Install
cd ~/src/input-remapper
sudo python3 setup.py install
pablos-here marked this conversation as resolved.
Show resolved Hide resolved
```

# Migrating beta configs to version 2

<i><b>Warning:</b> the following will remove any existing <b>new</b>
configurations.</i>
Comment on lines +90 to +91
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<i><b>Warning:</b> the following will remove any existing <b>new</b>
configurations.</i>
<b>Warning:</b> the following commands will overwrite any new presets of
version 2.0.0 or later.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the user creates configurations 2.0.0, then says oops, I want to migrate my beta configs, the rm will wipe them out. I brought forward the rm from the original doc. Is the rm not necessary? Should I strike that step?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<i><b>Warning:</b> the following will remove any existing <b>new</b>
configurations.</i>
<b>Warning:</b> the following commands will remove any new presets of
version 2.0.0 or later.


By default, input-remapper will not migrate configurations from the beta
release.

To manually migrate beta configurations, *before* creating any
configurations, perform the following:

```bash
# Ignore whether the subdirectory exists ...
rm -fr ~/.config/input-remapper-2
cp -r ~/.config/input-remapper/beta_1.6.0-beta ~/.config/input-remapper-2
```

Once completed, start input-remapper.