summaryrefslogtreecommitdiffstats
path: root/doc/rofi-theme.5.markdown
diff options
context:
space:
mode:
authorvE5li <ve5li@tuta.io>2022-11-25 10:28:34 +0100
committerGitHub <noreply@github.com>2022-11-25 10:28:34 +0100
commit23de9e9d2c35af8cce72b060f6d2916cd6215a23 (patch)
tree623ca085f65b78787e885e12d7268f2fe1b5a20e /doc/rofi-theme.5.markdown
parent54aa148a5ece4027cabceec3f79df880e158376d (diff)
make cursor more customizable by adding cursor-width and cursor-color (#1753)
* make cursor more customizable by adding cursor-width and cursor-color to the theme * fix placeholder color * add doc entry * more documentation
Diffstat (limited to 'doc/rofi-theme.5.markdown')
-rw-r--r--doc/rofi-theme.5.markdown14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/rofi-theme.5.markdown b/doc/rofi-theme.5.markdown
index bf0f3630..bbb0a7cd 100644
--- a/doc/rofi-theme.5.markdown
+++ b/doc/rofi-theme.5.markdown
@@ -132,6 +132,18 @@ element-text {
└─────────────────────────────────────────────────────────────────────┘
```
+We can also specify the color and width of the cursor. You could, for example,
+create a crimson block cursor like this:
+
+```css
+entry {
+ cursor-color: rgb(220,20,60);
+ cursor-width: 8px;
+}
+```
+
+By default, the `cursor-color` will be the same as the `text-color`. The `cursor-width` will always default to 2 pixels.
+
If you want to see the complete theme, including the modification you can run:
```bash
@@ -937,6 +949,8 @@ The following properties are currently supported:
Set the location of tab stops by their distance from the beginning of the line.
Each distance should be greater than the previous one.
The text appears to the right of the tab stop position (other alignments are not supported yet).
+* **cursor-width**: The width of the cursor.
+* **cursor-color**: The color used to draw the cursor.
### listview:
* **columns**: integer