From f705c4f5c7a3b319d0525c67c2ff7dbbbbab2d16 Mon Sep 17 00:00:00 2001 From: Murat Date: Fri, 27 Oct 2023 02:32:31 +0200 Subject: [PATCH] added a variable for the target scroll speed --- Tricks.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tricks.md b/Tricks.md index 751ecb7..de0e7f2 100644 --- a/Tricks.md +++ b/Tricks.md @@ -285,9 +285,9 @@ This script set 6x scroll speed only if app like chromium is focused, require ht ```python #!/usr/bin/env python import i3ipc -scroll_apps = ['discord'] +scroll_apps = ['discord', 'kitty'] default_speed = 1 # Reading current value would be nice - +increased_speed = 6 def on_window_focus(i3, e): v = default_speed @@ -301,7 +301,7 @@ def on_window_focus(i3, e): return if c in scroll_apps: - v = 8 + v = increased_speed i3.command(f'input type:pointer scroll_factor {v}')