Fix: 修改touchgesture.xml配置文件

This commit is contained in:
yan wang 2022-11-30 11:21:23 +08:00
parent 81b838ad15
commit 5bf69c4454
1 changed files with 38 additions and 20 deletions

View File

@ -3,18 +3,24 @@
<!-- 1指 长按右键 -->
<gesture type="LONGPRESS" fingers="1" direction="NoDirection" touchdevice="TouchScreen">
<action actiontype="SEND_BUTTON">
<enable>true</enable>
<eventstage>start</eventstage>
<repeat>false</repeat>
<button>3</button>
<timeout>800</timeout>
<enable>true</enable>
<eventstage>start</eventstage>
<repeat>false</repeat>
<button>3</button>
<timeout>800</timeout>
</action>
<blacklist>
<procname>kylin-kmre-window</procname>
<procname>chromium-browser</procname>
<procname>pluma</procname>
<procname>TXEduPlatform</procname>
</blacklist>
</gesture>
<!-- 1指 边缘下划 1左键 2中键 3右键-->
<gesture type="EDGESWIPE" fingers="1" direction="Down" touchdevice="TouchScreen">
<action actiontype="DBUS_ACTION">
<enable>true</enable>
<enable>false</enable>
<eventstage>start</eventstage>
<repeat>false</repeat>
<dbus>session,org.kde.KWin,/KWin,org.kde.KWin,alwaysShowDesktop</dbus>
@ -34,21 +40,32 @@
</gesture>
<!-- 1指 边缘上划 -->
<gesture type="EDGESWIPE" fingers="1" direction="Up" touchdevice="TouchScreen" timemore="400" swipemore="500">
<action actiontype="DBUS_ACTION">
<enable>true</enable>
<gesture type="EDGESWIPE" fingers="1" direction="Up" touchdevice="TouchScreen" timemore="400" swipemore="500">
<action actiontype="DBUS_ACTION">
<enable>false</enable>
<eventstage>trigger</eventstage>
<repeat>false</repeat>
<dbus>session,org.kde.KWin,/MultitaskView,org.kde.KWin.MultitaskView,show</dbus>
<arg></arg>
</action>
</action>
</gesture>
<gesture type="EDGESWIPE" fingers="1" direction="Up" touchdevice="TouchScreen" timeless="400" swipeless="500">
<action actiontype="DBUS_SIG">
<gesture type="EDGESWIPE" fingers="1" direction="Up" touchdevice="TouchScreen" timeless="400" swipeless="500">
<action actiontype="DBUS_SIG">
<enable>false</enable>
<eventstage>trigger</eventstage>
<repeat>false</repeat>
</action>
</gesture>
<gesture type="EDGESWIPE" fingers="1" direction="Up" touchdevice="TouchScreen" timeless="300">
<action actiontype="DBUS_ACTION">
<enable>true</enable>
<distance>20</distance>
<eventstage>trigger</eventstage>
<repeat>false</repeat>
<dbus>session,org.kde.KWin,/KWin,org.kde.KWin,alwaysShowDesktop</dbus>
<arg></arg>
</action>
</gesture>
@ -90,7 +107,7 @@
<modifiers>Alt_L</modifiers>
<keys>Left</keys>
</action>
</gesture>
</gesture>
<!-- 1指 右划 -->
<gesture type="SWIPE" fingers="1" direction="Right" touchdevice = "TouchScreen">
@ -105,12 +122,13 @@
<!-- 四指下滑 打开全局搜索 -->
<gesture type="SWIPE" fingers="4" direction="Down" touchdevice = "TouchScreen">
<action actiontype="RUN_COMMAND">
<enable>true</enable>
<eventstage>start</eventstage>
<command>ukui-search -s</command>
<repeat>false</repeat>
</action>
<action actiontype="DBUS_ACTION">
<enable>true</enable>
<eventstage>trigger</eventstage>
<repeat>false</repeat>
<dbus>session,com.ukui.search.service,/,org.ukui.search.service,showWindow</dbus>
<arg></arg>
</action>
</gesture>
<!-- 四指左右滑动切换任务 -->
@ -127,7 +145,7 @@
<gesture type="SWIPE" fingers="4" direction="Right" touchdevice = "TouchScreen">
<action actiontype="SEND_KEYS">
<enable>true</enable>
<enable>true</enable>
<eventstage>start</eventstage>
<repeat>true</repeat>
<distance>80</distance>