Setup: clean up unneeded packages; qute: reddit

This commit is contained in:
Phantop 2022-02-18 23:04:40 -05:00
parent 76ecb13a15
commit c43402aed4
8 changed files with 27 additions and 29 deletions

View File

@ -4,7 +4,7 @@ set -U fish_features 3.0
a acmus 'timeout --foreground (math 3600 - (date +%s) % 3600) mpv --loop https://acmusicext.com/static/$argv/sunny/(date +%-I%p|tr APM apm).ogg'
a aliases 'v (env which aliases); command aliases'
a all2jxl 'fd -e{png,jpg} -x cjxl -e 8 -d 0 {} {.}.jxl && fd -e{png,jpg} -x rm'
a all2jxl 'fd -e{png,jpg} -x cjxl -e 8 -d 0 {} {.}.jxl && fd -e jxl -x rm {.}.{pn,jp}g'
a ao3 'grep -Eo works/[0-9]+ $argv | uniq | tr -d a-z | parallel aria2c "https://ao3.org/downloads{}/\*.epub" -d ao3; rm'
a base64d 'echo (echo $argv | base64 -d 2>/dev/null) | tee /dev/stderr 2>| clip;:'
a bax 'source (which bax) && bax'
@ -26,13 +26,13 @@ a launcher 'rofi -combi-modi "drun,run" -show combi -modi "combi,window"'
a less 'eval $PAGER'
a listen 'pactl list | grep loop && set t un; pactl "$t"load-module module-loopback'
a musikcube 'screen -R -s musikcube'
a ncdu 'ncdu --color off'
a ncdu 'ncdu --color off --graph-style hash'
a nix 'bax . ~/.nix-profile/etc/profile.d/nix.sh; command nix'
a off shutdown
a offh 'off (math "60*"$argv);:'
a open xdg-open
a pagedl 'wget -H -k -p --no-clobber -e robots=off'
a png2webp 'fd -e png -x cwebp -z 9 -mt {} -o {.}.webp && fd -e png -x rm'
a png2webp 'fd -e png -x cwebp -z 9 -mt {} -o {.}.webp && fd -e webp -x rm {.}.png'
a qutainer 'qutebrowser -B /tmp'
a rmdirs 'ff -t d -x rmdir -p'
a rmlinks 'ff -t l -x rm'
@ -47,6 +47,7 @@ a temp 'curl temp.sh -T'
a tldrl 'curl -s https://raw.githubusercontent.com/tldr-pages/tldr/master/pages/{common,linux}/$argv.md;:'
a transfer 'curl https://transfer.sh/(basename $argv) -T'
a twitch-dl 'ffmpeg -i (yt-dlp -e $argv[1]|tr / _) -c copy $argv[2..-1] "file:(yt-dlp -g $argv[1]).mkv"'
a untar 'tar xf'
a up 'se up --y'
a v vi
a vi nvim

View File

@ -1,18 +1,16 @@
#!/bin/bash
alias s=sudo se="s eopkg -y" g=git
gnome="$(echo eog file-roller gnome-{photos,mpv,terminal} nautilus rhythmbox)"
gnome="$(echo eog gnome-{photos,mpv,terminal} nautilus rhythmbox)"
se rm $gnome firefox hexchat libreoffice-common onboard thunderbird
audio="audacious audacious-plugins audacity opus-tools spek"
dev="ccache docker-compose git-extras llvm-clang neovim parallel qt-creator solbuild"
gui="abiword caja gmic-gimp engrampa keepassxc kitty lutris zathura-poppler"
media="avidemux gaupol jpegoptim mkvtoolnix mpv playerctl usbmuxd viewnior yt-dlp"
rice="ant-dracula-gtk-theme font-ubuntu-ttf rofi starship stow"
term="advancecomp autojump fd fish fzf innoextract micro most ncdu p7zip ripgrep tig"
sys="bleachbit corectrl ifuse linux-tools-cpupower python-wheel rsync screen tlp upx"
web="arcanist aria2 nicotine-plus qutebrowser openssh-server subliminal syncthing-gtk"
se up; se it -c system.devel $audio $dev $gui $media $rice $sys $term $web
dev="arcanist ccache git-extras llvm-clang neovim parallel qt-creator solbuild"
gui="caja gimp keepassxc kitty nicotine-plus qutebrowser syncthing zathura-mupdf"
med="audaci{ty,ous{,-plugins}} avidemux mkvtoolnix mpv opus-tools spek yt-dlp"
ric="ant-dracula-gtk-theme autojump font-ubuntu-ttf rofi starship stow"
tui="advancecomp aria2 fd fish fzf innoextract jpegoptim most ncdu ripgrep tig"
sys="bleachbit corectrl ifuse linux-tools-cpupower p7zip screen tlp usbmuxd upx"
se up; se it -c system.devel $dev $gui $med $ric $sys $tui
stow --no-folding -d ~/.dotfiles -t ~/.config .
stow --no-folding -d ~/.dotfiles -t ~/.local/bin bin
@ -20,8 +18,8 @@ mkdir -p ~/.parallel/will-cite
echo source ~/.config/bashrc > ~/.bashrc
ln -s ~/.config/gtk-3.0/gtkrc ~/.gtkrc-2.0
un(){ F=$(mktemp); mkdir -p $2; curl https://api.github.com/repos/$1/releases |\
grep -om1 http.\*zip | wget -i- -O$F; unzip $F -d $2;}
un(){ F=$(mktemp); mkdir -p "$2"; curl https://api.github.com/repos/"$1"/releases |\
grep -om1 http.\*zip | wget -i- -O"$F"; unzip "$F" -d "$2";}
un bloc97/Anime4k ~/.config/mpv/shaders
un mozilla/pdf.js ~/.local/share/qutebrowser/pdfjs
wget https://adsbypasser.github.io/releases/adsbypasser.full.es7.user.js -P ~/.config/qutebrowser/greasemonkey/
@ -29,8 +27,7 @@ pip3 install adblock pipx-in-pipx readability-lxml
chsh -s "$(which fish)"
fish -c "aliases;clean"
s usermod -aG docker $USER
s systemctl enable --now docker
s usermod -aG docker "$USER"
s systemctl mask tracker-{store,miner-{fs,rss,apps},extra,writeback}
g g p:appdwarf ~/.appdwarf
@ -40,6 +37,5 @@ g g p:haiku-icons ~/.local/share/icons/Haiku
g g h:junegunn/vim-plug ~/.config/nvim/autoload
nvim +PlugUpdate +q +q
gsettings set org.gnome.desktop.interface cursor-theme Haiku
gsettings set org.gnome.desktop.interface icon-theme Haiku
parallel gsettings set org.gnome.desktop.interface {}-theme Haiku ::: cursor icon
gsettings set org.gnome.desktop.interface gtk-theme Ant-Dracula

