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}')