name | default | description |
---|---|---|
screen |
screen.primary | the monitor |
visible |
false | visibility on startup |
color |
"#00FF00FF" | crosshair color |
size |
12 | crosshair size |
thickness |
6 | crosshair thickness |
gap |
4 | crosshair gap |
outline |
0 | crosshair outline (border) |
dot |
0 | crosshair dot radius |
apps |
nil | automatically enable crosshair for applications (e.g. apps = {"Apex Legends", "Counter-Strike.*"}) |
Clone the repo and import the module:
git clone https://github.com/intrntbrn/crosshair ~/.config/awesome/crosshair
echo "require('crosshair')({ visible = true, color = '#00FFFF' })" >> ~/.config/awesome/rc.lua
echo "awesome.emit_signal('crosshair::toggle')" | awesome-client