mirror of
https://github.com/Phantop/dotfiles
synced 2024-11-21 14:22:45 +00:00
qute: split out ui config and move css
This commit is contained in:
parent
ef0605b4e0
commit
ed708d1be3
|
@ -34,7 +34,7 @@ curl https://archiveofourown.org/skins/929 | pup -p .css pre text{} >> "$ao3"
|
|||
sed -i -e '/232323/d' -e 's/#5998D6/MediumPurple/' -e 's/background:.*/background: #000;/' "$ao3"
|
||||
echo "}" >> "$ao3"
|
||||
sass "$ao3" ~/.config/qutebrowser/css/ao3.css
|
||||
sass ~/.config/qutebrowser/user.scss ~/.config/qutebrowser/css/user.css
|
||||
sass ~/.config/qutebrowser/css/user.scss ~/.config/qutebrowser/css/user.css
|
||||
|
||||
w https://github.com/mrzool/bash-sensible/raw/master/sensible.bash -O ~/.bashrc
|
||||
w https://github.com/savq/paq-nvim/raw/master/lua/paq.lua -P ~/.config/nvim/lua
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
a=c.aliases
|
||||
a['re'] = 'restart'
|
||||
a['idk'] = 'spawn -u wikidns'
|
||||
a['css-reload'] = 'set content.user_stylesheets css/user.css'
|
||||
a['scss-reload'] = 'spawn -u /bin/bash -c "sass $QUTE_CONFIG_DIR/user.scss $QUTE_CONFIG_DIR/css/user.css"'
|
||||
a['scss-reload'] = 'spawn -u /bin/bash -c "sass $QUTE_CONFIG_DIR/css/user.{s,}css"'
|
||||
a['remove-sticky'] = 'jseval -q document.querySelectorAll("*").forEach(e=>{["sticky","fixed"].includes(getComputedStyle(e).position)&&e.parentNode.removeChild(e)})'
|
||||
a['toggle-dark'] = 'reload;;jseval -q const meta=document.createElement("meta");meta.name="color-scheme";document.head.appendChild(meta).content="dark";;stop'
|
||||
a['monolith-save'] = 'spawn kitty fish -c "monolith {url} -o'
|
||||
|
||||
a['ao3-first'] = 'jseval -q window.location = document.getElementsByTagName("option")[0].value'
|
||||
a['ao3-last'] = 'jseval -q c=document.getElementsByTagName("option"); window.location = c[c.length-1].value'
|
||||
|
@ -24,8 +22,8 @@ bind = {
|
|||
'<Ctrl-Shift-a>': 'ao3-last',
|
||||
'A': 'ao3-next',
|
||||
'X': 'ao3-prev',
|
||||
'<Alt+A>': 'scrib-next',
|
||||
'<Alt+X>': 'scrib-prev',
|
||||
'<Alt+a>': 'scrib-next',
|
||||
'<Alt+x>': 'scrib-prev',
|
||||
|
||||
'm': 'spawn -mdv mpv {url}',
|
||||
',': 'hint links run spawn -mdv mpv {hint-url}',
|
||||
|
@ -43,7 +41,6 @@ bind = {
|
|||
'sc': 'toggle-dark',
|
||||
'sd': "spawn fish -c 'dl; open (ls -a | rofi -dmenu -b -i || exit 0)'",
|
||||
'sg': 'debug-dump-page ~/Downloads/dump.html',
|
||||
'sm': 'monolith-save ~/Downloads/dump.html"',
|
||||
'sp': 'open ldrproxy.fly.dev/{url}',
|
||||
'sP': 'open morty.ononoki.org/?mortyurl={url}',
|
||||
'sq': 'spawn -u qr',
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
config.load_autoconfig(False)
|
||||
c.confirm_quit = ['downloads']
|
||||
|
||||
config.source('adblock.py')
|
||||
config.source('bindings.py')
|
||||
config.source('redirects.py')
|
||||
config.source('search.py')
|
||||
config.source('sites.py')
|
||||
config.source('theme.py')
|
||||
config.source('ui.py')
|
||||
|
|
|
@ -8,11 +8,6 @@ sites = [
|
|||
'canary.discord.com',
|
||||
'app.tuta.com',
|
||||
c.url.default_page,
|
||||
|
||||
'*.rpi.edu',
|
||||
'*.albany.edu',
|
||||
'api-3e0243bb.duosecurity.com',
|
||||
'api-71fc1511.duosecurity.com',
|
||||
]
|
||||
for site in sites:
|
||||
config.set('content.javascript.enabled', True, 'https://' + site)
|
||||
|
|
|
@ -49,9 +49,3 @@ cc.messages.warning.border = 'red'
|
|||
cc.webpage.darkmode.enabled = True
|
||||
cc.webpage.preferred_color_scheme = 'dark'
|
||||
cc.webpage.darkmode.policy.images = 'never'
|
||||
|
||||
c.completion.open_categories = ["bookmarks","history"]
|
||||
c.content.fullscreen.window = True
|
||||
c.content.prefers_reduced_motion = True
|
||||
c.content.user_stylesheets = ['css/adblock.css', 'css/ao3.css', 'css/laserwave.css', 'css/twitter_dark.css', 'css/user.css']
|
||||
c.tabs.show = 'multiple'
|
||||
|
|
6
qutebrowser/ui.py
Normal file
6
qutebrowser/ui.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
c.completion.open_categories = ["bookmarks","history"]
|
||||
c.confirm_quit = ['downloads']
|
||||
c.content.fullscreen.window = True
|
||||
c.content.prefers_reduced_motion = True
|
||||
c.content.user_stylesheets = ['css/adblock.css', 'css/ao3.css', 'css/laserwave.css', 'css/twitter_dark.css', 'css/user.css']
|
||||
c.tabs.show = 'multiple'
|
Loading…
Reference in a new issue