mirror of
https://github.com/Phantop/dotfiles
synced 2024-12-25 22:47:39 +00:00
Qute: unitter, switchdark, ydl
This commit is contained in:
parent
82c5811eeb
commit
a7f02819c5
|
@ -19,16 +19,21 @@ settings:
|
|||
<Alt+t>: tab-prev
|
||||
<Ctrl+Shift+m>: spawn fish -c 'cd Downloads; ydl "{url}"'
|
||||
<Ctrl+k>: spawn -u qute-keepass -p ~/.keepass
|
||||
<Ctrl+m>: spawn -d mpv {url}
|
||||
<Ctrl+m>: spawn -m -d -v mpv {url}
|
||||
<Ctrl+q>: close
|
||||
<Ctrl+r>: spawn --userscript readability
|
||||
<Ctrl+w>: tab-close
|
||||
gy: spawn -u ydl
|
||||
sa: spawn -u archive
|
||||
sca: spawn -u switchadapta
|
||||
scd: spawn -u switchdark
|
||||
sd: spawn -u open_download
|
||||
sq: open qr {url}
|
||||
st: spawn -u switchtor
|
||||
sw: open https://webrecorder.io/record/{url}
|
||||
sx: spawn -u nitterize
|
||||
wq: open qr {url}
|
||||
sz: spawn -u focusmode
|
||||
xs: spawn -u unitter
|
||||
passthrough:
|
||||
<Ctrl+Shift+Escape>exit: leave-mode
|
||||
<Shift+Escape>: null
|
||||
|
@ -177,6 +182,8 @@ settings:
|
|||
global: true
|
||||
content.media_capture:
|
||||
https://discordapp.com: true
|
||||
content.notifications:
|
||||
https://web.whatsapp.com: true
|
||||
content.pdfjs:
|
||||
global: true
|
||||
content.persistent_storage:
|
||||
|
@ -190,11 +197,13 @@ settings:
|
|||
content.proxy:
|
||||
global: system
|
||||
content.register_protocol_handler:
|
||||
global: ask
|
||||
https://mail.tutanota.com#url=%25s: true
|
||||
content.ssl_strict:
|
||||
global: ask
|
||||
content.user_stylesheets:
|
||||
global: /home/glados/.local/share/qutebrowser/normalize.css
|
||||
global:
|
||||
- /home/glados/.local/share/qutebrowser/normalize.css
|
||||
content.webgl:
|
||||
global: true
|
||||
content.webrtc_ip_handling_policy:
|
||||
|
@ -238,6 +247,8 @@ settings:
|
|||
global: 9pt default_family
|
||||
fonts.web.family.fantasy:
|
||||
global: null
|
||||
fonts.web.family.standard:
|
||||
global: null
|
||||
fonts.web.size.default_fixed:
|
||||
global: 13
|
||||
hints.auto_follow_timeout:
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
set selection-clipboard clipboard
|
||||
set recolor-lightcolor '#111219'
|
||||
|
||||
set recolor-keephue
|
||||
set recolor-reverse-video
|
||||
set recolor-darkcolor '#FFFFFF'
|
||||
set highlight-active-color '#FF79C6'
|
||||
set recolor
|
||||
|
||||
map <C-I> set recolor-reverse-video
|
||||
map <C-i> recolor
|
||||
|
|
278
.local/share/qutebrowser/adapta.css
Normal file
278
.local/share/qutebrowser/adapta.css
Normal file
|
@ -0,0 +1,278 @@
|
|||
* {
|
||||
border-color: #909396 !important;
|
||||
}
|
||||
a {
|
||||
color: #84beea !important;
|
||||
}
|
||||
a:visited {
|
||||
color: #5294e2 !important;
|
||||
}
|
||||
body {
|
||||
background-color: #222D32 !important;
|
||||
color: #909396 !important;
|
||||
}
|
||||
html {
|
||||
background-color: #222D32 !important;
|
||||
}
|
||||
input,
|
||||
textarea {
|
||||
background-color: #222d32 !important;
|
||||
color: #909396 !important;
|
||||
}
|
||||
blockquote,
|
||||
pre {
|
||||
background-color: #222d32 !important;
|
||||
color: #909396 !important;
|
||||
}
|
||||
html {
|
||||
background-color: #222D32 !important;
|
||||
}
|
||||
* {
|
||||
color: #909396 !important;
|
||||
background-color: transparent !important;
|
||||
text-shadow: none !important;
|
||||
border-color: #5e6263 !important;
|
||||
border-top-color: #5e6263 !important;
|
||||
border-bottom-color: #5e6263 !important;
|
||||
border-left-color: #5e6263 !important;
|
||||
border-right-color: #5e6263 !important;
|
||||
}
|
||||
body {
|
||||
background: transparent !important;
|
||||
}
|
||||
*:before,
|
||||
*:after {
|
||||
background-color: transparent !important;
|
||||
border-color: #5e6263 !important;
|
||||
border-top-color: #5e6263 !important;
|
||||
border-bottom-color: #5e6263 !important;
|
||||
border-left-color: #5e6263 !important;
|
||||
border-right-color: #5e6263 !important;
|
||||
}
|
||||
a * {
|
||||
color: #84beea !important;
|
||||
}
|
||||
a:visited * {
|
||||
color: #5294e2 !important;
|
||||
}
|
||||
div[style="display: block;"],
|
||||
div[role="navigation"] {
|
||||
background: #263238 !important;
|
||||
}
|
||||
table {
|
||||
background: #222d32 !important;
|
||||
border-radius: 6px !important;
|
||||
}
|
||||
table > tbody > tr:nth-child(even),
|
||||
table > tbody > tr > td:nth-child(even) {
|
||||
background-color: rgba(0,0,0,0.2) !important;
|
||||
}
|
||||
iframe,
|
||||
embed,
|
||||
header,
|
||||
nav,
|
||||
footer,
|
||||
label [onclick],
|
||||
nav ul,
|
||||
div[style*="position:"][style*="left:"][style*="visible"],
|
||||
div[style*="z-index:"][style*="left:"][style*="visible"],
|
||||
div[style*="-moz-user-select"],
|
||||
div[role="menu"],
|
||||
div[role="dialog"],
|
||||
div[id="task details"],
|
||||
span[class*="script"] div,
|
||||
[id*="menu"],
|
||||
[class*="dropdown"],
|
||||
[class*="popup"],
|
||||
[class="title"],
|
||||
[class="search__autocomplete"],
|
||||
[class="top-matter"],
|
||||
ul[style*="display:"],
|
||||
ul[style*="visibility:"] ul,
|
||||
[id*="nav"] ul,
|
||||
[class*="nav"] ul,
|
||||
ul[class*="menu"],
|
||||
a[onclick][style*="display"],
|
||||
a[id*="ghosteryfirefox"],
|
||||
#ghostery-purple-bubble,
|
||||
#translator-popup,
|
||||
.menu,
|
||||
.tooltip,
|
||||
.hovercard,
|
||||
.vbmenu_popup,
|
||||
* .navigation,
|
||||
* .navigation a,
|
||||
ul,
|
||||
menu,
|
||||
dir,
|
||||
#header,
|
||||
.openData .odGradient,
|
||||
.stable-head td div,
|
||||
.rplm-alert .content-wrap,
|
||||
#navbar *,
|
||||
#sondage,
|
||||
div.dlg-window,
|
||||
.modal-container .modal-content .modal-box .once-modal,
|
||||
.tabs_main ul li a,
|
||||
.tabs_main ul li span,
|
||||
.module-actionbar .module-actionbar-action,
|
||||
.bg_01,
|
||||
.bg-default,
|
||||
.box-highlight,
|
||||
.bg-brighter,
|
||||
.mvxl,
|
||||
#downloads,
|
||||
.questions-ovl,
|
||||
.ovl-frame,
|
||||
.messenger__contacts .scroll,
|
||||
.messenger__contacts .scroll_,
|
||||
.messenger__content .scroll,
|
||||
.messenger__content .scroll_,
|
||||
.st_error .messenger__content-inner .scroll__,
|
||||
a.info:hover span,
|
||||
a.info:focus span,
|
||||
#system,
|
||||
#product,
|
||||
.clicked,
|
||||
.notClicked,
|
||||
.notClicked:hover,
|
||||
#ident_div_ident,
|
||||
.idAbonne,
|
||||
#pageFacture .tab-content,
|
||||
span.conteneurTips,
|
||||
.ligneOption,
|
||||
.ligneMevo td,
|
||||
[id*="footer"],
|
||||
.modal-dialog,
|
||||
.cadre-contenu,
|
||||
#cart_summary,
|
||||
#loyalty-target,
|
||||
#cont-subnav,
|
||||
.wrapper,
|
||||
.filtre-thematiques-selected,
|
||||
.filtre-thematiques,
|
||||
ul.thematiques,
|
||||
li.thematique.sans-chaines,
|
||||
a.voir-thematique,
|
||||
[class*="progTrigger"],
|
||||
#connexion,
|
||||
.sub-menu .sub-nav-article-wrapper,
|
||||
#navMain ul li,
|
||||
.SMainRack,
|
||||
.STopRack,
|
||||
.STopFirst,
|
||||
.SBotRack,
|
||||
.result.highlight {
|
||||
background: #263238 !important;
|
||||
border-radius: 5px !important;
|
||||
}
|
||||
header,
|
||||
#header,
|
||||
footer,
|
||||
#footer {
|
||||
background: #263238 !important;
|
||||
}
|
||||
body > #dialog,
|
||||
body > .xenOverlay {
|
||||
background: #263238 !important;
|
||||
border: 10px !important;
|
||||
border-radius: 0 !important;
|
||||
}
|
||||
[id*="overlay"],
|
||||
[id*="lightbox"],
|
||||
blockquote {
|
||||
background-color: #263238 !important;
|
||||
border-radius: 5px;
|
||||
}
|
||||
input,
|
||||
select,
|
||||
button,
|
||||
a.button,
|
||||
a.submit,
|
||||
a.BigButton,
|
||||
a.TabLink,
|
||||
.install[onclick],
|
||||
a[href="javascript:;"],
|
||||
a[class*="button"]:not(:empty),
|
||||
a[id*="button"]:not(:empty),
|
||||
a[id*="Button"]:not(:empty),
|
||||
div[class*="button"][onclick],
|
||||
.fbNubFlyoutBodyContent {
|
||||
background: #263238 !important;
|
||||
color: #a6aaab !important;
|
||||
}
|
||||
input:hover,
|
||||
select:hover,
|
||||
button:hover,
|
||||
a.button:hover,
|
||||
a.submit:hover,
|
||||
a.BigButton:hover,
|
||||
a.TabLink:hover,
|
||||
.install[onclick]:hover,
|
||||
a[href="javascript:;"]:hover,
|
||||
a[class*="button"]:not(:empty):hover,
|
||||
a[id*="button"]:not(:empty):hover,
|
||||
a[id*="Button"]:not(:empty):hover,
|
||||
div[class*="button"][onclick]:hover,
|
||||
.fbNubFlyoutBodyContent:hover {
|
||||
background-color: #5e6263 !important;
|
||||
}
|
||||
input:active,
|
||||
select:active,
|
||||
button:active,
|
||||
a.button:active,
|
||||
a.submit:active,
|
||||
a.BigButton:active,
|
||||
a.TabLink:active,
|
||||
.install[onclick]:active,
|
||||
a[href="javascript:;"]:active,
|
||||
a[class*="button"]:not(:empty):active,
|
||||
a[id*="button"]:not(:empty):active,
|
||||
a[id*="Button"]:not(:empty):active,
|
||||
div[class*="button"][onclick]:active,
|
||||
.fbNubFlyoutBodyContent:active {
|
||||
background-color: #5e6263 !important;
|
||||
color: #a6aaab !important;
|
||||
}
|
||||
input *,
|
||||
select *,
|
||||
button *,
|
||||
a.button *,
|
||||
a.submit * {
|
||||
color: #909396 !important;
|
||||
}
|
||||
input[type="checkbox"] {
|
||||
opacity: 100 !important;
|
||||
}
|
||||
input[disabled],
|
||||
select[disabled],
|
||||
button[disabled],
|
||||
input[disabled]:hover,
|
||||
select[disabled]:hover,
|
||||
button[disabled]:hover,
|
||||
input[disabled]:focus,
|
||||
select[disabled]:focus,
|
||||
button[disabled]:focus {
|
||||
opacity: 0.5 !important;
|
||||
border-color: #263238 !important;
|
||||
}
|
||||
textarea {
|
||||
background: #222d32 !important;
|
||||
}
|
||||
body,
|
||||
.r3_hm,
|
||||
.gmbutton2 b,
|
||||
.gtab-i,
|
||||
.ph,
|
||||
.bstab-iLft,
|
||||
.csb,
|
||||
#pagination div,
|
||||
[style*="sprite2.png"],
|
||||
#mw-head-base,
|
||||
#mw-page-base {
|
||||
background-image: none !important;
|
||||
}
|
||||
.link-gray-dark,
|
||||
.text-gray-dark {
|
||||
color: #909396 !important;
|
||||
}
|
4
.local/share/qutebrowser/userscripts/focusmode
Executable file
4
.local/share/qutebrowser/userscripts/focusmode
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
mv $QUTE_CONFIG_DIR/blocked-hosts $QUTE_CONFIG_DIR/blocked-hosts.bak && exit
|
||||
mv $QUTE_CONFIG_DIR/blocked-hosts.bak $QUTE_CONFIG_DIR/blocked-hosts
|
||||
echo "adblock-update" > $QUTE_FIFO
|
8
.local/share/qutebrowser/userscripts/switchadapta
Executable file
8
.local/share/qutebrowser/userscripts/switchadapta
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/fish
|
||||
if test -e $QUTE_DATA_DIR/userscripts/adapta
|
||||
echo 'set content.user_stylesheets \'["/home/glados/.local/share/qutebrowser/normalize.css"]\'' >> "$QUTE_FIFO"
|
||||
rm $QUTE_DATA_DIR/userscripts/adapta
|
||||
else
|
||||
echo 'set content.user_stylesheets \'["/home/glados/.local/share/qutebrowser/normalize.css", "/home/glados/.local/share/qutebrowser/adapta.css"]\'' >> "$QUTE_FIFO"
|
||||
touch $QUTE_DATA_DIR/userscripts/adapta
|
||||
end
|
10
.local/share/qutebrowser/userscripts/switchdark
Executable file
10
.local/share/qutebrowser/userscripts/switchdark
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/fish
|
||||
if test -e $QUTE_DATA_DIR/greasemonkey/discord.js
|
||||
echo "set qt.args ["blink-settings=darkMode=4"]" >> "$QUTE_FIFO"
|
||||
mv $QUTE_DATA_DIR/greasemonkey/discord.js $QUTE_DATA_DIR/greasemonkey/discord.js.bak
|
||||
echo "restart" >> $QUTE_FIFO
|
||||
else
|
||||
echo "config-unset qt.args" >> "$QUTE_FIFO"
|
||||
mv $QUTE_DATA_DIR/greasemonkey/discord.js.bak $QUTE_DATA_DIR/greasemonkey/discord.js
|
||||
echo "restart" >> $QUTE_FIFO
|
||||
end
|
3
.local/share/qutebrowser/userscripts/unitter
Executable file
3
.local/share/qutebrowser/userscripts/unitter
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/fish
|
||||
|
||||
echo open (echo $QUTE_URL | sed 's/invidio.us/www.youtube.com/; s/nitter.snopyta.org/twitter.com/; s/bibliogram.art/www.instagram.com/') >> "$QUTE_FIFO"
|
4
.local/share/qutebrowser/userscripts/ydl
Executable file
4
.local/share/qutebrowser/userscripts/ydl
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
(youtube-dl --output "$QUTE_DOWNLOAD_DIR/%(title)s.%(ext)s" $QUTE_URL &&
|
||||
notify-send "YouTube download completed!" "$QUTE_TITLE") || exit 0
|
Loading…
Reference in a new issue