1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2025-11-26 06:06:40 +00:00

Qute: enable dark mode, add some better bindings

This commit is contained in:
Phantop 2021-01-03 16:48:24 -05:00
parent 0b4c8450dd
commit 08f0dc08be
3 changed files with 23 additions and 10 deletions

View file

@ -37,15 +37,21 @@ config.set('content.persistent_storage', True, 'https://mega.nz')
# BINDINGS # # BINDINGS #
config.bind('<Ctrl-q>', 'close') config.bind('<Ctrl-q>', 'close')
config.bind('<Ctrl-w>', 'tab-close') config.bind('<Ctrl-w>', 'tab-close')
config.bind('c1', "download-open")
config.bind('c1', 'download-open')
config.bind('gs', 'debug-dump-page ~/Downloads/dump.html')
config.bind('sd', "spawn fish -c 'dl; open (ls | rofi -dmenu -b -i || exit 0)'") config.bind('sd', "spawn fish -c 'dl; open (ls | rofi -dmenu -b -i || exit 0)'")
c.aliases['mpv'] = "spawn -m -d -v mpv --ytdl-raw-options=write-sub=,write-auto-sub=,embed-subs=,sub-lang=en}" mpv = 'spawn -m -d -v mpv --ytdl-raw-options=write-sub=,write-auto-sub=,embed-subs=,sub-lang=en'
c.aliases['mpv'] = mpv
config.bind('m', 'mpv {url}') config.bind('m', 'mpv {url}')
config.bind('M', 'mpv --ytdl-format=bestvideo[vcodec^=avc1]+bestaudio {url}')
config.bind(';m', 'hint links run mpv {hint-url}') config.bind(';m', 'hint links run mpv {hint-url}')
config.bind(',', 'hint links run mpv {hint-url}') config.bind(',', 'hint links run mpv {hint-url}')
c.aliases['mpv4'] = mpv + ' --ytdl-format=bestvideo[vcodec^=avc1]+bestaudio'
config.bind('M', 'mpv4 {url}')
config.bind(';M', 'hint links run mpv4 {hint-url}')
config.bind('sq', 'open qr {url}') config.bind('sq', 'open qr {url}')
config.bind('sa', 'open https://archive.is/?run=1&url={url}') config.bind('sa', 'open https://archive.is/?run=1&url={url}')
config.bind('sw', 'open https://conifer.rhizome.org/record/{url}') config.bind('sw', 'open https://conifer.rhizome.org/record/{url}')
@ -53,8 +59,9 @@ config.bind('se', 'open https://dotepub.com/converter/?url={url}&fmt=epub')
c.aliases['remove-sticky'] = 'jseval -q !function(){var e,o=document.querySelectorAll("body *");for(e=0;e<o.length;e++)["sticky","fixed"].includes(getComputedStyle(o[e]).position)&&o[e].parentNode.removeChild(o[e])}();' c.aliases['remove-sticky'] = 'jseval -q !function(){var e,o=document.querySelectorAll("body *");for(e=0;e<o.length;e++)["sticky","fixed"].includes(getComputedStyle(o[e]).position)&&o[e].parentNode.removeChild(o[e])}();'
config.bind('sr', 'remove-sticky') config.bind('sr', 'remove-sticky')
config.bind('<Ctrl-r>', 'spawn -u /usr/bin/env python3 /usr/share/qutebrowser/userscripts/readability') config.bind('<Ctrl-r>', 'spawn -u /usr/bin/env python3 /usr/share/qutebrowser/userscripts/readability')
config.bind('<Ctrl-Shift-R>', "spawn kitty rdrview -B qutebrowser {url}") config.bind('<Ctrl-Shift-R>', 'spawn kitty rdrview -B qutebrowser {url}')
config.bind('st', 'config-cycle -t content.proxy socks://localhost:9050/ system') config.bind('st', 'config-cycle -t content.proxy socks://localhost:9050/ system')
config.bind('sc', 'config-cycle -t content.user_stylesheets adapta.css ""') config.bind('sc', 'config-cycle -t content.user_stylesheets adapta.css ""')
@ -70,7 +77,8 @@ ccw = cc.webpage
ccwd = ccw.darkmode ccwd = ccw.darkmode
ccw.prefers_color_scheme_dark = True ccw.prefers_color_scheme_dark = True
ccwd.enabled = False ccwd.enabled = True
ccwd.policy.images = 'never'
ccc.category.bg = guicol ccc.category.bg = guicol
ccc.scrollbar.bg = guicol ccc.scrollbar.bg = guicol

View file

@ -25,16 +25,13 @@ body {
background: url("https://cdn.discordapp.com/attachments/610991459323084801/625107142092783616/moon3.png"); background: url("https://cdn.discordapp.com/attachments/610991459323084801/625107142092783616/moon3.png");
background-size: cover; background-size: cover;
} }
/*[[theme]]*/
/*remove borders*/ .header-2o-2hj, /*remove borders*/
.header-2o-2hj,
.searchBar-6Kv8R2, .searchBar-6Kv8R2,
.content-yTz4x3::before { .content-yTz4x3::before {
box-shadow: none !important; box-shadow: none !important;
} }
/*misc*/
.container-1D34oG, /*friends list*/ .container-1D34oG, /*friends list*/
.scrollbar-2rkZSL, /*scrollbar*/ .scrollbar-2rkZSL, /*scrollbar*/
.pad-29zQak, .pad-29zQak,
@ -96,6 +93,14 @@ body {
background: rgba(0, 0, 0, .5) !important; background: rgba(0, 0, 0, .5) !important;
} }
/* -----UNREAD BADGE DARKMODE FIX----- */
.item-2hkk8m {
background-color: #ccc;
}
.unread-2lAfLh {
background-color: #ccc;
}
`; `;
} }
}); });

View file

@ -156,7 +156,7 @@ body > center > table[width="85%"] td[bgcolor="#ff6600"] {
.comment, .comment,
.comment > span { .comment > span {
font-family: "Open Sans", "Bitstream Vera Sans", Verdana, Geneva, sans-serif !important; font-family: "Open Sans", "Bitstream Vera Sans", Verdana, Geneva, sans-serif !important;
font-size: 15px !important; font-size: 14px !important;
} }
.comment .c00 { .comment .c00 {