diff --git a/README.org b/README.org index 9617c97..938bc26 100644 --- a/README.org +++ b/README.org @@ -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]] diff --git a/dmenu/.local/bin/tldr-dmenu b/dmenu/.local/bin/tldr-dmenu new file mode 100755 index 0000000..9c5d458 --- /dev/null +++ b/dmenu/.local/bin/tldr-dmenu @@ -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" diff --git a/polybar/.config/polybar/bin/tldr-and-wait b/polybar/.config/polybar/bin/tldr-and-wait new file mode 100755 index 0000000..660ee89 --- /dev/null +++ b/polybar/.config/polybar/bin/tldr-and-wait @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +tldr "$@" +read -n 1 -r -p "" diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc index 510b363..2a1c573 100644 --- a/sxhkd/.config/sxhkd/sxhkdrc +++ b/sxhkd/.config/sxhkd/sxhkdrc @@ -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