2 个版本
0.1.1 | 2022年6月19日 |
---|---|
0.1.0 | 2022年6月19日 |
#31 在 无障碍访问
10KB
222 行
关于
使用二分查找算法通过键盘移动鼠标光标的无障碍工具
需求
rust开发环境
curl https://sh.rustup.rs -sSf | sh
运行在x11之上的tiled窗口管理器,例如i3或leftwm
mickey可执行文件
cargo install mickey
用法
# Move the cursor to center of screen and restore the cursor speed in all axis
mickey centralize
# Emulate click with mouse at current cursor position and restore the cursor speed in all axis
mickey click left
# Move cursor to left or right and decrease in half the cursor speed at axis X
mickey move left
mickey move right
# Move cursor to top or bottom and decrease in half the cursor speed at axis Y
mickey move top
mickey move bottom
# Emulate a hold or release of left mouse button
mickey hold
# Show help with another options
mickey
示例
leftwm配置示例
#~/.config/leftwm/config.toml
# ...
[[keybind]]
modifier = ["Alt"]
key = "1"
command = "Execute"
value = "mickey click -r 18 scroll-up"
[[keybind]]
modifier = ["Alt"]
key = "2"
command = "Execute"
value = "mickey click -r 6 scroll-up"
[[keybind]]
modifier = ["Alt"]
key = "3"
command = "Execute"
value = "mickey click -r 6 scroll-down"
[[keybind]]
modifier = ["Alt"]
key = "4"
command = "Execute"
value = "mickey click -r 6 scroll-down"
[[keybind]]
modifier = ["Alt"]
key = "q"
command = "Execute"
value = "mickey click -r 3 left"
[[keybind]]
modifier = ["Alt"]
key = "w"
command = "Execute"
value = "mickey move top"
[[keybind]]
modifier = ["Alt"]
key = "s"
command = "Execute"
value = "mickey move bottom"
[[keybind]]
modifier = ["Alt"]
key = "a"
command = "Execute"
value = "mickey move left"
[[keybind]]
modifier = ["Alt"]
key = "d"
command = "Execute"
value = "mickey move right"
[[keybind]]
modifier = ["Alt"]
key = "c"
command = "Execute"
value = "mickey click left"
[[keybind]]
modifier = ["Alt"]
key = "f"
command = "Execute"
value = "mickey hold"
[[keybind]]
key = "e"
modifier = ["Alt"]
command = "Execute"
value = "mickey centralize"
依赖项
~4MB
~83K SLoC