File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88NBROWSER_CONFIG_DIR=" ${XDG_CONFIG_HOME:- $HOME / .config} /nbrowser"
99NBROWSER_DEFAULT_SEARCH=${NBROWSER_DEFAULT_SEARCH:- duckduckgo}
10+ COPY_TO_CLIPBOARD_OPTION=true
1011
1112declare -A ENGINES
1213
@@ -198,8 +199,11 @@ open_picture_with(){
198199
199200open_in_browser (){
200201 # add clipboard
201- browser_count=$(( browser_count+ 1 ))
202- installed_browsers[$browser_count ]=" Copy to clipboard"
202+ if [ " ${COPY_TO_CLIPBOARD_OPTION} " = true ]; then
203+ browser_count=$(( browser_count+ 1 ))
204+ installed_browsers[$browser_count ]=" Copy to clipboard"
205+ COPY_TO_CLIPBOARD_OPTION=false
206+ fi
203207
204208 selected_browser=$( printf " %s\n" " ${installed_browsers[@]} " | awk ' BEGIN { RS="\n"; FS=" : " } { print $1 "\t : " $2 }' | column -t -s $' \t ' | rofi -dmenu -p ' Open URL with' -mesg " ${@// &/ &} " -i -l " $browser_count " )
205209
You can’t perform that action at this time.
0 commit comments