add surfraw

This commit is contained in:
Pig Monkey 2017-02-25 18:47:56 -08:00
parent 07e6322f04
commit 3f083fa913
2 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,3 @@
#!/bin/sh
surfraw $(sr -elvi | awk -F'-' '{print $1}' | sed '/:/d' | awk '{$1=$1};1' | rofi -kb-row-select "Tab" -kb-row-tab "Control+space" -dmenu -i -p "websearch: ")

View file

@ -103,3 +103,23 @@
tags:
- rofi
- chooser
- name: Install surfraw
pacman: name=surfraw state=present
tags:
- surfraw
- name: Configure surfraw browser
lineinfile:
dest: /etc/xdg/surfraw/conf
regexp: '^def SURFRAW_graphical_browser '
line: 'def SURFRAW_graphical_browser /usr/local/bin/browser'
tags:
- surfraw
- chooser
- name: Push surfraw-rofi script
copy: src=surfraw-rofi dest=/usr/local/bin/surfraw-rofi mode=0755
tags:
- surfraw
- rofi