Adds wpLookup script
This commit is contained in:
parent
46c6522867
commit
6e998aebbb
2 changed files with 14 additions and 0 deletions
10
bin/wpLookup
Executable file
10
bin/wpLookup
Executable file
|
@ -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
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue