mirror of
https://github.com/Phantop/dotfiles
synced 2025-12-08 04:57:35 +00:00
fish: fix drivedl, gdl, enable apparmor
This commit is contained in:
parent
744e8d30ce
commit
249634f4b1
|
|
@ -58,13 +58,13 @@ a def 'curl dict://dict.org/d:$argv;:'
|
||||||
a dirdl 'wget -r -k -p -np -e robots=off'
|
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 dl 'test -z "$argv" && cd ~/Downloads || aria2c -c -{j,s,x}16 --http-accept-gzip'
|
||||||
a dot 'cd ~/.dotfiles'
|
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 epubpack 'cd $argv && zip -0rX ../(basename $argv).epub mimetype *; cd ..;:'
|
||||||
a ff 'fd -HILi -Edosdevices -E.git'
|
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 fichub 'lynx -dump https://fichub.net/legacy/epub_export?q=$argv | grep epub? | cut -d. -f2- | dl -i-;:'
|
||||||
a fumount 'fusermount -u'
|
a fumount 'fusermount -u'
|
||||||
a g git
|
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 gittop 'cd (git root)'
|
||||||
a giveme 's chown $USER'
|
a giveme 's chown $USER'
|
||||||
a gsopti 'fd -e pdf -x gs -sDEVICE=pdfwrite -dNOPAUSE -sOutputFile={}1 {} \; -x mv {}1 {}'
|
a gsopti 'fd -e pdf -x gs -sDEVICE=pdfwrite -dNOPAUSE -sOutputFile={}1 {} \; -x mv {}1 {}'
|
||||||
|
|
|
||||||
|
|
@ -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
|
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
|
if bootctl status | grep systemd-boot; then
|
||||||
echo options lsm=landlock,lockdown,yama,integrity,apparmor,bpf | t /boot/loader/entries/*.conf
|
echo options lsm=landlock,lockdown,yama,integrity,apparmor,bpf | t /boot/loader/entries/*.conf
|
||||||
|
s systemctl enable --now apparmor
|
||||||
fi
|
fi
|
||||||
s sed -i /NoDisplay/d /usr/share/applications/nsxiv.desktop
|
s sed -i /NoDisplay/d /usr/share/applications/nsxiv.desktop
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ def dosub(url: QUrl, host, sub):
|
||||||
def fandom(url: QUrl, sub):
|
def fandom(url: QUrl, sub):
|
||||||
dosub(url, 'farside.link', 'breezewiki/' + sub)
|
dosub(url, 'farside.link', 'breezewiki/' + sub)
|
||||||
def tumblr(url: QUrl, sub):
|
def tumblr(url: QUrl, sub):
|
||||||
dosub(url, 'priviblur.fly.dev', sub)
|
dosub(url, 'prvblr.fly.dev', sub)
|
||||||
|
|
||||||
subs = {
|
subs = {
|
||||||
'fandom.com' : fandom,
|
'fandom.com' : fandom,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue