From f7b5588abc854db5cd00c37de72b6c195f6db4d2 Mon Sep 17 00:00:00 2001 From: sezanzeb Date: Sun, 29 Nov 2020 13:55:37 +0100 Subject: [PATCH] more work on distribution --- MANIFEST.in | 2 +- README.md | 34 +++++++++++++++++++++++++++++----- readme/coverage.svg | 6 +++--- scripts/build.sh | 8 +------- 4 files changed, 34 insertions(+), 16 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 3ac1fc46..5bbd212d 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,4 @@ -# for `python3 setup.py sdist` +# for /scripts/build.sh recursive-include data * include bin/key-mapper-gtk include bin/key-mapper-service diff --git a/README.md b/README.md index 22802ed0..dd2a35be 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,12 @@

A Linux tool to change and program the mapping of your input device buttons.

+

+ Ubunut/Debian + Manjaro/Arch + Git +

+

@@ -24,6 +30,8 @@ be running. If it doesn't already after logging in, you can use: key-mapper-service ``` +It works with both Wayland and X11. + ## Macros It is possible to write timed macros into the center column: @@ -41,7 +49,25 @@ Documentation: For a list of supported keystrokes and their names, check the output of `xmodmap -pke` -## Git Installation +## Installation + +#### Ubunut/Debian + +```bash +dpkg -i $(wget TODO) +usermod -a -G input $USER +usermod -a -G plugdev $USER +``` + +#### Manjaro/Arch + +TODO + +```bash +pacaur -S key-mapper-git +``` + +#### Git ```bash git clone https://github.com/sezanzeb/key-mapper.git @@ -54,9 +80,7 @@ usermod -a -G plugdev $USER Depending on how those packages are called in your distro, you need the following dependencies: -`python3-evdev` `python3-dbus` - -It works with both Wayland and X11. +`python3-setuptools` `python3-evdev` `python3-dbus` ## Tests @@ -80,5 +104,5 @@ sudo python3 setup.py install && python3 tests/test.py - [x] automatically load presets on login for plugged in devices - [x] make sure it works on wayland - [x] support timed macros, maybe using some sort of syntax -- [ ] add to the AUR, provide .deb and .appimage files +- [ ] add to the AUR, provide .deb file - [ ] automatically load presets when devices get plugged in after login diff --git a/readme/coverage.svg b/readme/coverage.svg index dd6df127..6963b3e1 100644 --- a/readme/coverage.svg +++ b/readme/coverage.svg @@ -9,13 +9,13 @@ - + coverage coverage - 61% - 61% + 87% + 87% diff --git a/scripts/build.sh b/scripts/build.sh index acd2af92..873346a0 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -1,5 +1,4 @@ #!/usr/bin/env bash -# builds .deb and .appimage files in order to distribute them build_deb() { # https://github.com/phusion/debian-packaging-for-the-modern-developer/tree/master/tutorial-1 @@ -15,12 +14,7 @@ build_deb() { echo "created $dist/$name.deb" } -build_appimage() { - echo "created $dist/$name.appimage" -} - - build_deb & -build_appimage & +# add more build targets here wait