diff --git a/bin/wpLookup b/bin/wpLookup new file mode 100755 index 00000000..02b88b5a --- /dev/null +++ b/bin/wpLookup @@ -0,0 +1,10 @@ +#!/usr/bin/env sh +folder="$HOME/.local/share/Zeal/Zeal/docsets/WordPress.docset/Contents/Resources/Documents/developer.wordpress.org/reference/" +file=$(find "$folder" -name "index.html" -not -path "*/page/*" -not -path "*/since/*" | + awk -F '/' '{print "(" $(NF-2) ") " $(NF-1)}' | + rofi -dmenu | + tr -d '()' | + awk '{print $1 "/" $2 "/index.html"}') +#file=$(find "$folder" -name "index.html" -not -path "*/methods/*" ) +#echo "$file" +echo "$folder$file" | xargs qutebrowser diff --git a/i3/configWork b/i3/configWork index 6cc9f591..21c388f6 100644 --- a/i3/configWork +++ b/i3/configWork @@ -75,6 +75,10 @@ bindsym $mod+m exec man -k . | awk '{ print $1 " " $2 }' | rofi -dmenu -p man -m # TLDR page lookup bindsym $mod+Shift+m exec "/usr/bin/tldr --list-all | sed 's/, /\\n/g' | rofi -dmenu -p ';TLDR' -matching regex | xargs tldr -m | pandoc -f markdown -t ms | groff -ms - -T pdf | zathura -" +# WP Lookup +bindsym $mod+Shift+w exec wpLookup + + # Send signals to i3 blocks and zsh to tell them that capslock has been pushed # The message to zsh is technically a "window change" which causes zsh to re-draw the prompt # https://unix.stackexchange.com/questions/440184/update-zsh-ps1-propt-on-keypress