Skip to content

Commit

Permalink
[sawfish] Support switching viewports with mouse wheel.
Browse files Browse the repository at this point in the history
  • Loading branch information
mina86 committed Jun 1, 2024
1 parent 6761389 commit 37e4d2e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sawfishrc
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,14 @@ Windows are matched in most recently focused first order."
(bind-keys window-keymap
(concat "W-" (elt keys i))
(lambda () (set-window-viewport (input-focus) i 0))))
(bind-keys global-keymap
"W-Button4-Click"
(lambda ()
(set-screen-viewport (% (1+ (car (screen-viewport))) 10) 0)))
(bind-keys global-keymap
"W-Button5-Click"
(lambda ()
(set-screen-viewport (% (+ 9 (car (screen-viewport))) 10) 0)))

;;}}}
;;{{{ Transparency
Expand Down

0 comments on commit 37e4d2e

Please sign in to comment.