-
Notifications
You must be signed in to change notification settings - Fork 161
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
base: main
Are you sure you want to change the base?
Changes from 27 commits
d1a9828
775c200
ada5cb3
d9aad73
591ebc2
f771f77
610cf1f
71f9619
a2b4609
ae31ced
4cafbb1
1a792f0
1fb22d9
3a76642
45789b4
288f596
74baa2f
751491c
17ba922
eea4c86
b34cf29
b1e0dbd
51e9493
e9aac2d
16abb2c
a2f04a9
e46cd27
736a3b2
9ddc458
bee8e03
afbdfa8
7fec543
e29de9c
bdff706
f1dd437
6b3e4ac
6ea8ff7
2420217
1e552ba
97ead66
2f01c20
0a14ee2
3b7f4b1
15b9b29
58f62f7
1b03cbe
d803a4e
08fc8e6
b6e48eb
0e0759c
215ac3b
a57f59b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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. | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "lag", I have never seen that word used in that context There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "Please note that distributions may provide more or less outdated packages." There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
In this context,it is a correct usage of lag. I don't think we want to rewrite based on exposure to language.
"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. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Which is why my proposal says "distributions may provide".
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
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If the user creates configurations There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||
|
||||||||||||||||||
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes