Adds wpLookup script

master
Jonathan Hodgson 6 years ago
parent 46c6522867
commit 6e998aebbb
  1. 10
      bin/wpLookup
  2. 4
      i3/configWork

@ -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

@ -75,6 +75,10 @@ bindsym $mod+m exec man -k . | awk '{ print $1 " " $2 }' | rofi -dmenu -p man -m
# TLDR page lookup # 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 -" 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 # 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 # 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 # https://unix.stackexchange.com/questions/440184/update-zsh-ps1-propt-on-keypress

Loading…
Cancel
Save