Skip to content

Commit a2ed369

Browse files
authored
Renamed to Input Remapper
1 parent d3d1d91 commit a2ed369

File tree

99 files changed

+1592
-1449
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+1592
-1449
lines changed

.coveragerc

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[run]
22
branch = True
3-
source = /usr/lib/python3.9/site-packages/keymapper
3+
source = /usr/lib/python3.9/site-packages/inputremapper
44
concurrency = multiprocessing
55
debug = multiproc
66
omit =
77
# not used currently due to problems
8-
/usr/lib/python3.9/site-packages/keymapper/ipc/socket.py
8+
/usr/lib/python3.9/site-packages/inputremapper/ipc/socket.py

.github/ISSUE_TEMPLATE/autoloading-not-working.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ Please install the newest version from source to see if the problem has already
1111

1212
Share some logs please:
1313

14-
1. `key-mapper-control --version`
14+
1. `input-remapper-control --version`
1515
2. which linux distro (ubuntu 20.04, manjaro, etc.)
1616
3. `echo $XDG_SESSION_TYPE`
1717
4. which desktop environment (gnome, plasma, xfce4, etc.)
1818
5. `sudo ls -l /proc/1/exe`
1919

20-
6. `cat ~/.config/key-mapper/config.json`
21-
7. `key-mapper-control --command hello`
22-
8. `systemctl status key-mapper -n 50`
23-
9. `sudo pkill -f key-mapper-service && sudo key-mapper-service -d & sleep 2 && key-mapper-control --command autoload`, are your keys mapped now?
20+
6. `cat ~/.config/input-remapper/config.json`
21+
7. `input-remapper-control --command hello`
22+
8. `systemctl status input-remapper -n 50`
23+
9. `sudo pkill -f input-remapper-service && sudo input-remapper-service -d & sleep 2 && input-remapper-control --command autoload`, are your keys mapped now?
2424
10. (while the previous command is still running) `sudo evtest` and search for a device suffixed by "mapped". Select it, does it report any events? Share the output.

.github/ISSUE_TEMPLATE/buttons-not-showing-up---can-t-map-a-key-in-the-gui.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ Please install the newest version from source to see if the problem has already
1111

1212
Share some logs please:
1313

14-
1. `key-mapper-control --version`
15-
2. If a button on your device doesn't show up in the GUI, verify that the button is reporting an event via `sudo evtest`. If not, key-mapper won't be able to map that button.
16-
3. If yes, please run `key-mapper-gtk -d`, reproduce the problem and then share the logs.
14+
1. `input-remapper-control --version`
15+
2. If a button on your device doesn't show up in the GUI, verify that the button is reporting an event via `sudo evtest`. If not, input-remapper won't be able to map that button.
16+
3. If yes, please run `input-remapper-gtk -d`, reproduce the problem and then share the logs.

.github/ISSUE_TEMPLATE/key-not-getting-injected.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ Please install the newest version from source to see if the problem has already
1111

1212
Share some logs please:
1313

14-
1. `key-mapper-control --version`
14+
1. `input-remapper-control --version`
1515
2. which linux distro (ubuntu 20.04, manjaro, etc.)
1616
3. `echo $XDG_SESSION_TYPE`
1717
4. which desktop environment (gnome, plasma, xfce4, etc.)
1818
5. `sudo ls -l /proc/1/exe`
1919

20-
6. paste the affected preset .json file from ~/.config/key-mapper/presets
21-
7. `sudo pkill -f key-mapper-service && key-mapper-gtk -d`, start the injection and hit your key. Then share that log.
20+
6. paste the affected preset .json file from ~/.config/input-remapper/presets
21+
7. `sudo pkill -f input-remapper-service && input-remapper-gtk -d`, start the injection and hit your key. Then share that log.
2222
8. `sudo evtest` would also be interesting while the first command is still running, to see how your mappings are injected.

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
keymapper/commit_hash.py
1+
inputremapper/commit_hash.py
22

33
*.glade~
44
*.glade#

DEBIAN/control

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
Package: key-mapper
1+
Package: input-remapper
22
Version: 1.2.2
33
Architecture: all
44
Maintainer: Sezanzeb <[email protected]>
55
Depends: build-essential, libpython3-dev, libdbus-1-dev, python3, python3-setuptools, python3-evdev, python3-pydbus, python3-gi, gettext, python3-cairo, libgtk-3-0
66
Description: A tool to change the mapping of your input device buttons
7-
Replaces: python3-key-mapper
7+
Replaces: python3-key-mapper, key-mapper
8+
Conflicts: python3-key-mapper, key-mapper

DEBIAN/postinst

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#!/bin/bash
22
if [ -d "/run/systemd/system/" ]; then
3-
pkill -f key-mapper-service # might have been started by the gui previously
4-
systemctl enable key-mapper
5-
systemctl start key-mapper
3+
# old name, those lines should at some point be removed from postinst
4+
pkill -f key-mapper-service
5+
systemctl disable key-mapper
6+
systemctl stop key-mapper
7+
8+
pkill -f input-remapper-service # might have been started by the gui previously
9+
systemctl enable input-remapper
10+
systemctl start input-remapper
611
fi

MANIFEST.in

-4
This file was deleted.

README.md

+13-11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
<p align="center"><img src="data/key-mapper.svg" width=100/></p>
1+
<p align="center"><img src="data/input-remapper.svg" width=100/></p>
22

3-
<h1 align="center">Key Mapper</h1>
3+
<h1 align="center">Input Remapper</h1>
4+
5+
<p align="center"><b>Formerly Key Mapper</b></p>
46

57
<p align="center">
68
An easy to use tool to change the mapping of your input device buttons.<br/>
@@ -17,29 +19,29 @@
1719
##### Manjaro/Arch
1820

1921
```bash
20-
pacaur -S key-mapper-git
22+
pacaur -S input-remapper-git
2123
```
2224

2325
##### Ubuntu/Debian
2426

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

2830
```bash
2931
sudo apt install git python3-setuptools gettext
30-
git clone https://github.com/sezanzeb/key-mapper.git
31-
cd key-mapper && ./scripts/build.sh
32-
sudo apt install ./dist/key-mapper-1.2.2.deb
32+
git clone https://github.com/sezanzeb/input-remapper.git
33+
cd input-remapper && ./scripts/build.sh
34+
sudo apt install ./dist/input-remapper-1.2.2.deb
3335
```
3436

35-
key-mapper is now part of [Debian Unstable](https://packages.debian.org/sid/key-mapper)
37+
input-remapper is now part of [Debian Unstable](https://packages.debian.org/sid/input-remapper)
3638

3739
##### pip
3840

3941
```bash
40-
sudo pip install --no-binary :all: git+https://github.com/sezanzeb/key-mapper.git
41-
sudo systemctl enable key-mapper
42-
sudo systemctl restart key-mapper
42+
sudo pip install --no-binary :all: git+https://github.com/sezanzeb/input-remapper.git
43+
sudo systemctl enable input-remapper
44+
sudo systemctl restart input-remapper
4345
```
4446

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

0 commit comments

Comments
 (0)