2020-01-11 22:04:45 +01:00
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" lang = "en" xml:lang = "en" >
< head >
2020-03-19 10:42:30 +01:00
<!-- 2020 - 03 - 19 jeu. 10:38 -->
2020-01-11 22:04:45 +01:00
< meta http-equiv = "Content-Type" content = "text/html;charset=utf-8" / >
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
< title > Qutebrowser Configuration< / title >
< meta name = "generator" content = "Org mode" / >
< meta name = "author" content = "Dehaeze Thomas" / >
< style type = "text/css" >
<!-- /* --> <![CDATA[/*> <!-- */
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
< / style >
2020-01-11 22:22:46 +01:00
< link rel = "stylesheet" type = "text/css" href = "./css/htmlize.css" / >
< link rel = "stylesheet" type = "text/css" href = "./css/readtheorg.css" / >
< script type = "text/javascript" src = "./js/jquery.min.js" > < / script >
< script type = "text/javascript" src = "./js/bootstrap.min.js" > < / script >
< script type = "text/javascript" src = "./js/jquery.stickytableheaders.min.js" > < / script >
< script type = "text/javascript" src = "./js/readtheorg.js" > < / script >
2020-01-11 22:04:45 +01:00
< script type = "text/javascript" >
2020-03-01 22:51:16 +01:00
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050& dn=gpl-3.0.txt GPL-v3-or-Later
2020-01-11 22:04:45 +01:00
<!-- /* --> <![CDATA[/*> <!-- */
2020-03-01 22:51:16 +01:00
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
// @license-end
2020-01-11 22:04:45 +01:00
< / script >
< / head >
< body >
< div id = "org-div-home-and-up" >
< a accesskey = "h" href = "./index.html" > UP < / a >
|
< a accesskey = "H" href = "./index.html" > HOME < / a >
< / div > < div id = "content" >
< h1 class = "title" > Qutebrowser Configuration< / h1 >
< div id = "table-of-contents" >
< h2 > Table of Contents< / h2 >
< div id = "text-table-of-contents" >
< ul >
< li > < a href = "#org22d9ea5" > Import< / a > < / li >
< li > < a href = "#org89786f6" > General config< / a > < / li >
< li > < a href = "#org870403a" > Content< / a > < / li >
2020-03-19 10:42:30 +01:00
< li > < a href = "#orgdefaa05" > Editor< / a > < / li >
2020-01-11 22:04:45 +01:00
< li > < a href = "#org409baa5" > Downloads< / a > < / li >
< li > < a href = "#orgdc50649" > Fonts< / a > < / li >
< li > < a href = "#orge859d77" > Input< / a > < / li >
< li > < a href = "#org6a05c89" > New Instance Options< / a > < / li >
< li > < a href = "#orgc336fd6" > Spell Check< / a > < / li >
< li > < a href = "#org1d64606" > Status Bar< / a > < / li >
< li > < a href = "#org7638343" > Tabs< / a > < / li >
2020-03-19 10:42:30 +01:00
< li > < a href = "#orge28bc93" > Urls and Search Engines< / a > < / li >
< li > < a href = "#orge8e8001" > Normal Bindings< / a > < / li >
< li > < a href = "#orga6ae0da" > Custom Bindings< / a > < / li >
2020-01-11 22:04:45 +01:00
< li > < a href = "#org3991a6c" > Userscripts< / a >
< ul >
2020-03-01 22:51:16 +01:00
< li > < a href = "#org6be4b76" > Create a new password< / a > < / li >
< li > < a href = "#orgd3cff42" > Cast Youtube to Chromecast< / a > < / li >
< li > < a href = "#org4b6d5f9" > Add url to refile.org< / a > < / li >
2020-01-11 22:04:45 +01:00
< li > < a href = "#orgb8e61c0" > Password< sub > fill< / sub > < sub > rc< / sub > < / a > < / li >
< li > < a href = "#org58d6993" > Org-Capture< / a > < / li >
< li > < a href = "#org63ffcb4" > Add Url to Buku using Rofi< / a > < / li >
< / ul >
< / li >
< / ul >
< / div >
< / div >
< div id = "outline-container-org22d9ea5" class = "outline-2" >
< h2 id = "org22d9ea5" > Import< / h2 >
< div class = "outline-text-2" id = "text-org22d9ea5" >
< div class = "org-src-container" >
2020-03-19 10:42:30 +01:00
< pre class = "src src-python" > < span class = "org-keyword" > from< / span > qutebrowser.config.configfiles < span class = "org-keyword" > import< / span > ConfigAPI
< span class = "org-keyword" > from< / span > qutebrowser.config.config < span class = "org-keyword" > import< / span > ConfigContainer
2020-01-11 22:04:45 +01:00
2020-03-19 10:42:30 +01:00
< span class = "org-keyword" > import< / span > sys, os
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-org89786f6" class = "outline-2" >
< h2 id = "org89786f6" > General config< / h2 >
< div class = "outline-text-2" id = "text-org89786f6" >
< div class = "org-src-container" >
2020-03-19 10:42:30 +01:00
< pre class = "src src-python" > < span class = "org-variable-name" > c.aliases< / span > = {< span class = "org-string" > 'w'< / span > : < span class = "org-string" > 'session-save'< / span > , < span class = "org-string" > 'q'< / span > : < span class = "org-string" > 'quit'< / span > , < span class = "org-string" > 'wq'< / span > : < span class = "org-string" > 'quit --save'< / span > }
< span class = "org-variable-name" > c.auto_save.session< / span > = < span class = "org-constant" > False< / span >
2020-01-11 22:04:45 +01:00
< span class = "org-variable-name" > c.backend< / span > = < span class = "org-string" > 'webengine'< / span >
< span class = "org-variable-name" > c.confirm_quit< / span > = [< span class = "org-string" > 'downloads'< / span > ]
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-org870403a" class = "outline-2" >
< h2 id = "org870403a" > Content< / h2 >
< div class = "outline-text-2" id = "text-org870403a" >
< div class = "org-src-container" >
2020-03-19 10:42:30 +01:00
< pre class = "src src-python" > < span class = "org-variable-name" > c.content.autoplay< / span > = < span class = "org-constant" > False< / span >
< span class = "org-variable-name" > c.content.notifications< / span > = < span class = "org-constant" > False< / span >
2020-01-11 22:04:45 +01:00
< span class = "org-variable-name" > c.content.geolocation< / span > = < span class = "org-string" > 'ask'< / span >
2020-03-19 10:42:30 +01:00
< span class = "org-variable-name" > c.content.javascript.alert< / span > = < span class = "org-constant" > True< / span >
< span class = "org-variable-name" > c.content.javascript.can_access_clipboard< / span > = < span class = "org-constant" > True< / span >
2020-01-11 22:04:45 +01:00
< span class = "org-variable-name" > c.content.media_capture< / span > = < span class = "org-string" > 'ask'< / span >
2020-03-19 10:42:30 +01:00
< span class = "org-variable-name" > c.content.pdfjs< / span > = < span class = "org-constant" > False< / span >
2020-01-11 22:04:45 +01:00
< span class = "org-variable-name" > c.content.proxy< / span > = < span class = "org-string" > 'system'< / span >
< / pre >
< / div >
< / div >
< / div >
2020-03-19 10:42:30 +01:00
< div id = "outline-container-orgdefaa05" class = "outline-2" >
< h2 id = "orgdefaa05" > Editor< / h2 >
< div class = "outline-text-2" id = "text-orgdefaa05" >
< div class = "org-src-container" >
< pre class = "src src-python" > < span class = "org-variable-name" > c.editor.command< / span > = [< span class = "org-string" > '/usr/bin/termite'< / span > , < span class = "org-string" > '-e'< / span > , < span class = "org-string" > 'nvim {}'< / span > ]
< / pre >
< / div >
< / div >
< / div >
2020-01-11 22:04:45 +01:00
< div id = "outline-container-org409baa5" class = "outline-2" >
< h2 id = "org409baa5" > Downloads< / h2 >
< div class = "outline-text-2" id = "text-org409baa5" >
< div class = "org-src-container" >
2020-03-19 10:42:30 +01:00
< pre class = "src src-python" > < span class = "org-variable-name" > c.downloads.location.directory< / span > = < span class = "org-string" > '$HOME/Downloads/'< / span >
< span class = "org-variable-name" > c.downloads.location.prompt< / span > = < span class = "org-constant" > True< / span >
< span class = "org-variable-name" > c.downloads.location.remember< / span > = < span class = "org-constant" > True< / span >
2020-01-11 22:04:45 +01:00
< span class = "org-variable-name" > c.downloads.location.suggestion< / span > = < span class = "org-string" > 'path'< / span >
< span class = "org-variable-name" > c.downloads.position< / span > = < span class = "org-string" > 'bottom'< / span >
< span class = "org-variable-name" > c.downloads.remove_finished< / span > = < span class = "org-highlight-numbers-number" > 10000< / span >
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-orgdc50649" class = "outline-2" >
< h2 id = "orgdc50649" > Fonts< / h2 >
< div class = "outline-text-2" id = "text-orgdc50649" >
< div class = "org-src-container" >
2020-03-19 10:42:30 +01:00
< pre class = "src src-python" > < span class = "org-variable-name" > c.fonts.default_family< / span > = [< span class = "org-string" > "Hack Nerd Font Mono"< / span > , < span class = "org-string" > "DejaVu Sans Mono"< / span > , < span class = "org-string" > "Monaco"< / span > ]
2020-01-11 22:04:45 +01:00
< span class = "org-variable-name" > c.fonts.prompts< / span > = < span class = "org-string" > '10pt monospace'< / span >
< span class = "org-variable-name" > c.fonts.statusbar< / span > = < span class = "org-string" > '10pt monospace'< / span >
< span class = "org-variable-name" > c.fonts.tabs< / span > = < span class = "org-string" > '10pt monospace'< / span >
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-orge859d77" class = "outline-2" >
< h2 id = "orge859d77" > Input< / h2 >
< div class = "outline-text-2" id = "text-orge859d77" >
< div class = "org-src-container" >
2020-03-19 10:42:30 +01:00
< pre class = "src src-python" > c.< span class = "org-builtin" > input< / span > .insert_mode.auto_enter = < span class = "org-constant" > True< / span >
c.< span class = "org-builtin" > input< / span > .insert_mode.auto_leave = < span class = "org-constant" > True< / span >
c.< span class = "org-builtin" > input< / span > .insert_mode.auto_load = < span class = "org-constant" > False< / span >
c.< span class = "org-builtin" > input< / span > .insert_mode.plugins = < span class = "org-constant" > True< / span >
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-org6a05c89" class = "outline-2" >
< h2 id = "org6a05c89" > New Instance Options< / h2 >
< div class = "outline-text-2" id = "text-org6a05c89" >
< div class = "org-src-container" >
2020-03-19 10:42:30 +01:00
< pre class = "src src-python" > < span class = "org-variable-name" > c.new_instance_open_target< / span > = < span class = "org-string" > 'tab'< / span >
2020-03-01 22:51:16 +01:00
< span class = "org-variable-name" > c.new_instance_open_target_window< / span > = < span class = "org-string" > 'last-focused'< / span >
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-orgc336fd6" class = "outline-2" >
< h2 id = "orgc336fd6" > Spell Check< / h2 >
< div class = "outline-text-2" id = "text-orgc336fd6" >
< div class = "org-src-container" >
2020-03-19 10:42:30 +01:00
< pre class = "src src-python" > < span class = "org-variable-name" > c.spellcheck.languages< / span > = [< span class = "org-string" > 'en-US'< / span > , < span class = "org-string" > 'fr-FR'< / span > ]
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-org1d64606" class = "outline-2" >
< h2 id = "org1d64606" > Status Bar< / h2 >
< div class = "outline-text-2" id = "text-org1d64606" >
< div class = "org-src-container" >
2020-03-19 10:42:30 +01:00
< pre class = "src src-python" > < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Hide the statusbar unless a message is shown.< / span >
< span class = "org-variable-name" > c.statusbar.hide< / span > = < span class = "org-constant" > False< / span >
2020-03-01 22:51:16 +01:00
< span class = "org-variable-name" > c.statusbar.position< / span > = < span class = "org-string" > 'bottom'< / span >
2020-01-11 22:04:45 +01:00
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > List of widgets displayed in the statusbar.< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Valid values:< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > - url: Current page URL.< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > - scroll: Percentage of the current page position like `10%`.< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > - scroll_raw: Raw percentage of the current page position like `10`.< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > - history: Display an arrow when possible to go back/forward in history.< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > - tabs: Current active tab, e.g. `2`.< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > - keypress: Display pressed keys when composing a vi command.< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > - progress: Progress bar for the current page loading.< / span >
2020-03-01 22:51:16 +01:00
< span class = "org-variable-name" > c.statusbar.widgets< / span > = [< span class = "org-string" > 'keypress'< / span > , < span class = "org-string" > 'url'< / span > , < span class = "org-string" > 'scroll'< / span > , < span class = "org-string" > 'history'< / span > , < span class = "org-string" > 'progress'< / span > ]
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-org7638343" class = "outline-2" >
< h2 id = "org7638343" > Tabs< / h2 >
< div class = "outline-text-2" id = "text-org7638343" >
< div class = "org-src-container" >
2020-03-19 10:42:30 +01:00
< pre class = "src src-python" > < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Open new tabs (middleclick/ctrl+click) in the background.< / span >
< span class = "org-variable-name" > c.tabs.background< / span > = < span class = "org-constant" > True< / span >
2020-01-11 22:04:45 +01:00
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Mouse button with which to close tabs.< / span >
< span class = "org-variable-name" > c.tabs.close_mouse_button< / span > = < span class = "org-string" > 'right'< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > How to behave when the last tab is closed.< / span >
< span class = "org-variable-name" > c.tabs.last_close< / span > = < span class = "org-string" > 'close'< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Switch between tabs using the mouse wheel.< / span >
2020-03-19 10:42:30 +01:00
< span class = "org-variable-name" > c.tabs.mousewheel_switching< / span > = < span class = "org-constant" > False< / span >
2020-01-11 22:04:45 +01:00
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Position of new tabs opened from another tab.< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Valid values:< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > - prev: Before the current tab.< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > - next: After the current tab.< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > - first: At the beginning.< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > - last: At the end.< / span >
2020-03-01 22:51:16 +01:00
< span class = "org-variable-name" > c.tabs.new_position.related< / span > = < span class = "org-string" > 'next'< / span >
2020-01-11 22:04:45 +01:00
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Position of new tabs which aren't opened from another tab.< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Valid values:< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > - prev: Before the current tab.< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > - next: After the current tab.< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > - first: At the beginning.< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > - last: At the end.< / span >
2020-03-01 22:51:16 +01:00
< span class = "org-variable-name" > c.tabs.new_position.unrelated< / span > = < span class = "org-string" > 'last'< / span >
2020-01-11 22:04:45 +01:00
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Position of the tab bar.< / span >
< span class = "org-variable-name" > c.tabs.position< / span > = < span class = "org-string" > 'left'< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Which tab to select when the focused tab is removed.< / span >
< span class = "org-variable-name" > c.tabs.select_on_remove< / span > = < span class = "org-string" > 'next'< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Width (in pixels or as percentage of the window) of the tab bar if it's vertical.< / span >
< span class = "org-variable-name" > c.tabs.width< / span > = < span class = "org-highlight-numbers-number" > 30< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Wrap when changing tabs.< / span >
2020-03-19 10:42:30 +01:00
< span class = "org-variable-name" > c.tabs.wrap< / span > = < span class = "org-constant" > False< / span >
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
2020-03-19 10:42:30 +01:00
< div id = "outline-container-orge28bc93" class = "outline-2" >
< h2 id = "orge28bc93" > Urls and Search Engines< / h2 >
< div class = "outline-text-2" id = "text-orge28bc93" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-03-19 10:42:30 +01:00
< pre class = "src src-python" > < span class = "org-variable-name" > c.url.searchengines< / span > = {
2020-01-11 22:04:45 +01:00
< span class = "org-string" > 'DEFAULT'< / span > : < span class = "org-string" > 'https://www.duckduckgo.org/?q={}'< / span > ,
< span class = "org-string" > 'aw'< / span > : < span class = "org-string" > 'https://wiki.archlinux.org/?search={}'< / span > ,
< span class = "org-string" > 'wi'< / span > : < span class = "org-string" > 'https://en.wikipedia.org/wiki/Special:Search?search={}'< / span > ,
< span class = "org-string" > 'go'< / span > : < span class = "org-string" > 'https://www.google.com/search?q={}'< / span > ,
< span class = "org-string" > 'gc'< / span > : < span class = "org-string" > 'https://scholar.google.fr/scholar?hl=fr& as_sdt=0%2C5& q={}& btnG='< / span > ,
< span class = "org-string" > 'gm'< / span > : < span class = "org-string" > 'https://www.google.com/maps/search/{}/'< / span > ,
< span class = "org-string" > 'yt'< / span > : < span class = "org-string" > 'https://www.youtube.com/results?search_query={}'< / span > ,
< span class = "org-string" > 'gh'< / span > : < span class = "org-string" > 'https://github.com/search?q={}'< / span > ,
< span class = "org-string" > 're'< / span > : < span class = "org-string" > 'https://www.reddit.com/search?q={}'< / span > ,
< span class = "org-string" > 'lb'< / span > : < span class = "org-string" > 'http://188.240.208.184/search.php?req={}'< / span > ,
< span class = "org-string" > 'la'< / span > : < span class = "org-string" > 'http://188.240.208.184/scimag/index.php?s={}'< / span > ,
< span class = "org-string" > 'sm'< / span > : < span class = "org-string" > 'https://www.openstreetmap.org/search?query={}'< / span > ,
< span class = "org-string" > 'am'< / span > : < span class = "org-string" > 'https://www.amazon.fr/s?k={}'< / span > ,
< span class = "org-string" > 'md'< / span > : < span class = "org-string" > 'https://fr.mathworks.com/help/search.html?qdoc={}& submitsearch='< / span > ,
}
2020-03-19 10:42:30 +01:00
< / pre >
< / div >
2020-01-11 22:04:45 +01:00
2020-03-19 10:42:30 +01:00
< div class = "org-src-container" >
< pre class = "src src-python" > < span class = "org-variable-name" > c.url.start_pages< / span > = [< span class = "org-string" > 'qute://bookmarks'< / span > ]
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
2020-03-19 10:42:30 +01:00
< div id = "outline-container-orge8e8001" class = "outline-2" >
< h2 id = "orge8e8001" > Normal Bindings< / h2 >
< div class = "outline-text-2" id = "text-orge8e8001" >
< p >
Zooming
< / p >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-03-19 10:42:30 +01:00
< pre class = "src src-python" > config.bind(< span class = "org-string" > '+'< / span > , < span class = "org-string" > 'zoom-in'< / span > )
config.bind(< span class = "org-string" > '-'< / span > , < span class = "org-string" > 'zoom-out'< / span > )
config.bind(< span class = "org-string" > '='< / span > , < span class = "org-string" > 'zoom'< / span > )
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
2020-03-19 10:42:30 +01:00
< p >
Inputs blocks
< / p >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-03-19 10:42:30 +01:00
< pre class = "src src-python" > config.bind(< span class = "org-string" > ';t'< / span > , < span class = "org-string" > 'hint inputs'< / span > )
config.bind(< span class = "org-string" > 'gi'< / span > , < span class = "org-string" > 'hint inputs --first'< / span > )
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
2020-03-19 10:42:30 +01:00
< p >
Opening New Window
< / p >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-03-19 10:42:30 +01:00
< pre class = "src src-python" > config.bind(< span class = "org-string" > '< Ctrl-N> '< / span > , < span class = "org-string" > 'open -w'< / span > )
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
2020-03-19 10:42:30 +01:00
< p >
History
< / p >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-03-19 10:42:30 +01:00
< pre class = "src src-python" > config.bind(< span class = "org-string" > 'H'< / span > , < span class = "org-string" > 'back'< / span > )
config.bind(< span class = "org-string" > 'L'< / span > , < span class = "org-string" > 'forward'< / span > )
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
2020-03-19 10:42:30 +01:00
< p >
Move tabs around
< / p >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-03-19 10:42:30 +01:00
< pre class = "src src-python" > config.bind(< span class = "org-string" > 'd'< / span > , < span class = "org-string" > 'tab-close'< /span>)
config.bind(< span class = "org-string" > '< '< / span > , < span class = "org-string" > 'tab-move -'< / span > )
config.bind(< span class = "org-string" > '> '< / span > , < span class = "org-string" > 'tab-move +'< / span > )
config.bind(< span class = "org-string" > 'gO'< / span > , < span class = "org-string" > 'tab-give'< / span > ) < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Open current tab in a new window< / span >
config.bind(< span class = "org-string" > 'J'< / span > , < span class = "org-string" > 'tab-next'< / span > )
config.bind(< span class = "org-string" > 'K'< / span > , < span class = "org-string" > 'tab-prev'< / span > )
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
2020-03-19 10:42:30 +01:00
< p >
Bookmarks and Quickmark
< / p >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-03-19 10:42:30 +01:00
< pre class = "src src-python" > config.bind(< span class = "org-string" > 'M'< / span > , < span class = "org-string" > 'bookmark-add'< / span > )
config.bind(< span class = "org-string" > 'm'< / span > , < span class = "org-string" > 'quickmark-save'< / span > )
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
2020-03-19 10:42:30 +01:00
< p >
Open New Pages/Tabs
< / p >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-03-19 10:42:30 +01:00
< pre class = "src src-python" > config.bind(< span class = "org-string" > 'o'< / span > , < span class = "org-string" > 'set-cmd-text -s :open'< / span > )
config.bind(< span class = "org-string" > 'O'< / span > , < span class = "org-string" > 'set-cmd-text -s :open -t'< / span > )
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
2020-03-19 10:42:30 +01:00
< p >
Open new page/tab with clipboard content
< / p >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-03-19 10:42:30 +01:00
< pre class = "src src-python" > config.bind(< span class = "org-string" > 'pp'< / span > , < span class = "org-string" > 'open -- {clipboard}'< / span > )
config.bind(< span class = "org-string" > 'pP'< / span > , < span class = "org-string" > 'open -t -- {clipboard}'< / span > )
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
2020-03-19 10:42:30 +01:00
< p >
Link Hinting
< / p >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-03-19 10:42:30 +01:00
< pre class = "src src-python" > config.bind(< span class = "org-string" > 'f'< / span > , < span class = "org-string" > 'hint'< / span > )
config.bind(< span class = "org-string" > 'F'< / span > , < span class = "org-string" > 'hint all tab'< / span > )
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
2020-03-19 10:42:30 +01:00
< p >
Yanking url
< / p >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-03-19 10:42:30 +01:00
< pre class = "src src-python" > config.bind(< span class = "org-string" > 'yy'< / span > , < span class = "org-string" > 'yank'< / span > )
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
2020-03-19 10:42:30 +01:00
< p >
Go to specific websites
< / p >
2020-03-01 22:51:16 +01:00
< div class = "org-src-container" >
2020-03-19 10:42:30 +01:00
< pre class = "src src-python" > config.bind(< span class = "org-string" > 'gy'< / span > , < span class = "org-string" > 'open -t https://www.youtube.com/feed/subscriptions'< / span > )
config.bind(< span class = "org-string" > 'gf'< / span > , < span class = "org-string" > 'open -t https://feedly.com/i/my'< / span > )
config.bind(< span class = "org-string" > 'gr'< / span > , < span class = "org-string" > 'open -t https://www.reddit.com/'< / span > )
config.bind(< span class = "org-string" > 'gb'< / span > , < span class = "org-string" > 'open qute://bookmarks'< / span > )
config.bind(< span class = "org-string" > 'gh'< / span > , < span class = "org-string" > 'open qute://history'< / span > )
config.bind(< span class = "org-string" > 'gs'< / span > , < span class = "org-string" > 'open qute://settings'< / span > )
2020-03-01 22:51:16 +01:00
< / pre >
< / div >
< / div >
< / div >
2020-03-19 10:42:30 +01:00
< div id = "outline-container-orga6ae0da" class = "outline-2" >
< h2 id = "orga6ae0da" > Custom Bindings< / h2 >
< div class = "outline-text-2" id = "text-orga6ae0da" >
< p >
Create a Password for the current website
< / p >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-03-19 10:42:30 +01:00
< pre class = "src src-python" > config.bind(< span class = "org-string" > ',P'< / span > , < span class = "org-string" > 'spawn --userscript ~/.config/qutebrowser/userscripts/add-passowrd.sh'< / span > )
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
2020-03-19 10:42:30 +01:00
< p >
Use Pass to fill password and username (configuration is done in < code > ~/.config/qutebrowser/password_fill_rc< / code > ).
< / p >
< div class = "org-src-container" >
< pre class = "src src-python" > config.bind(< span class = "org-string" > ',p'< / span > , < span class = "org-string" > 'spawn --userscript password_fill'< / span > )
< / pre >
2020-01-11 22:04:45 +01:00
< / div >
2020-03-19 10:42:30 +01:00
< p >
Open Youtube video using MPV
< / p >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-03-19 10:42:30 +01:00
< pre class = "src src-python" > config.bind(< span class = "org-string" > ',m'< / span > , < span class = "org-string" > 'spawn --detach mpv --force-window yes {url}'< / span > )
2020-01-11 22:04:45 +01:00
config.bind(< span class = "org-string" > ',M'< / span > , < span class = "org-string" > 'hint links spawn --detach mpv --force-window yes {hint-url}'< / span > )
< / pre >
< / div >
2020-03-19 10:42:30 +01:00
< p >
Cast Youtube to Chromecast
< / p >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-03-19 10:42:30 +01:00
< pre class = "src src-python" > config.bind(< span class = "org-string" > ',c'< / span > , < span class = "org-string" > 'spawn --userscript ~/.config/qutebrowser/userscripts/cast.sh {url}'< / span > )
2020-01-11 22:04:45 +01:00
config.bind(< span class = "org-string" > ',C'< / span > , < span class = "org-string" > 'hint links spawn --userscript ~/.config/qutebrowser/userscripts/cast.sh {hint-url}'< / span > )
< / pre >
< / div >
2020-03-19 10:42:30 +01:00
< p >
Add url to refile.org
< / p >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-03-19 10:42:30 +01:00
< pre class = "src src-python" > config.bind(< span class = "org-string" > ',r'< / span > , < span class = "org-string" > 'spawn --userscript ~/.config/qutebrowser/userscripts/add-to-orgmode-refile.sh'< / span > )
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
2020-03-19 10:42:30 +01:00
< p >
Add page to Bookmarks
< / p >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-03-19 10:42:30 +01:00
< pre class = "src src-python" > config.bind(< span class = "org-string" > ',b'< / span > , < span class = "org-string" > 'spawn buku -a {url}'< / span > )
2020-01-11 22:04:45 +01:00
config.bind(< span class = "org-string" > ',B'< / span > , < span class = "org-string" > 'spawn --userscript ~/.config/qutebrowser/userscripts/buku-rofi.sh'< / span > )
< / pre >
< / div >
2020-03-19 10:42:30 +01:00
< p >
Open bookmark using buku
< / p >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-03-19 10:42:30 +01:00
< pre class = "src src-python" > config.bind(< span class = "org-string" > ',o'< / span > , < span class = "org-string" > 'spawn ~/bin/bukurun'< / span > )
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
2020-03-19 10:42:30 +01:00
< p >
Org Capture
< / p >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-03-19 10:42:30 +01:00
< pre class = "src src-python" > config.bind(< span class = "org-string" > ',r'< / span > , < span class = "org-string" > 'spawn --userscript ~/.config/qutebrowser/userscripts/org-capture.sh'< / span > )
2020-01-11 22:04:45 +01:00
config.bind(< span class = "org-string" > ',R'< / span > , < span class = "org-string" > 'hint links userscript ~/.config/qutebrowser/userscripts/org-capture.sh'< / span > )
< / pre >
< / div >
2020-03-19 10:42:30 +01:00
< p >
Annotate with Hypothesis
< / p >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-03-19 10:42:30 +01:00
< pre class = "src src-python" > config.bind(< span class = "org-string" > ',a'< / span > , < span class = "org-string" > "jseval javascript:(function(){window.hypothesisConfig=function(){return{showHighlights:true,appType:'bookmarklet'};};var d=document,s=d.createElement('script');s.setAttribute('src','https://hypothes.is/embed.js');d.body.appendChild(s)})();"< / span > )
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
2020-03-19 10:42:30 +01:00
< p >
See Amazon price history using CamelCamelCamel
< / p >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-03-19 10:42:30 +01:00
< pre class = "src src-python" > config.bind(< span class = "org-string" > ',A'< / span > , < span class = "org-string" > ":open -t https://fr.camelcamelcamel.com/search?sq={url}"< / span > )
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-org3991a6c" class = "outline-2" >
< h2 id = "org3991a6c" > Userscripts< / h2 >
< div class = "outline-text-2" id = "text-org3991a6c" >
< / div >
2020-03-01 22:51:16 +01:00
< div id = "outline-container-org6be4b76" class = "outline-3" >
< h3 id = "org6be4b76" > Create a new password< / h3 >
< div class = "outline-text-3" id = "text-org6be4b76" >
< div class = "org-src-container" >
< pre class = "src src-bash" > < span class = "org-variable-name" > url< / span > =$< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-sh-quoted-exec" > echo< / span > < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > QUTE_URL< / span > < / span > < span class = "org-string" > "< / span > | awk -F< span class = "org-rainbow-delimiters-depth-2" > [< / span > /:< span class = "org-rainbow-delimiters-depth-2" > ]< / span > < span class = "org-string" > '{print $4}'< / span > | rofi -p < span class = "org-string" > "URL"< / span > -dmenu -lines < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span >
< span class = "org-variable-name" > username< / span > =$< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-sh-quoted-exec" > echo< / span > < span class = "org-string" > "dehaeze.thomas@gmail.com\nthomas.dehaeze@esrf.fr\ntdehaeze"< / span > | rofi -p < span class = "org-string" > "Username"< / span > -dmenu -lines < span class = "org-highlight-numbers-number" > 5< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span >
< span class = "org-variable-name" > password< / span > =$< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-sh-quoted-exec" > rofi< / span > -p < span class = "org-string" > "Password"< / span > -dmenu -password -lines < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span >
< span class = "org-type" > echo< / span > < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > password< / span > < / span > < span class = "org-string" > \nlogin: < / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > username< / span > < / span > < span class = "org-string" > \nurl: < / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > QUTE_URL< / span > < / span > < span class = "org-string" > "< / span > > /tmp/add-password.txt
pass insert --multiline < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > url< / span > < / span > < span class = "org-string" > /< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > username< / span > < / span > < span class = "org-string" > "< / span > < /tmp/add-password.txt
< span class = "org-type" > rm< / span > /tmp/add-password.txt
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-orgd3cff42" class = "outline-3" >
< h3 id = "orgd3cff42" > Cast Youtube to Chromecast< / h3 >
< div class = "outline-text-3" id = "text-orgd3cff42" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
< pre class = "src src-bash" > youtube-dl -o - $< span class = "org-highlight-numbers-number" > 1< / span > | castnow --quiet -
< / pre >
< / div >
< / div >
< / div >
2020-03-01 22:51:16 +01:00
< div id = "outline-container-org4b6d5f9" class = "outline-3" >
< h3 id = "org4b6d5f9" > Add url to refile.org< / h3 >
< div class = "outline-text-3" id = "text-org4b6d5f9" >
2020-01-11 22:04:45 +01:00
< p >
Add the date and time of add to properties.
< / p >
< div class = "org-src-container" >
< pre class = "src src-bash" > < span class = "org-type" > echo< / span > < span class = "org-string" > "* < / span > < span class = "org-bold" > < span class = "org-warning" > TODO< / span > < / span > < span class = "org-string" > < / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > QUTE_TITLE< / span > < / span > < span class = "org-string" > "< / span > > > ~/Dropbox/org/refile.org
< span class = "org-type" > echo< / span > < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > QUTE_URL< / span > < / span > < span class = "org-string" > "< / span > > > ~/Dropbox/org/refile.org
< span class = "org-type" > echo< / span > < span class = "org-string" > "message-info 'Added to refile.org'"< / span > > > < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > QUTE_FIFO< / span > < / span > < span class = "org-string" > "< / span >
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-orgb8e61c0" class = "outline-3" >
< h3 id = "orgb8e61c0" > Password< sub > fill< / sub > < sub > rc< / sub > < / h3 >
< div class = "outline-text-3" id = "text-orgb8e61c0" >
< div class = "org-src-container" >
< pre class = "src src-bash" > < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Show all password fields in the menu< / span >
< span class = "org-function-name" > query_entries< / span > < span class = "org-rainbow-delimiters-depth-1" > ()< / span > < span class = "org-rainbow-delimiters-depth-1" > {< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > safe queried url for choose_entry< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > the subdomains are removed< / span >
< span class = "org-builtin" > export< / span > < span class = "org-variable-name" > queried_url< / span > =$< span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-sh-quoted-exec" > expr< / span > match < span class = "org-string" > ".< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > 1< / span > < / span > < span class = "org-string" > "< / span > < span class = "org-string" > '.*\.\(.*\..*\)'< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span >
< span class = "org-builtin" > mapfile< / span > -t files < < < span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-type" > find< / span > -L < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > PREFIX< / span > < / span > < span class = "org-string" > "< / span > -iname < span class = "org-string" > '*.gpg'< / span > -printf < span class = "org-string" > '%P\n'< / span > |sed < span class = "org-string" > 's,\.gpg$,,'< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span >
< span class = "org-rainbow-delimiters-depth-1" > }< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Even if there is only one entry, always show a menu< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > for user confirmation.< / span >
< span class = "org-function-name" > choose_entry< / span > < span class = "org-rainbow-delimiters-depth-1" > ()< / span > < span class = "org-rainbow-delimiters-depth-1" > {< / span >
< span class = "org-variable-name" > MENU_COMMAND< / span > =< span class = "org-rainbow-delimiters-depth-2" > (< / span >
rofi -dmenu
-p < span class = "org-string" > "qutebrowser> "< / span >
-filter < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > queried_url< / span > < / span > < span class = "org-string" > "< / span >
-mesg $< span class = "org-string" > 'Pick a password entry for < b> '"< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > {QUTE_URL//& /& amp;}< / span > < / span > < span class = "org-string" > "'< /b> '< / span >
< span class = "org-rainbow-delimiters-depth-2" > )< / span >
< span class = "org-variable-name" > file< / span > =$< span class = "org-rainbow-delimiters-depth-2" > (< / span > < span class = "org-builtin" > printf< / span > < span class = "org-string" > "%s\n"< / span > < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > {files[@]}< / span > < / span > < span class = "org-string" > "< / span > | < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > {MENU_COMMAND[@]}< / span > < / span > < span class = "org-string" > "< / span > < span class = "org-rainbow-delimiters-depth-2" > )< / span >
< span class = "org-rainbow-delimiters-depth-1" > }< / span >
< / pre >
< / div >
< / div >
< / div >
2020-03-01 22:51:16 +01:00
2020-01-11 22:04:45 +01:00
< div id = "outline-container-org58d6993" class = "outline-3" >
< h3 id = "org58d6993" > Org-Capture< / h3 >
< div class = "outline-text-3" id = "text-org58d6993" >
< div class = "org-src-container" >
< pre class = "src src-bash" > < span class = "org-builtin" > readonly< / span > < span class = "org-variable-name" > CAPTURE_SCRIPT< / span > =~/scripts/org-protocol-capture-html.sh
< span class = "org-keyword" > if< / span > < span class = "org-rainbow-delimiters-depth-1" > [< / span > < span class = "org-rainbow-delimiters-depth-2" > [< / span > < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > QUTE_MODE< / span > < / span > < span class = "org-string" > "< / span > = < span class = "org-string" > "hints"< / span > < span class = "org-rainbow-delimiters-depth-2" > ]< / span > < span class = "org-rainbow-delimiters-depth-1" > ]< / span > ; < span class = "org-keyword" > then< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > if we start with hints, we juste want to capture the URL< / span >
$< span class = "org-variable-name" > CAPTURE_SCRIPT< / span > --template < span class = "org-string" > "pu"< / span > --url < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > {QUTE_URL}< / span > < / span > < span class = "org-string" > "< / span >
< span class = "org-keyword" > elif< / span > < span class = "org-rainbow-delimiters-depth-1" > [< / span > < span class = "org-rainbow-delimiters-depth-2" > [< / span > -n < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > QUTE_SELECTED_TEXT< / span > < / span > < span class = "org-string" > "< / span > < span class = "org-rainbow-delimiters-depth-2" > ]< / span > < span class = "org-rainbow-delimiters-depth-1" > ]< / span > ; < span class = "org-keyword" > then< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > if text is selected, we want to capture the text< / span >
$< span class = "org-variable-name" > CAPTURE_SCRIPT< / span > --template < span class = "org-string" > "pt"< / span > --heading < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > {QUTE_TITLE}< / span > < / span > < span class = "org-string" > "< / span > --url < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > {QUTE_URL}< / span > < / span > < span class = "org-string" > "< / span > < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > {QUTE_SELECTED_TEXT}< / span > < / span > < span class = "org-string" > "< / span >
< span class = "org-keyword" > else< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > if no text is selected, we want to capture the url< / span >
$< span class = "org-variable-name" > CAPTURE_SCRIPT< / span > --template < span class = "org-string" > "pu"< / span > --heading < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > {QUTE_TITLE}< / span > < / span > < span class = "org-string" > "< / span > --url < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > {QUTE_URL}< / span > < / span > < span class = "org-string" > "< / span >
< span class = "org-keyword" > fi< / span >
< / pre >
< / div >
< / div >
< / div >
2020-03-01 22:51:16 +01:00
2020-01-11 22:04:45 +01:00
< div id = "outline-container-org63ffcb4" class = "outline-3" >
< h3 id = "org63ffcb4" > Add Url to Buku using Rofi< / h3 >
< div class = "outline-text-3" id = "text-org63ffcb4" >
< div class = "org-src-container" >
< pre class = "src src-bash" > < span class = "org-variable-name" > title< / span > =$< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-sh-quoted-exec" > echo< / span > < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > QUTE_TITLE< / span > < / span > < span class = "org-string" > "< / span > | rofi -p < span class = "org-string" > "Title"< / span > -dmenu -lines < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-rainbow-delimiters-depth-1" > )< / span >
< span class = "org-variable-name" > tags< / span > =$< span class = "org-rainbow-delimiters-depth-1" > (< / span > < span class = "org-sh-quoted-exec" > buku< / span > -t --nc --np | sed -e < span class = "org-string" > 's/\s*[[:digit:]]*\.\s*\(.*\)\s*([[:digit:]]*)\s*/\1/'< / span > -e < span class = "org-string" > '/^\s*$/d'< / span > | sort | uniq | rofi -p < span class = "org-string" > "Tags"< / span > -dmenu< span class = "org-rainbow-delimiters-depth-1" > )< / span >
buku --add < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > QUTE_URL< / span > < / span > < span class = "org-string" > "< / span > --tag < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > tags< / span > < / span > < span class = "org-string" > "< / span > --title < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > title< / span > < / span > < span class = "org-string" > "< / span >
< / pre >
< / div >
< / div >
< / div >
< / div >
< / div >
< div id = "postamble" class = "status" >
< p class = "author" > Author: Dehaeze Thomas< / p >
2020-03-19 10:42:30 +01:00
< p class = "date" > Created: 2020-03-19 jeu. 10:38< / p >
2020-01-11 22:04:45 +01:00
< / div >
< / body >
< / html >