tony / oxwm

added default info to default config for toggle-able bar and gestures. Browse files
tonybanters committed 24d ago parent b33b7bb commit a96a42b2045cfd4d6a0466221064a677eea91b91
Showing 4 changed files with 5 additions and 4 deletions. UnifiedSplit
+1 −1 README.md
@@ -91,7 +91,7 @@ cd oxwm
91 91 zig build -Doptimize=ReleaseSmall --prefix /usr
92 92 ```
93 93
94 -Touchpad swipe gestures for the scrolling layout use libinput and libudev, which only exist on Linux. They are built in by default and skipped automatically on BSD targets. Pass `-Dno_gestures` to leave them out anywhere, or use `zig build openbsd` (also `freebsd`, `netbsd`, `bsd`) which does the same and installs the result.
94 +Touchpad swipe gestures for the scrolling layout use libinput and libudev, which only exist on Linux. They are compiled in by default (needs the libinput and libudev development packages) and skipped automatically on BSD targets. At runtime they stay off until you uncomment `oxwm.scroll.set_gesture_enabled(true)` in your config. Pass `-Dno_gestures` to leave them out anywhere, or use `zig build openbsd` (also `freebsd`, `netbsd`, `bsd`) which does the same and installs the result.
95 95
96 96 ### Setting up OXWM
97 97
+1 −1 src/config/config.zig
@@ -229,7 +229,7 @@ pub const Config = struct {
229 229 scroll_default_width: f32 = 0.5,
230 230 scroll_width_presets: [8]f32 = .{ 1.0 / 3.0, 0.5, 2.0 / 3.0, 0, 0, 0, 0, 0 },
231 231 scroll_width_preset_count: u32 = 3,
232 - gesture_enabled: bool = true,
232 + gesture_enabled: bool = false,
233 233 gesture_fingers: u32 = 3,
234 234 gesture_speed: f32 = 2.0,
235 235 gesture_natural: bool = false,
+2 −1 templates/config.lua
@@ -134,7 +134,8 @@ oxwm.set_layout_symbol("tabbed", "[=]")
134 134 -- oxwm.scroll.set_default_width(0.5)
135 135 -- oxwm.scroll.set_width_presets({ 1 / 3, 1 / 2, 2 / 3 })
136 136 -- Three-finger touchpad swipes scroll the strip and snap to the nearest window
137 --- (needs read access to /dev/input, usually the "input" group)
137 +-- Off by default. Uncomment this to enable trackpad gestures
138 +-- (needs libinput at build time and read access to /dev/input, usually the "input" group)
138 139 -- oxwm.scroll.set_gesture_enabled(true)
139 140 -- oxwm.scroll.set_gesture_fingers(3)
140 141 -- oxwm.scroll.set_gesture_speed(2.0)
+1 −1 templates/oxwm.lua
@@ -260,7 +260,7 @@ function oxwm.scroll.set_default_width(width) end
260 260 function oxwm.scroll.set_width_presets(presets) end
261 261
262 262 ---Enable or disable touchpad swipe gestures (requires read access to /dev/input)
263 ----@param enabled boolean Default true
263 +---@param enabled boolean Default false
264 264 function oxwm.scroll.set_gesture_enabled(enabled) end
265 265
266 266 ---Set how many fingers a swipe needs to scroll the layout