🍭
Pop!_OS 21.04でタッチパッドジェスチャーを反転させる
Pop!_OS 21.04 のタッチパッドジェスチャーはtoucheggで実現しています。
フロントエンドとしてTouché(flathub)がありますが、反転させた設定ファイルを直接作成したほうがてっとり早いため設定ファイルを作成する方法を記載します。
設定ファイルを作成する
$ mkdir -p ~/.config/touchegg
$ cp /usr/share/touchegg/touchegg.conf ~/.config/touchegg/touchegg.conf
設定ファイルを編集する
--- /usr/share/touchegg/touchegg.conf 2021-04-28 01:34:30.000000000 +0900
+++ .config/touchegg/touchegg.conf 2021-11-20 22:16:07.378436414 +0900
@@ -40,7 +40,7 @@
Configuration for every application.
-->
<application name="All">
- <gesture type="SWIPE" fingers="3" direction="UP">
+ <gesture type="SWIPE" fingers="3" direction="DOWN">
<action type="RUN_COMMAND">
<repeat>false</repeat>
<command>dbus-send --session --dest=com.System76.PopShell --type=method_call /com/System76/PopShell com.System76.PopShell.FocusUp</command>
@@ -48,7 +48,7 @@
</action>
</gesture>
- <gesture type="SWIPE" fingers="3" direction="DOWN">
+ <gesture type="SWIPE" fingers="3" direction="UP">
<action type="RUN_COMMAND">
<repeat>false</repeat>
<command>dbus-send --session --dest=com.System76.PopShell --type=method_call /com/System76/PopShell com.System76.PopShell.FocusDown</command>
@@ -56,7 +56,7 @@
</action>
</gesture>
- <gesture type="SWIPE" fingers="3" direction="LEFT">
+ <gesture type="SWIPE" fingers="3" direction="RIGHT">
<action type="RUN_COMMAND">
<repeat>false</repeat>
<command>dbus-send --session --dest=com.System76.PopShell --type=method_call /com/System76/PopShell com.System76.PopShell.FocusLeft</command>
@@ -64,7 +64,7 @@
</action>
</gesture>
- <gesture type="SWIPE" fingers="3" direction="RIGHT">
+ <gesture type="SWIPE" fingers="3" direction="LEFT">
<action type="RUN_COMMAND">
<repeat>false</repeat>
<command>dbus-send --session --dest=com.System76.PopShell --type=method_call /com/System76/PopShell com.System76.PopShell.FocusRight</command>
@@ -72,7 +72,7 @@
</action>
</gesture>
- <gesture type="SWIPE" fingers="4" direction="UP">
+ <gesture type="SWIPE" fingers="4" direction="DOWN">
<action type="RUN_COMMAND">
<repeat>false</repeat>
<command>dbus-send --session --dest=org.gnome.Shell --type=method_call /org/gnome/Shell org.gnome.Shell.Eval string:'let pop_cosmic = Main.extensionManager.lookup("pop-cosmic@system76.com"); if (pop_cosmic) { pop_cosmic.stateObj.gesture(pop_cosmic.stateObj.GESTURE_UP); }'</command>
@@ -80,7 +80,7 @@
</action>
</gesture>
- <gesture type="SWIPE" fingers="4" direction="DOWN">
+ <gesture type="SWIPE" fingers="4" direction="UP">
<action type="RUN_COMMAND">
<repeat>false</repeat>
<command>dbus-send --session --dest=org.gnome.Shell --type=method_call /org/gnome/Shell org.gnome.Shell.Eval string:'let pop_cosmic = Main.extensionManager.lookup("pop-cosmic@system76.com"); if (pop_cosmic) { pop_cosmic.stateObj.gesture(pop_cosmic.stateObj.GESTURE_DOWN); }'</command>
@@ -88,7 +88,7 @@
</action>
</gesture>
- <gesture type="SWIPE" fingers="4" direction="LEFT">
+ <gesture type="SWIPE" fingers="4" direction="RIGHT">
<action type="RUN_COMMAND">
<repeat>false</repeat>
<command>dbus-send --session --dest=org.gnome.Shell --type=method_call /org/gnome/Shell org.gnome.Shell.Eval string:'let pop_cosmic = Main.extensionManager.lookup("pop-cosmic@system76.com"); if (pop_cosmic) { pop_cosmic.stateObj.gesture(pop_cosmic.stateObj.GESTURE_LEFT); }'</command>
@@ -96,7 +96,7 @@
</action>
</gesture>
- <gesture type="SWIPE" fingers="4" direction="RIGHT">
+ <gesture type="SWIPE" fingers="4" direction="LEFT">
<action type="RUN_COMMAND">
<repeat>false</repeat>
<command>dbus-send --session --dest=org.gnome.Shell --type=method_call /org/gnome/Shell org.gnome.Shell.Eval string:'let pop_cosmic = Main.extensionManager.lookup("pop-cosmic@system76.com"); if (pop_cosmic) { pop_cosmic.stateObj.gesture(pop_cosmic.stateObj.GESTURE_RIGHT); }'</command>
反映
ログインしなおせば反映されるはずです。
Discussion