mirror of
https://github.com/pigmonkey/spark.git
synced 2026-01-23 02:24:09 +00:00
support configurable middle click scoll button
I'm using button 12, which on my Elecom HUGE trackball is labeled "Fn3". Existing users can set this variable to 2 if they wish to retain the previous behaviour.
This commit is contained in:
parent
d8d5a799c0
commit
b1b33b20d2
3 changed files with 4 additions and 4 deletions
|
|
@ -207,7 +207,7 @@ himawaripy:
|
|||
run_on: trusted
|
||||
flags: --auto-offset --level 4
|
||||
|
||||
middle_click_scroll: True
|
||||
middle_click_scroll: 12
|
||||
|
||||
display_manager: lightdm
|
||||
gdm:
|
||||
|
|
|
|||
|
|
@ -30,8 +30,8 @@
|
|||
- user
|
||||
|
||||
- name: Enable middle-click scrolling
|
||||
copy: src=30-scroll.conf dest=/etc/X11/xorg.conf.d/30-scroll.conf
|
||||
when: middle_click_scroll is defined and middle_click_scroll == True
|
||||
template: src=30-scroll.conf dest=/etc/X11/xorg.conf.d/30-scroll.conf
|
||||
when: middle_click_scroll is defined
|
||||
|
||||
- include: sxhkd.yml
|
||||
- include: unclutter.yml
|
||||
|
|
|
|||
|
|
@ -2,5 +2,5 @@ Section "InputClass"
|
|||
Identifier "libinput middle click scroll"
|
||||
Driver "libinput"
|
||||
Option "ScrollMethod" "button"
|
||||
Option "ScrollButton" "2"
|
||||
Option "ScrollButton" "{{ middle_click_scroll }}"
|
||||
EndSection
|
||||
Loading…
Add table
Add a link
Reference in a new issue