aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarnor-nolen <andrei.gorbulin@rightware.com>2023-05-03 10:44:32 +0300
committerarnor-nolen <andrei.gorbulin@rightware.com>2023-05-03 10:44:32 +0300
commit0493b74b10a362148e972af8fa721f4bbe58b955 (patch)
treebadb7ae18960c7121ad4b124c092813a347d78e7
parent37c7259625a33cc10534dfc81ddc6de0bb9e1a9a (diff)
downloaddwlb-0493b74b10a362148e972af8fa721f4bbe58b955.tar.gz
Added help and readme explanations
-rw-r--r--README.md7
-rw-r--r--dwlb.c1
2 files changed, 8 insertions, 0 deletions
diff --git a/README.md b/README.md
index 360af71..8335cfc 100644
--- a/README.md
+++ b/README.md
@@ -51,6 +51,13 @@ dwlb -status all 'text ^bg(ff0000)^lm(foot)text^bg()^lm() text'
A color command with no argument reverts to the default value. `^^` represents a single `^` character. Status commands can be disabled with `-no-status-commands`.
+## Scaling
+If you use scaling in Wayland, you can specify `buffer_scale` through config file or by passing it as an option (only integer values):
+```bash
+dwlb -scale 2
+```
+This will render both surface and a cursor with 2x detail. If your monitor is set to 1.25 or 1.5 scaling, setting scale to 2 will also work as compositor will downscale the buffer properly.
+
## Other Options
Run `dwlb -h` for a full list of options.
diff --git a/dwlb.c b/dwlb.c
index d3314aa..79a84a6 100644
--- a/dwlb.c
+++ b/dwlb.c
@@ -93,6 +93,7 @@
" -inactive-fg-color [COLOR] specify background color of inactive tags or monitors\n" \
" -urgent-fg-color [COLOR] specify text color of urgent tags\n" \
" -urgent-bg-color [COLOR] specify background color of urgent tags\n" \
+ " -scale [BUFFER_SCALE] specify buffer scale value for integer scaling\n" \
"Commands\n" \
" -status [OUTPUT] [TEXT] set status text\n" \
" -title [OUTPUT] [TEXT] set title text, if -custom-title is enabled\n" \