commit 55a373b02bd39b3557a9d446a3af3a5d42d7f7bc parent a442dff8518498f73610af9336f03c22467234ae Author: Jacob R. Edwards <jacobouno@protonmail.com> Date: Wed, 15 Jul 2020 23:49:12 -0700 Add lk function to find sxhkd keybindings Diffstat:
| M | aliases/.aliases | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/aliases/.aliases b/aliases/.aliases @@ -159,3 +159,9 @@ nproxy() { unset ALL_PROXY; unset HTTP_PROXY ;} # infinite loop that runs every time you hit enter loop() { while true; do read args || break; eval $@ $args; done ;} + +# search sxhkd keybinds +lk() { + # NOTE: .? is to list everything should user omit any arguments. + egrep ".?$@" -iC3 $XDG_CONFIG_HOME/sxhkd/sxhkdrc +}