1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00

Added tldr support

This commit is contained in:
Ryan Kes 2020-03-26 12:31:18 +01:00
parent 40e59fa6b3
commit f18cfbcafe
4 changed files with 13 additions and 0 deletions

View File

@ -58,6 +58,7 @@ A repository of my personal configuration files.
- [[https://github.com/dylanaraps/pywal][pywal]]
- [[http://www.gnu.org/software/stow/][stow]]
- [[https://github.com/muennich/sxiv][sxiv]]
- [[https://github.com/tldr-pages/tldr][tldr]]
- [[https://www.freedesktop.org/wiki/Software/udisks/][udisks]]
- [[https://github.com/stoeckmann/xwallpaper][xwallpaper]]
- [[https://pwmt.org/projects/zathura/][zathura]]

6
dmenu/.local/bin/tldr-dmenu Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env sh
. ~/.cache/wal/colors.sh
command=$(curl --silent "https://github.com/tldr-pages/tldr/tree/master/pages/linux" | grep -o "[1-zA-Z0-9\-]*.md" | cut -f 1 -d '.' | uniq | sort | dmenu -p "tldr" -i -nb "$color0" -nf "$color15" -sb "$color1" -sf "$color15")
test ! -z "$command" && alacritty --class float,float -e ~/.config/polybar/bin/tldr-and-wait "$command"

View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
tldr "$@"
read -n 1 -r -p ""

View File

@ -83,6 +83,8 @@ ctrl + alt + {l, n, r, w, s, p, v, k, a}
alacritty --class float,float -e {lf, neomutt, /usr/bin/newsboat, ~/.config/polybar/bin/wttr-and-wait, spt, castero, nvim, ~/.local/bin/calendar-and-wait, ~/.local/bin/audit}
ctrl + alt + {b, e, S}
{brave, emacs, spotify}
ctrl + alt + {t}
~/.local/bin/tldr-dmenu
#-----------------------------------------------------------Bspwm--------------------------------------------------------------
# quit/restart bspwm