diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-02-21 07:55:07 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-02-21 07:55:07 +0200 |
| commit | 076fd6382170e4d431da35812ce9668ee1fda883 (patch) | |
| tree | e3afb5ed5ff3860cea4d77810e8be9218fd48dea /.config/zsh | |
| parent | 230a1e2cf2a7972aba4cb1b4fd91aceb0caf9412 (diff) | |
| download | dotfiles-076fd6382170e4d431da35812ce9668ee1fda883.tar.gz dotfiles-076fd6382170e4d431da35812ce9668ee1fda883.zip | |
Add alias for xev called keyname
Diffstat (limited to '.config/zsh')
| -rw-r--r-- | .config/zsh/.zshrc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index c6d0b9a..ed4c132 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -388,6 +388,7 @@ alias trash="gio trash" alias trash_restore='gio trash --restore "$(gio trash --list | fzf | cut -f 1)"' alias ec='$EDITOR $HOME/.config/zsh/.zshrc' alias sc="source $HOME/.config/zsh/.zshrc" +alias keyname="xev | sed -n 's/[ ]*state.* \([^ ]*\)).*/\1/p'" # Print previous command into a file getlast () { |
