[Share Experiences] 分享自用手势文件
Tofloor
poster avatar
raphael_ren
deepin
2022-01-10 19:48
Author

文件路径: /usr/share/dde-daemon/gesture.json

需要安装xdotool

[
    {
        "Event": {
            "Name": "pinch",
            "Direction": "out",
            "Fingers": 3
        },
        "Action": {
            "Type": "built-in",
            "Action": "ToggleMaximize"
        }
    },
    {
        "Event": {
            "Name": "pinch",
            "Direction": "in",
            "Fingers": 3
        },
        "Action": {
            "Type": "built-in",
            "Action": "ToggleMaximize"
        }
    },
    {
        "Event": {
            "Name": "swipe",
            "Direction": "up",
            "Fingers": 3
        },
        "Action": {
            "Type": "built-in",
            "Action": "ShowAllWindow"
        }
    },
    {
        "Event": {
            "Name": "swipe",
            "Direction": "down",
            "Fingers": 3
        },
        "Action": {
            "Type": "built-in",
            "Action": "Handle4Or5FingersSwipeDown"
        }
    },
    {
        "Event": {
            "Name": "swipe",
            "Direction": "left",
            "Fingers": 3
        },
        "Action": {
            "Type": "built-in",
            "Action": "ReverseSwitchApplication"
        }
    },
    {
        "Event": {
            "Name": "swipe",
            "Direction": "right",
            "Fingers": 3
        },
        "Action": {
            "Type": "built-in",
            "Action": "SwitchApplication"
        }
    },
    {
        "Event": {
	    "Name": "tap",
            "Direction": "none",
            "Fingers": 3
	},
        "Action": {
            "Type": "commandline",
            "Action": "xdotool click 2"
        }
    },
    {
        "Event": {
            "Name": "swipe",
            "Direction": "up",
            "Fingers": 4
        },
        "Action": {
            "Type": "built-in",
            "Action": "Handle4Or5FingersSwipeUp"
        }
    },
    {
        "Event": {
            "Name": "swipe",
            "Direction": "down",
            "Fingers": 4
        },
        "Action": {
            "Type": "built-in",
            "Action": "Handle4Or5FingersSwipeDown"
        }
    },
    {
        "Event": {
            "Name": "swipe",
            "Direction": "right",
            "Fingers": 4
        },
        "Action": {
            "Type": "built-in",
            "Action": "ReverseSwitchWorkspace"
        }
    },
    {
        "Event": {
            "Name": "swipe",
            "Direction": "left",
            "Fingers": 4
        },
        "Action": {
            "Type": "built-in",
            "Action": "SwitchWorkspace"
        }
    },
    {
        "Event": {
            "Name": "tap",
            "Direction": "none",
            "Fingers": 4
        },
        "Action": {
            "Type": "commandline",
            "Action": "dbus-send --type=method_call --dest=com.deepin.dde.Launcher /com/deepin/dde/Launcher com.deepin.dde.Launcher.Toggle"
        }
    },
    {
        "Event": {
            "Name": "swipe",
            "Direction": "up",
            "Fingers": 5
        },
        "Action": {
            "Type": "built-in",
            "Action": "Handle4Or5FingersSwipeUp"
        }
    },
    {
        "Event": {
            "Name": "swipe",
            "Direction": "down",
            "Fingers": 5
        },
        "Action": {
            "Type": "built-in",
            "Action": "Handle4Or5FingersSwipeDown"
        }
    },
    {
        "Event": {
            "Name": "swipe",
            "Direction": "right",
            "Fingers": 5
        },
        "Action": {
            "Type": "built-in",
            "Action": "ReverseSwitchWorkspace"
        }
    },
    {
        "Event": {
            "Name": "swipe",
            "Direction": "left",
            "Fingers": 5
        },
        "Action": {
            "Type": "built-in",
            "Action": "SwitchWorkspace"
        }
    },
    {
        "Event": {
            "Name": "tap",
            "Direction": "none",
            "Fingers": 5
        },
        "Action": {
            "Type": "commandline",
            "Action": "dbus-send --type=method_call --dest=com.deepin.dde.Launcher /com/deepin/dde/Launcher com.deepin.dde.Launcher.Toggle"
        }
    }
]

Reply Favorite View the author
All Replies
babyfengfjx
Super Moderator
CQA
2022-01-10 19:49
#1

大佬,能搞个小白教程不😄

Reply View the author
DebuggerX
deepin
2022-01-11 19:34
#2

支持~

我正在写一个手势文件的编辑管理工具,应该很快就可以发布使用了,到时候可以通过软件方便地分享~

@babyfengfjx 可以稍微等等,等我写的工具出来了,直接下载网友分享的手势配置,一键应用即可

工具截图(开发中):

image.png

Reply View the author
raphael_ren
deepin
2022-01-11 21:42
#3
DebuggerX

支持~

我正在写一个手势文件的编辑管理工具,应该很快就可以发布使用了,到时候可以通过软件方便地分享~

@babyfengfjx 可以稍微等等,等我写的工具出来了,直接下载网友分享的手势配置,一键应用即可

工具截图(开发中):

image.png

优秀!

Reply View the author
DebuggerX
deepin
2022-03-12 01:14
#4

LZ您好,我专为deepin/UOS系统开发了一款自定义手势的管理工具,刚刚上架了应用商店,可否请您把您的方案上传到应用内的方案市场中,以便其他用户可以直接下载使用呢?

如果方便的话,请通过如下方法安装软件:

方法一:使用系统应用商店,搜索"DDE手势管理器",下载图标为的应用

方法二:如果不想安装软件,或者由于各种原因无法安装,可以使用浏览器访问 DDE手势管理器-web版 直接在线编辑手势方案

Reply View the author
HOUSUM 深
deepin
2023-07-29 16:44
#5

能不能说明一下,这些内建动作的xdotools脚本是什么情况

例如这个

"Action": {
"Type": "built-in",
"Action": "SplitWindowRight"
}

我想为这个动作绑定快捷键 super+right

Reply View the author