From 0823413aaf4e4859861eaab79da4b4f28acec3a9 Mon Sep 17 00:00:00 2001 From: "Vladimir Pavljuchenkov (SpiderX)" Date: Thu, 29 Dec 2016 19:38:31 +0200 Subject: [PATCH] x11-misc/libinput-gestures: new package. Libinput-gestures is a utility which reads libinput gestures from your touchpad and maps them to gestures you configure in a configuration file. Each gesture can be configured to activate a shell command which is typically an xdotool command to action desktop/window/application keyboard combinations and commands. Package-Manager: portage-2.3.0 Closes: https://github.com/gentoo/gentoo/pull/3204 --- x11-misc/libinput-gestures/Manifest | 1 + .../libinput-gestures-2.15.ebuild | 33 ++++++++++++++++++ .../libinput-gestures-9999.ebuild | 34 +++++++++++++++++++ x11-misc/libinput-gestures/metadata.xml | 22 ++++++++++++ 4 files changed, 90 insertions(+) create mode 100644 x11-misc/libinput-gestures/Manifest create mode 100644 x11-misc/libinput-gestures/libinput-gestures-2.15.ebuild create mode 100644 x11-misc/libinput-gestures/libinput-gestures-9999.ebuild create mode 100644 x11-misc/libinput-gestures/metadata.xml diff --git a/x11-misc/libinput-gestures/Manifest b/x11-misc/libinput-gestures/Manifest new file mode 100644 index 000000000000..347915af5e54 --- /dev/null +++ b/x11-misc/libinput-gestures/Manifest @@ -0,0 +1 @@ +DIST libinput-gestures-2.15.tar.gz 11468 SHA256 95a91a2c7c4c9f91c035f7defb6868a92f6c61218d0fcb0a87b0fa63527c2912 SHA512 b0449ce3355e700655cf450b62e239566f2a49127bb4afeda659e04026657d86f13dbfd101399428771b92323e6c55cf40f75bad79025ff80eb9003d85345c23 WHIRLPOOL 9ff81290ecadc17bf2fbfeeb0a5ce1ff0adb059c1675f111a18144f13ac058f5efda445f139fb6158b17ec81a0b6014400d9c54fa8c393f206f4e4c71382b310 diff --git a/x11-misc/libinput-gestures/libinput-gestures-2.15.ebuild b/x11-misc/libinput-gestures/libinput-gestures-2.15.ebuild new file mode 100644 index 000000000000..d586babd724f --- /dev/null +++ b/x11-misc/libinput-gestures/libinput-gestures-2.15.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python{3_4,3_5} ) + +inherit python-single-r1 + +DESCRIPTION="Actions gestures on your touchpad using libinput" +HOMEPAGE="https://github.com/bulletmark/${PN}" +SRC_URI="https://github.com/bulletmark/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="kde gtk" + +RDEPEND="${PYTHON_DEPS} + dev-libs/libinput + x11-misc/xdotool + x11-misc/wmctrl" +DEPEND="dev-libs/libinput + dev-util/desktop-file-utils + gtk? ( x11-libs/gtk+:3 ) + kde? ( kde-plasma/kde-cli-tools:5 )" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +pkg_postinst() { + elog "You must be in the input group to read the touchpad device." +} diff --git a/x11-misc/libinput-gestures/libinput-gestures-9999.ebuild b/x11-misc/libinput-gestures/libinput-gestures-9999.ebuild new file mode 100644 index 000000000000..247b67f8e862 --- /dev/null +++ b/x11-misc/libinput-gestures/libinput-gestures-9999.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python{3_4,3_5} ) + +inherit git-r3 python-single-r1 + +DESCRIPTION="Actions gestures on your touchpad using libinput" +HOMEPAGE="https://github.com/bulletmark/${PN}" +EGIT_REPO_URI="https://github.com/bulletmark/${PN}.git" +SRC_URI="" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="" +IUSE="kde gtk" + +RDEPEND="${PYTHON_DEPS} + dev-libs/libinput + x11-misc/xdotool + x11-misc/wmctrl" +DEPEND="dev-libs/libinput + dev-util/desktop-file-utils + gtk? ( x11-libs/gtk+:3 ) + kde? ( kde-plasma/kde-cli-tools:5 )" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +pkg_postinst() { + elog "You must be in the input group to read the touchpad device." +} diff --git a/x11-misc/libinput-gestures/metadata.xml b/x11-misc/libinput-gestures/metadata.xml new file mode 100644 index 000000000000..60f4aae4717f --- /dev/null +++ b/x11-misc/libinput-gestures/metadata.xml @@ -0,0 +1,22 @@ + + + + + spiderx@spiderx.dp.ua + Vladimir Pavljuchenkov + + + proxy-maint@gentoo.org + Proxy Maintainers + + + This is a utility which reads libinput gestures from your touchpad + and maps them to gestures you configure in a configuration file. + Each gesture can be configured to activate a shell command which is + typically an xdotool command to action desktop/window/application + keyboard combinations and commands. + + + bulletmark/libinput-gestures + + -- 2.26.2