mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
* one can still launch it with a parameter * dmenu shows a vertical list of commands for which help files are available
15 lines
447 B
Bash
Executable File
15 lines
447 B
Bash
Executable File
#!/bin/sh
|
|
# Shows keyboard shortcuts for programs.
|
|
# Program is chosen either by parameter or dmenu.
|
|
|
|
keys_folder=~/.config/getkeys
|
|
|
|
# use parameter:
|
|
cat $keys_folder/"$1" 2>/dev/null && exit
|
|
echo "Run command with one of the following arguments for info about that program:"
|
|
ls $keys_folder
|
|
|
|
# use dmenu:
|
|
printf "\n\t---> or choose right now in dmenu\n"
|
|
cat $keys_folder/$(ls $keys_folder | dmenu -i -l 20 -p "Show keybindings for:") 2>/dev/null
|