diff options
author | Akshay <[email protected]> | 2019-11-29 17:36:10 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2019-11-29 17:36:10 +0000 |
commit | 2e1a2f6d8ad20771758049dc680323078898f8b7 (patch) | |
tree | 636fd3397ddb3f6a7d591fdb9b3cd1cf218993f0 | |
parent | 9a8fd65cb0f110e0e851315d24e7e25d55a6fe85 (diff) |
doc
-rw-r--r-- | examples/sample_config.toml | 9 | ||||
-rw-r--r-- | readme.md | 39 | ||||
-rw-r--r-- | screencap.gif | bin | 0 -> 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. |
12 | thickness = 1 | 12 | thickness = 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 |
16 | no_of_circles = 7 | 16 | # (it can't draw 200 frames in 500 millis dude) |
17 | framerate = 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) |
20 | color = 0x00FECA | 21 | color = 0x00FECA |
21 | 22 | ||
22 | # values: Grow, Shrink | 23 | # values: Grow, Shrink, GrowOutline, ShrinkOutline |
23 | animation = 'Shrink' | 24 | animation = 'Shrink' |
@@ -2,9 +2,44 @@ | |||
2 | 2 | ||
3 | > cursor location indicator for x11 | 3 | > cursor location indicator for x11 |
4 | 4 | ||
5 | a la windows xp | 5 | ![preview.gif](screencap.gif) |
6 | 6 | ||
7 | ![preview.png](https://files.nerdypepper.tech/AI.png) | 7 | # install |
8 | |||
9 | to build, `xcursorlocate`, you require the `libxcb-devel` | ||
10 | package. | ||
11 | ```shell | ||
12 | $ git clone https://github.com/nerdypepper/xcursorlocate | ||
13 | $ cd xcursorlocate | ||
14 | $ cargo install --force --path ./ | ||
15 | ``` | ||
16 | |||
17 | # usage | ||
18 | |||
19 | have your window manager trigger `xcursorlocate` on a key | ||
20 | press, i use `sxhkd` to handle key bindings: | ||
21 | ```shell | ||
22 | # ~/.config/sxhkd/sxhkdrc | ||
23 | ctrl + Escape: | ||
24 | xcursorlocate | ||
25 | ``` | ||
26 | |||
27 | # configuration | ||
28 | |||
29 | `xcursorlocate` is configured via a `.toml` file, which is | ||
30 | present in `$XDG_CONFIG_HOME/xcursorlocate`. a basic config | ||
31 | is generated on first run, a sample config can be found in | ||
32 | the [`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 | |||