1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2025-12-07 12:43:32 +00:00

fish: fix drivedl, gdl, enable apparmor

This commit is contained in:
Phantop 2025-11-24 23:11:41 -05:00
parent 744e8d30ce
commit 249634f4b1
3 changed files with 4 additions and 3 deletions

View file

@ -58,13 +58,13 @@ a def 'curl dict://dict.org/d:$argv;:'
a dirdl 'wget -r -k -p -np -e robots=off'
a dl 'test -z "$argv" && cd ~/Downloads || aria2c -c -{j,s,x}16 --http-accept-gzip'
a dot 'cd ~/.dotfiles'
a drivedl 'dl https://docs.google.com/uc?export=download&id=(echo $argv | cut -d/ -f6)&confirm=t'
a drivedl 'dl https://drive.usercontent.google.com/download?confirm=t&(echo $argv | cut -d/ -f6);:'
a epubpack 'cd $argv && zip -0rX ../(basename $argv).epub mimetype *; cd ..;:'
a ff 'fd -HILi -Edosdevices -E.git'
a fichub 'lynx -dump https://fichub.net/legacy/epub_export?q=$argv | grep epub? | cut -d. -f2- | dl -i-;:'
a fumount 'fusermount -u'
a g git
a gdl 'gallery-dl --exec-after "fish -c all2jxl"'
a gdl 'gallery-dl --exec-after "cd gallery-dl && fish -c all2jxl"'
a gittop 'cd (git root)'
a giveme 's chown $USER'
a gsopti 'fd -e pdf -x gs -sDEVICE=pdfwrite -dNOPAUSE -sOutputFile={}1 {} \; -x mv {}1 {}'

View file

@ -24,6 +24,7 @@ echo kernel.core_pattern=/dev/null | t /etc/sysctl.d/50-coredump.conf
echo options i915 enable_rc6=1 enable_fbc=1 lvds_downclock=1 enable__psr=1 | t /etc/modprobe.d/i915.conf
if bootctl status | grep systemd-boot; then
echo options lsm=landlock,lockdown,yama,integrity,apparmor,bpf | t /boot/loader/entries/*.conf
s systemctl enable --now apparmor
fi
s sed -i /NoDisplay/d /usr/share/applications/nsxiv.desktop

View file

@ -46,7 +46,7 @@ def dosub(url: QUrl, host, sub):
def fandom(url: QUrl, sub):
dosub(url, 'farside.link', 'breezewiki/' + sub)
def tumblr(url: QUrl, sub):
dosub(url, 'priviblur.fly.dev', sub)
dosub(url, 'prvblr.fly.dev', sub)
subs = {
'fandom.com' : fandom,