mirror of
https://github.com/pigmonkey/spark.git
synced 2026-01-23 02:24:09 +00:00
add xclip to browser chooser
This commit is contained in:
parent
dc6cebcbfd
commit
bbca177c49
2 changed files with 7 additions and 2 deletions
|
|
@ -102,6 +102,7 @@ browser_choices:
|
|||
- tor-browser-en
|
||||
- play
|
||||
- qcode
|
||||
- "| xclip -selection c"
|
||||
|
||||
passwordless_sudo:
|
||||
- /usr/bin/openvpn*
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue