1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-21 14:22:45 +00:00

qute: move css into subfolder

This commit is contained in:
Phantop 2024-07-05 23:23:04 -04:00
parent 38e36997b8
commit ef0605b4e0
3 changed files with 10 additions and 9 deletions

View file

@ -23,17 +23,18 @@ w https://github.com/dracula/kitty/raw/master/dracula.conf -P ~/.config/kitty
w https://github.com/dracula/musikcube/raw/main/dracula.json -P ~/.config/musikcube/themes
w https://github.com/dracula/rofi/raw/main/theme/config2.rasi -P ~/.config/rofi
ln -s /usr/share/netsurf/adblock.css ~/.config/qutebrowser
w https://github.com/redlib-org/redlib/raw/main/static/themes/laserwave.css -P ~/.config/qutebrowser
sed -i s/laserwave/fixed_navbar/ ~/.config/qutebrowser/laserwave.css
w https://github.com/zedeus/nitter/raw/master/public/css/themes/twitter_dark.css -P ~/.config/qutebrowser
ln -s /usr/share/netsurf/adblock.css ~/.config/qutebrowser/css
w https://github.com/redlib-org/redlib/raw/main/static/themes/laserwave.css -P ~/.config/qutebrowser/css
sed -i s/laserwave/fixed_navbar/ ~/.config/qutebrowser/css/laserwave.css
w https://github.com/zedeus/nitter/raw/master/public/css/themes/twitter_dark.css -P ~/.config/qutebrowser/css
ao3=~/.config/qutebrowser/ao3.scss
ao3=~/.config/qutebrowser/css/ao3.scss
echo ":root:has(div#outer.wrapper) {" > "$ao3"
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/ao3.css
sass "$ao3" ~/.config/qutebrowser/css/ao3.css
sass ~/.config/qutebrowser/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

View file

@ -1,8 +1,8 @@
a=c.aliases
a['re'] = 'restart'
a['idk'] = 'spawn -u wikidns'
a['css-reload'] = 'set content.user_stylesheets user.css'
a['scss-reload'] = 'spawn -u /bin/bash -c "sass $QUTE_CONFIG_DIR/user.{s,}css"'
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['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'

View file

@ -53,5 +53,5 @@ 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 = ['adblock.css', 'ao3.css', 'laserwave.css', 'twitter_dark.css', 'user.css']
c.content.user_stylesheets = ['css/adblock.css', 'css/ao3.css', 'css/laserwave.css', 'css/twitter_dark.css', 'css/user.css']
c.tabs.show = 'multiple'