- Download latest release
# by default, the script parses the './config/sway/config' and '/etc/sway/config' paths
$ ./swaykeyhints /path/to/sway/config
# also you can specify output table properties
$ ./swaykeyhints -h 10 -w 20
# use -h key to set column height
# use -w key to set column width
- Also you can use script with nwg-wrapper
- Create script with random name (for example keyhints.sh) in your 'nwg-wrapper config' directory (for me it '~/.config/nwg-wrapper/')
- keyhints.sh
#!/bin/sh
~/.config/sway/scripts/swaykeyhints $HOME/.config/sway/config -h 48 -w 70
- run nwg-wrapper binary
$ nwg-wrapper -s keyhints.sh -r 1800000 -c style.css -p left -ml 200
prerequisites:
- java graalvm 17 install guide
also you can use sdk man if you are on linux machine - native-image install guide
-
Produce a native image
- With gradle:
$ ./gradlew nativeImage $ cd build/executable $ ./swaykeyhints