aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGravatar √Čtienne Deparis 2020-10-01 10:52:36 +0200
committerGravatar √Čtienne Deparis 2020-10-01 10:52:36 +0200
commita746bc79000f71f0711c6fd3bad1ef0c53229446 (patch)
tree74866d93c9c1f65a5b407197b149e37411bb7234
parentb6ed4cc9a966adc8066c1e8b56d98d15cd2359fd (diff)
downloadpkgbuilds-a746bc79000f71f0711c6fd3bad1ef0c53229446.tar.gz
pkgbuilds-a746bc79000f71f0711c6fd3bad1ef0c53229446.tar.xz
pkgbuilds-a746bc79000f71f0711c6fd3bad1ef0c53229446.zip
Remove mouse shortcut in st
-rw-r--r--my_st/PKGBUILD2
-rw-r--r--my_st/config.h.patch13
-rw-r--r--my_st/config.h.patch.hidpi13
3 files changed, 25 insertions, 3 deletions
diff --git a/my_st/PKGBUILD b/my_st/PKGBUILD
index 846efd3..fd071b8 100644
--- a/my_st/PKGBUILD
+++ b/my_st/PKGBUILD
@@ -14,7 +14,7 @@ url=https://st.suckless.org
source=(https://dl.suckless.org/$pkgname/$pkgname-$pkgver.tar.gz
config.h.patch)
sha256sums=('d42d3ceceb4d6a65e32e90a5336e3d446db612c3fbd9ebc1780bc6c9a03346a6'
- '34968b9edb2ed6514e206e985a4cb83fe011cc79d5f427fbd0b90ded1b018235')
+ '2cc5c7b4200a6da7aa1110617ceaad67ec6c8d992129f6396a3b3e246698092d')
prepare() {
cd $srcdir/$pkgname-$pkgver
diff --git a/my_st/config.h.patch b/my_st/config.h.patch
index f5c552b..73f96a1 100644
--- a/my_st/config.h.patch
+++ b/my_st/config.h.patch
@@ -1,5 +1,5 @@
--- st-master/config.def.h 2020-06-19 11:29:45.000000000 +0200
-+++ config.def.h 2020-06-22 09:35:04.890398663 +0200
++++ config.def.h 2020-10-01 10:45:53.139981768 +0200
@@ -5,7 +5,8 @@
*
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
@@ -113,3 +113,14 @@
/*
* Force mouse select/shortcuts while mask is active (when MODE_MOUSE is set).
+@@ -175,10 +180,6 @@
+ static MouseShortcut mshortcuts[] = {
+ /* mask button function argument release */
+ { XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 },
+- { ShiftMask, Button4, ttysend, {.s = "\033[5;2~"} },
+- { XK_ANY_MOD, Button4, ttysend, {.s = "\031"} },
+- { ShiftMask, Button5, ttysend, {.s = "\033[6;2~"} },
+- { XK_ANY_MOD, Button5, ttysend, {.s = "\005"} },
+ };
+
+ /* Internal keyboard shortcuts. */
diff --git a/my_st/config.h.patch.hidpi b/my_st/config.h.patch.hidpi
index cc0b789..2a76307 100644
--- a/my_st/config.h.patch.hidpi
+++ b/my_st/config.h.patch.hidpi
@@ -1,5 +1,5 @@
--- st-master/config.def.h 2020-06-19 11:29:45.000000000 +0200
-+++ config.def.h 2020-06-22 09:35:04.890398663 +0200
++++ config.def.h 2020-10-01 10:45:53.139981768 +0200
@@ -5,7 +5,8 @@
*
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
@@ -113,3 +113,14 @@
/*
* Force mouse select/shortcuts while mask is active (when MODE_MOUSE is set).
+@@ -175,10 +180,6 @@
+ static MouseShortcut mshortcuts[] = {
+ /* mask button function argument release */
+ { XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 },
+- { ShiftMask, Button4, ttysend, {.s = "\033[5;2~"} },
+- { XK_ANY_MOD, Button4, ttysend, {.s = "\031"} },
+- { ShiftMask, Button5, ttysend, {.s = "\033[6;2~"} },
+- { XK_ANY_MOD, Button5, ttysend, {.s = "\005"} },
+ };
+
+ /* Internal keyboard shortcuts. */