aboutsummaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-03-23 20:23:21 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-03-23 20:30:45 +0400
commita16a0f0e52d6df8abd602baa15cee44e0656d790 (patch)
tree821c7c4a71975dd5b23e8b4d0ddd4f12465b0c0c /resources
parent6ba195211bf60c3b753e4167b047b055dd5c129d (diff)
downloadniri-a16a0f0e52d6df8abd602baa15cee44e0656d790.tar.gz
niri-a16a0f0e52d6df8abd602baa15cee44e0656d790.tar.bz2
niri-a16a0f0e52d6df8abd602baa15cee44e0656d790.zip
Implement TouchpadScroll binds
Diffstat (limited to 'resources')
-rw-r--r--resources/default-config.kdl9
1 files changed, 9 insertions, 0 deletions
diff --git a/resources/default-config.kdl b/resources/default-config.kdl
index 3409c110..485ab649 100644
--- a/resources/default-config.kdl
+++ b/resources/default-config.kdl
@@ -553,6 +553,15 @@ binds {
Mod+Ctrl+Shift+WheelScrollDown { move-column-right; }
Mod+Ctrl+Shift+WheelScrollUp { move-column-left; }
+ // Similarly, you can bind touchpad scroll "ticks".
+ // Touchpad scrolling is continuous, so for these binds it is split into
+ // discrete intervals.
+ // These binds are also affected by touchpad's natural-scroll, so these
+ // example binds are "inverted", since we have natural-scroll enabled for
+ // touchpads by default.
+ // Mod+TouchpadScrollDown { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.02+"; }
+ // Mod+TouchpadScrollUp { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.02-"; }
+
// You can refer to workspaces by index. However, keep in mind that
// niri is a dynamic workspace system, so these commands are kind of
// "best effort". Trying to refer to a workspace index bigger than