add xclip to browser chooser

This commit is contained in:
Pig Monkey 2017-08-26 16:25:19 -07:00
parent dc6cebcbfd
commit bbca177c49
2 changed files with 7 additions and 2 deletions

View file

@ -102,6 +102,7 @@ browser_choices:
- tor-browser-en
- play
- qcode
- "| xclip -selection c"
passwordless_sudo:
- /usr/bin/openvpn*

View file

@ -1,6 +1,10 @@
#!/bin/sh
#!/bin/bash
# {{ ansible_managed }}
menu=$(echo -e "{% for browser in browser_choices %}{{ browser }}\n{% endfor %}" | rofi -dmenu -p "browser ")
eval $menu \"$@\" > /dev/null 2>&1 &
if [[ $menu == \|* ]]; then
eval echo \"$@\" $menu > /dev/null 2>&1 &
else
eval $menu \"$@\" > /dev/null 2>&1 &
fi