View File

@ -4,16 +4,16 @@ if [ "$1" = "-d" ]; then
tail -n +11 "$1" | zstd -do "$1"~ &&
mv "$1"~ "$1"
chmod +x "$1"
exit
else
if [ "$1" = "-p" ]; then
shift
prefix="$1 "
shift
fi
fi
echo '#!/bin/sh' > "$1"~
echo out=\`mktemp -t .zzXXXX."${1##*.}"\` >> "$1"~
cat >> "$1"~ << 'EOF'
{ echo '#!/bin/sh'; echo out=\`mktemp -t .zzXXXX."${1##*.}"\`; } >> "$1"~
cat >> "$1"~ << 'EOF'
dir=`dirname "$0"`
tail -n +11 "$0" | zstd -cd > "$out"
chmod +x "$out"

View File

@ -5,6 +5,7 @@ bind = {
'<Alt+f>' : 'config-cycle hints.chars qwerasdf asdfghjkl',
',': 'hint links run mpv {hint-url}',
'e': 'config-cycle -p -u *://*.{url:host}/* content.javascript.enabled ;; reload',
'E': 'config-cycle -p content.javascript.enabled ;; reload',
'm': 'mpv {url}',
's1': 'download-open',
'sa': 'open -t archive.is/?run=1&url={url}',
@ -13,7 +14,7 @@ bind = {
'sg': 'debug-dump-page ~/Downloads/dump.html',
'sq': 'spawn -u qr',
'sr': 'remove-sticky',
'st': 'config-cycle content.proxy socks://localhost:9050/ system',
'st': 'config-cycle -p content.proxy socks://localhost:9050/ system',
'T' : 'tab-next',
'td': 'config-unset -u {url:host} content.headers.user_agent',
}

View File

@ -32,4 +32,3 @@ config.set('content.register_protocol_handler', True, 'https://mail.tutanota.com
import socket
if socket.gethostname() == 'wheatley':
c.zoom.default = 125
c.qt.force_software_rendering = 'chromium'

View File

@ -1,11 +1,9 @@
c.content.javascript.enabled = False
sites = [
'canary.discord.com',
'drive.google.com',
'duckduckgo.com',
'feedly.com',
'mail.tutanota.com',
'*.rpi.edu',
'api-3e0243bb.duosecurity.com',
]

View File

@ -3,7 +3,7 @@ import operator
invid = 'vid.puffyan.us'
nitter = 'nitter.snopyta.org'
reddit = 'teddit.net'
reddit = 'libreddit.pussthecat.org'
o = operator.methodcaller
s = 'setHost'

View File

@ -16,8 +16,11 @@
#app-mount [aria-label="Channels"] div [class^="unread"] { background-color: #cfcdcf; }
#app-mount [class^="container"] { background-color: transparent; }
#app-mount [aria-label$="sidebar"], #app-mount [aria-label="Inbox"],
#app-mount [aria-label$="sidebar"], #app-mount [aria-label="Inbox"], p#javascript-warning,
#app-mount [class^="privateChannels"] [class^="searchBar"], #app-mount [href="/store"],
#app-mount [aria-label$="gift"], #app-mount [aria-label="Help"] { display: none }
.app-container .doc-container .doc div { max-width: 666pt !important; margin: auto; }
body.dracula { max-width: 777pt; } body > nav { position: absolute; }
body>table>tbody>tr[bgcolor="#66FFFF"]>[bgcolor="#CCCCCC"] { background: #000000 }