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

Various changes and add pdfjs

This commit is contained in:
Phantop 2021-05-18 12:50:56 -04:00
parent 64d5f0b222
commit c3dbc93469
6 changed files with 14 additions and 9 deletions

View file

@ -3,6 +3,7 @@ save-position-on-quit = yes
screenshot-format = webp
screenshot-webp-lossless = yes
screenshot-webp-compression = 6
screenshot-webp-quality = 100
gapless-audio = yes
volume-max = 1000
@ -20,7 +21,7 @@ sub-font-size = 36
scale = spline36
cscale = spline36
dscale = lanczos
dscale = spline36
[wallpaper]
loop

View file

@ -3,6 +3,7 @@ bind = {
'<Ctrl-r>': 'spawn -u readability',
'<Ctrl-w>': 'tab-close',
'<Ctrl-Shift-R>': 'spawn kitty rdrview -B qutebrowser {url}',
'<Alt+f>' : 'config-cycle hints.chars qwerasdf asdfghjkl',
'm': 'mpv {url}',
'M': 'mpv4 {url}',

View file

@ -16,6 +16,7 @@ c.url.open_base_url = True
c.completion.open_categories = ["quickmarks", "bookmarks", "history"]
c.confirm_quit = ["downloads"]
c.content.cookies.accept = "no-3rdparty"
c.content.pdfjs = True
c.fonts.default_size = "9pt"
c.qt.args += ["enable-gpu-rasterization"]
c.qt.force_platformtheme = "gtk2"

View file

@ -1,7 +1,7 @@
from qutebrowser.api import interceptor
import operator, typing
invid = 'invidious.himiko.cloud'
invid = 'vid.puffyan.us'
nitter = 'nitter.database.red'
reddit = 'teddit.net'

View file

@ -1,6 +1,6 @@
#!/bin/sh
DIR=~/dwarf/$(basename $@ .dwarfs)$RANDOM
mkdir -p $DIR
echo $DIR
dwarfs -o offset=auto -f $@ $DIR 2> /dev/null
rmdir $DIR ~/dwarf 2> /dev/null
DIR=~/dwarf/$(basename "$@" .dwarfs)$RANDOM
mkdir -p "$DIR"
echo "$DIR"
dwarfs -o offset=auto -f "$@" "$DIR" 2> /dev/null
rmdir "$DIR" ~/dwarf 2> /dev/null

6
.setup
View file

@ -26,6 +26,9 @@ stow .
mkdir -p ~/.config/mpv/shaders && cd ~/.config/mpv/shaders && rm *
curl https://api.github.com/repos/bloc97/Anime4K/releases/latest | grep -wo http.\*zip | aria2c -i-; unzip *; rm *zip
mkdir -p ~/.local/share/qutebrowser/pdfjs && cd ~/.config/mpv/shaders && rm *
curl https://api.github.com/repos/mozilla/pdf.js/releases/latest | grep -wo http.\*zip | grep -v es5 | aria2c -i-; unzip *; rm *zip
rm ~/.config/nvim/autoload/plug.vim
aria2c https://github.com/junegunn/vim-plug/raw/master/plug.vim -d ~/.config/nvim/autoload
nvim +PlugUpdate +q +q
@ -41,5 +44,4 @@ git g gh:Phantop/phantop.github.io ~/.site
git g gh:Phantop/haiku-icons ~/.local/share/icons/Haiku
cd ~/.solus && git update-index --assume-unchanged packager
~/.solus/build
fish -c "aliases;invid;clean"
fish -c "aliases;clean"