mirror of
https://github.com/sezanzeb/input-remapper
synced 2024-11-16 06:12:58 +00:00
wip debian package
This commit is contained in:
parent
7c7273d0fd
commit
1ee0e6953a
4
MANIFEST.in
Normal file
4
MANIFEST.in
Normal file
@ -0,0 +1,4 @@
|
||||
# for `python3 setup.py sdist`
|
||||
recursive-include data *
|
||||
include bin/key-mapper-gtk
|
||||
include bin/key-mapper-service
|
@ -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.
|
||||
|
||||
|
13
build.sh
Executable file
13
build.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# build the .deb and .appimage files
|
||||
# https://ubuntuforums.org/showthread.php?t=1002909
|
||||
dist=dist
|
||||
name=key-mapper-0.1.0
|
||||
|
||||
python3 setup.py sdist --dist-dir $dist
|
||||
tar -C deb -xzf $dist/$name.tar.gz
|
||||
cp $dist/DEBIAN $dist/$name -r
|
||||
dpkg-deb -b $dist/$name $name.deb
|
||||
rm $dist/$name -r
|
||||
|
6
deb/DEBIAN/control
Normal file
6
deb/DEBIAN/control
Normal file
@ -0,0 +1,6 @@
|
||||
Package: key-mapper
|
||||
Version: 0.1.0
|
||||
Architecture: all
|
||||
Maintainer: Sezanzeb <proxima@hip70890b.de>
|
||||
Depends: python3, python3-setuptools, python3-evdev, python3-dbus
|
||||
Description: A tool to change the mapping of your input device buttons
|
@ -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,
|
||||
|
26
setup.py
26
setup.py
@ -19,16 +19,34 @@
|
||||
# along with key-mapper. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
import DistUtilsExtra.auto
|
||||
import glob
|
||||
from setuptools import setup
|
||||
|
||||
with open('README.md', 'r') as f:
|
||||
long_description = f.read()
|
||||
|
||||
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'
|
||||
],
|
||||
long_description=long_description,
|
||||
long_description_content_type='text/markdown'
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user