Skip to content

owpk/sway-keyhints

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

animated lolcat combined with figlet

Usage

# 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

  1. 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
  1. run nwg-wrapper binary
$ nwg-wrapper -s keyhints.sh -r 1800000 -c style.css -p left -ml 200

Manual build

GraalVM native-image

prerequisites:

  • Produce a native image

    • With gradle:
    $ ./gradlew nativeImage
    
    $ cd build/executable
    $ ./swaykeyhints

About

key binding parser for sway configs

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages