aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay <[email protected]>2019-11-29 17:36:10 +0000
committerAkshay <[email protected]>2019-11-29 17:36:10 +0000
commit2e1a2f6d8ad20771758049dc680323078898f8b7 (patch)
tree636fd3397ddb3f6a7d591fdb9b3cd1cf218993f0
parent9a8fd65cb0f110e0e851315d24e7e25d55a6fe85 (diff)
doc
-rw-r--r--examples/sample_config.toml9
-rw-r--r--readme.md39
-rw-r--r--screencap.gifbin0 -> 294901 bytes
3 files changed, 42 insertions, 6 deletions
diff --git a/examples/sample_config.toml b/examples/sample_config.toml
index fdf2883..6b906be 100644
--- a/examples/sample_config.toml
+++ b/examples/sample_config.toml
@@ -11,13 +11,14 @@ duration = 500
11# the width of each circle in display pixels. 11# the width of each circle in display pixels.
12thickness = 1 12thickness = 1
13 13
14# total circles displayed in the indicator. setting this to a value greater 14# number of frames in the animation
15# than max_size/thickness could lead to the indicator not being drawn at all. 15# could result in choppy animations if you set it very high
16no_of_circles = 7 16# (it can't draw 200 frames in 500 millis dude)
17framerate = 30
17 18
18# indicator color, set to hex (0xRRGGBB) or 32 bit int. 19# indicator color, set to hex (0xRRGGBB) or 32 bit int.
19# alpha not supported (yet) 20# alpha not supported (yet)
20color = 0x00FECA 21color = 0x00FECA
21 22
22# values: Grow, Shrink 23# values: Grow, Shrink, GrowOutline, ShrinkOutline
23animation = 'Shrink' 24animation = 'Shrink'
diff --git a/readme.md b/readme.md
index 0860ed2..f51fd68 100644
--- a/readme.md
+++ b/readme.md
@@ -2,9 +2,44 @@
2 2
3> cursor location indicator for x11 3> cursor location indicator for x11
4 4
5a la windows xp 5![preview.gif](screencap.gif)
6 6
7![preview.png](https://files.nerdypepper.tech/AI.png) 7# install
8
9to build, `xcursorlocate`, you require the `libxcb-devel`
10package.
11```shell
12$ git clone https://github.com/nerdypepper/xcursorlocate
13$ cd xcursorlocate
14$ cargo install --force --path ./
15```
16
17# usage
18
19have your window manager trigger `xcursorlocate` on a key
20press, i use `sxhkd` to handle key bindings:
21```shell
22# ~/.config/sxhkd/sxhkdrc
23ctrl + Escape:
24 xcursorlocate
25```
26
27# configuration
28
29`xcursorlocate` is configured via a `.toml` file, which is
30present in `$XDG_CONFIG_HOME/xcursorlocate`. a basic config
31is generated on first run, a sample config can be found in
32the [`examples`](./examples/sample_config.toml) directory.
33
34# uninstall
35
36:(
37
38```
39$ rm -rf xcursorlocate/
40$ rm -rf ~/.config/xcursorlocate/
41$ rm -f $HOME/.cargo/bin/xcursorlocate
42```
8 43
9# todo: 44# todo:
10 45
diff --git a/screencap.gif b/screencap.gif
new file mode 100644
index 0000000..12b5d62
--- /dev/null
+++ b/screencap.gif
Binary files differ