wip debian package

pull/14/head
sezanzeb 4 years ago
parent 41433412bb
commit e5beec0994

@ -4,9 +4,7 @@
<p align="center"><img src="readme/pylint.svg"/> <img src="readme/coverage.svg"/></p>
<p align="center">
<img src="readme/screenshot.png"/>
</p>
<p align="center"><img src="readme/screenshot.png"/></p>
<br/>
## Usage
@ -56,7 +54,7 @@ usermod -a -G plugdev $USER
Depending on how those packages are called in your distro,
you need the following dependencies:
`python3-distutils-extra` `python3-evdev` `python3-dbus`
`python3-evdev` `python3-dbus`
It works with both Wayland and X11.

@ -0,0 +1,9 @@
#!/usr/bin/env bash
# build the .deb and .appimage files
# https://ubuntuforums.org/showthread.php?t=1002909
python setup.py sdist
cd dist
tar -xzf key-mapper-0.1.0.tar.gz
cd key-mapper-0.1.0

@ -0,0 +1,3 @@
recursive-include data *
include bin/key-mapper-gtk
include bin/key-mapper-service

@ -245,7 +245,7 @@ class KeycodeInjector:
logger.debug('Parsing macros')
macros = {}
for keycode, output in self.mapping:
if '(' in output and ')' in output and len(output) > 4:
if '(' in output and ')' in output and len(output) >= 4:
# probably a macro
macros[keycode] = parse(
output,

@ -19,16 +19,30 @@
# along with key-mapper. If not, see <https://www.gnu.org/licenses/>.
import DistUtilsExtra.auto
import glob
from distutils.core import setup
DistUtilsExtra.auto.setup(
setup(
name='key-mapper',
version='0.1.0',
description='GUI for device specific keyboard mappings',
description='A tool to change the mapping of your input device buttons',
author='Sezanzeb',
author_email='proxima@hip70890b.de',
url='https://github.com/sezanzeb/key-mapper',
license='GPL-3.0',
packages=[
'keymapper',
'keymapper.dev',
'keymapper.gtk'
],
data_files=[
('share/key-mapper/', glob.glob('data/*')),
('share/applications/', ['data/key-mapper.desktop']),
('/etc/xdg/autostart/', ['data/key-mapper-service.desktop']),
]
],
scripts=[
'bin/key-mapper-gtk',
'bin/key-mapper-service'
],
)

Loading…
Cancel
Save