Update README.md,

Add some information about new flags `-open` and `-close`
This commit is contained in:
RRRRRm
2024-06-16 18:35:01 +01:00
committed by GitHub
parent 99765402d7
commit 69e3b06b39

View File

@@ -54,6 +54,8 @@ $ nwg-drawer -h
Usage of nwg-drawer: Usage of nwg-drawer:
-c uint -c uint
number of Columns (default 6) number of Columns (default 6)
-close
close drawer of existing instance
-d Turn on Debug messages -d Turn on Debug messages
-fm string -fm string
File Manager (default "thunar") File Manager (default "thunar")
@@ -86,6 +88,8 @@ Usage of nwg-drawer:
Disable file search Disable file search
-o string -o string
name of the Output to display the drawer on (sway & Hyprland only) name of the Output to display the drawer on (sway & Hyprland only)
-open
open drawer of existing instance
-ovl -ovl
use OVerLay layer use OVerLay layer
-pbexit string -pbexit string
@@ -106,7 +110,7 @@ Usage of nwg-drawer:
-spacing uint -spacing uint
icon spacing (default 20) icon spacing (default 20)
-term string -term string
Terminal emulator (default "foot") Terminal emulator (default "xterm-kitty")
-v display Version information -v display Version information
-wm string -wm string
use swaymsg exec (with 'sway' argument) or hyprctl dispatch exec (with 'hyprland') to launch programs use swaymsg exec (with 'sway' argument) or hyprctl dispatch exec (with 'hyprland') to launch programs
@@ -137,6 +141,15 @@ this should be a little bit faster.
Running a resident instance should speed up use of the drawer significantly. Pay attention to the fact, that you Running a resident instance should speed up use of the drawer significantly. Pay attention to the fact, that you
need to `pkill -f nwg-drawer` and reload the compositor to apply any new arguments! need to `pkill -f nwg-drawer` and reload the compositor to apply any new arguments!
If you want to explicitly specify commands to open and close the resident instance, which can be helpful for touchpad gestures, please use the `-open` and `-close` parameters. Similarly, some signals can also be use: pkill -USR2 nwg-drawer to open and pkill -SIGRTMIN+3 nwg-drawer to close.
For a MacOS-style three-finger pinch:
```text
bindgesture pinch:4:inward exec pkill -SIGUSR2 nwg-drawer
bindgesture pinch:4:outward exec pkill -SIGRTMIN+3 nwg-drawer
```
## Logging ## Logging
In case you encounter an issue, you may need debug messages. If you use the resident instance, you'll see nothing In case you encounter an issue, you may need debug messages. If you use the resident instance, you'll see nothing