i3 synclient 没有自然滚动

i3 synclient 没有自然滚动

我尝试在触摸板工作时实现自然滚动。目前,我正在使用来synclient设置触摸板配置。我的文件中有以下内容.i3/config

exec --no-startup-id synclient VertEdgeScroll=1 TapButton1=1 ... NaturalScrolling=1

但是这对自然滚动没有影响。当我运行synclient查看设置了哪些配置时,没有以下条目NaturalScrolling

Parameter settings:
    LeftEdge                = 129
    RightEdge               = 3110
    TopEdge                 = 126
    BottomEdge              = 2221
    FingerLow               = 25
    FingerHigh              = 30
    MaxTapTime              = 180
    MaxTapMove              = 175
    MaxDoubleTapTime        = 180
    SingleTapTimeout        = 180
    ClickTime               = 100
    EmulateMidButtonTime    = 0
    EmulateTwoFingerMinZ    = 282
    EmulateTwoFingerMinW    = 7
    VertScrollDelta         = 79
    HorizScrollDelta        = 79
    VertEdgeScroll          = 1
    HorizEdgeScroll         = 0
    CornerCoasting          = 0
    VertTwoFingerScroll     = 1
    HorizTwoFingerScroll    = 0
    MinSpeed                = 1
    MaxSpeed                = 1.75
    AccelFactor             = 0.0500125
    TouchpadOff             = 0
    LockedDrags             = 0
    LockedDragTimeout       = 5000
    RTCornerButton          = 0
    RBCornerButton          = 0
    LTCornerButton          = 0
    LBCornerButton          = 0
    TapButton1              = 1
    TapButton2              = 1
    TapButton3              = 1
    ClickFinger1            = 1
    ClickFinger2            = 3
    ClickFinger3            = 2
    CircularScrolling       = 0
    CircScrollDelta         = 0.1
    CircScrollTrigger       = 0
    CircularPad             = 0
    PalmDetect              = 0
    PalmMinWidth            = 10
    PalmMinZ                = 200
    CoastingSpeed           = 20
    CoastingFriction        = 50
    PressureMotionMinZ      = 30
    PressureMotionMaxZ      = 160
    PressureMotionMinFactor = 1
    PressureMotionMaxFactor = 1
    GrabEventDevice         = 0
    TapAndDragGesture       = 1
    AreaLeftEdge            = 0
    AreaRightEdge           = 0
    AreaTopEdge             = 0
    AreaBottomEdge          = 0
    HorizHysteresis         = 19
    VertHysteresis          = 19
    ClickPad                = 1
    RightButtonAreaLeft     = 1619
    RightButtonAreaRight    = 0
    RightButtonAreaTop      = 1924
    RightButtonAreaBottom   = 0
    MiddleButtonAreaLeft    = 0
    MiddleButtonAreaRight   = 0
    MiddleButtonAreaTop     = 0
    MiddleButtonAreaBottom  = 0

答案1

对于遇到这种情况的人来说,虽然synclient没有明确的NaturalScrolling选项,但它有VertScrollDeltaHorizScrollDelta。只需将这些设置为负值即可翻转滚动方向:

synclient VertScrollDelta=-79
synclient HorizScrollDelta=-79

因此在你的 i3 配置中添加:

exec synclient VertScrollDelta=-79 synclient HorizScrollDelta=-79

相关内容