mirror of
https://github.com/Phantop/dotfiles
synced 2024-11-22 06:42:46 +00:00
Qute: adblock plus lists; bin: appcompressing
This commit is contained in:
parent
5f7fea958f
commit
0e978e47a2
|
@ -39,6 +39,11 @@ host("https://github.com/jmdugan/blocklists/raw/master/corporations/twitter/all"
|
|||
host("https://github.com/jmdugan/blocklists/raw/master/corporations/microsoft/all")
|
||||
host("https://github.com/jmdugan/blocklists/raw/master/corporations/facebook/all-but-whatsapp")
|
||||
|
||||
abp = c.content.blocking.adblock.lists.append
|
||||
abp("https://fanboy.co.nz/r/fanboy-ultimate.txt")
|
||||
abp("https://fanboy.co.nz/fanboy-antifacebook.txt")
|
||||
abp("https://easylist-downloads.adblockplus.org/abp-filters-anti-cv.txt")
|
||||
|
||||
config.set('content.persistent_storage', True, 'https://mega.nz')
|
||||
config.set('content.desktop_capture', True, 'https://discord.com')
|
||||
config.set('content.media.audio_capture', True, 'https://discord.com')
|
||||
|
|
|
@ -22,6 +22,7 @@ a open xdg-open
|
|||
a pagedl 'wget -H -k -p --no-clobber -e robots=off'
|
||||
a qb 'qutebrowser --target auto'
|
||||
a re 'systemctl reboot -i'
|
||||
a redwarf 'mkdwarfs -o redwarf.dwarfs --recompress -i'
|
||||
a s sudo
|
||||
a se 's eopkg'
|
||||
a squash 'mksquashfs . $PWD.squashfs -comp zstd -b 1M -Xcompression-level 22'
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
#!/bin/sh
|
||||
mkdir appdir
|
||||
if not mkdwarfs -i $@ -o appdir/root.dwarfs; then
|
||||
mkdwarfs -i $@ -o appdir/temp.dwarfs -l0
|
||||
mkdwarfs --recompress -i appdir/temp.dwarfs -o appdir/root.dwarfs
|
||||
rm appdir/temp.dwarfs
|
||||
fi
|
||||
mkdwarfs -i $@ -o appdir/root.dwarfs ||\
|
||||
mkdwarfs -i $@ -o appdir/root.dwarfs -N4 -L256m ||\
|
||||
( mkdwarfs -i $@ -o appdir/temp.dwarfs -l0 -S24 && mkdwarfs -i appdir/temp.dwarfs --recompress -o appdir/root.dwarfs && rm appdir/temp.dwarfs )
|
||||
|
||||
cat >> appdir/AppRun <<'EOF'
|
||||
#!/bin/sh
|
||||
|
|
18
.local/bin/appsquash
Executable file
18
.local/bin/appsquash
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/sh
|
||||
mksquashfs $@ squash -comp zstd -b 1M -Xcompression-level 22
|
||||
|
||||
cat > script <<'EOF'
|
||||
#!/bin/sh
|
||||
file=$(basename $0)
|
||||
DIR=/tmp/.mount_$file$RANDOM
|
||||
mkdir $DIR
|
||||
squashfuse -o offset=154 $0 $DIR
|
||||
$DIR/AppRun $@
|
||||
fusermount -uz $DIR
|
||||
rmdir $DIR
|
||||
exit
|
||||
EOF
|
||||
|
||||
cat script squash > $(basename $@).sh
|
||||
chmod +x $(basename $@).sh
|
||||
rm script squash
|
5
.local/bin/dwarfmount
Executable file
5
.local/bin/dwarfmount
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
DIR=/tmp/.dwarf_$(basename $@ .dwarfs)$RANDOM
|
||||
mkdir $DIR
|
||||
dwarfs -f $@ $DIR
|
||||
echo $DIR
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
fd -e pdf -x cpdfsqueeze {} {}
|
||||
fd -e png -x oxipng
|
||||
fd -e epub -e zip -e cbz -x advzip -z4
|
||||
fd -e epub -e zip -e cbz -e jar -x advzip -z4
|
||||
fd -e jpg -e jpeg -x jpegoptim
|
||||
|
|
7
.local/bin/undwarfs
Executable file
7
.local/bin/undwarfs
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
DIR=/tmp/.dwarf_$(basename $@ .dwarfs)$RANDOM
|
||||
mkdir $DIR
|
||||
dwarfs $@ $DIR
|
||||
rsync -ahP $DIR/ dwarfs-root
|
||||
fusermount -uz $DIR
|
||||
rmdir $DIR
|
Loading…
Reference in a new issue