mirror of
https://github.com/dguglielmi/sunny-overlay.git
synced 2025-12-06 16:02:39 +01:00
app-misc/piper: add ebuild and patches
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
From 2d3af894136fad8fbce54963005c58a8c125376c Mon Sep 17 00:00:00 2001
|
||||
From: Jente Hidskes <hjdskes@gmail.com>
|
||||
Date: Thu, 7 Sep 2017 11:51:46 +0200
|
||||
Subject: [PATCH 11/30] ratbagd: sync with libratbag
|
||||
|
||||
---
|
||||
piper/ratbagd.py | 18 +-----------------
|
||||
1 file changed, 1 insertion(+), 17 deletions(-)
|
||||
|
||||
diff --git a/piper/ratbagd.py b/piper/ratbagd.py
|
||||
index 5f889aa..e74039d 100644
|
||||
--- a/piper/ratbagd.py
|
||||
+++ b/piper/ratbagd.py
|
||||
@@ -621,7 +621,6 @@ class RatbagdButton(_RatbagdDBus):
|
||||
ACTION_TYPE_NONE = 0
|
||||
ACTION_TYPE_BUTTON = 1
|
||||
ACTION_TYPE_SPECIAL = 2
|
||||
- ACTION_TYPE_KEY = 3
|
||||
ACTION_TYPE_MACRO = 4
|
||||
|
||||
ACTION_SPECIAL_UNKNOWN = (1 << 30)
|
||||
@@ -764,26 +763,11 @@ class RatbagdButton(_RatbagdDBus):
|
||||
"""
|
||||
self._set_dbus_property("SpecialMapping", "u", special)
|
||||
|
||||
- @GObject.Property
|
||||
- def key(self):
|
||||
- """A list of integers, the first being the keycode and the other
|
||||
- entries, if any, are modifiers (if mapped to key)."""
|
||||
- return self._get_dbus_property("KeyMapping")
|
||||
-
|
||||
- @key.setter
|
||||
- def key(self, keys):
|
||||
- """Set the key mapping.
|
||||
-
|
||||
- @param keys A list of integers, the first being the keycode and the rest
|
||||
- modifiers.
|
||||
- """
|
||||
- self._set_dbus_property("KeyMapping", "au", keys)
|
||||
-
|
||||
@GObject.Property
|
||||
def action_type(self):
|
||||
"""An enum describing the action type of the button. One of
|
||||
ACTION_TYPE_NONE, ACTION_TYPE_BUTTON, ACTION_TYPE_SPECIAL,
|
||||
- ACTION_TYPE_KEY, ACTION_TYPE_MACRO. This decides which
|
||||
+ ACTION_TYPE_MACRO. This decides which
|
||||
*Mapping property has a value.
|
||||
"""
|
||||
return self._get_dbus_property("ActionType")
|
||||
--
|
||||
2.16.1
|
||||
|
||||
Reference in New Issue
Block a user