arkenfox user.js to update automatically
This commit is contained in:
parent
9fe7b2d802
commit
bb88742ca8
@ -203,12 +203,30 @@ vimplugininstall() {
|
||||
}
|
||||
|
||||
makeuserjs(){
|
||||
# Get the Arkenfox user.js and prepare it.
|
||||
arkenfox="$pdir/arkenfox.js"
|
||||
larbs="/home/$name/.config/firefox/larbs.js"
|
||||
overrides="$pdir/user-overrides.js"
|
||||
userjs="$pdir/user.js"
|
||||
ln -fs "/home/$name/.config/firefox/larbs.js" "$overrides"
|
||||
[ ! -f "$arkenfox" ] && curl -sL "https://raw.githubusercontent.com/arkenfox/user.js/master/user.js" > "$arkenfox"
|
||||
cat "$arkenfox" "$larbs" > "$userjs"
|
||||
cat "$arkenfox" "$overrides" > "$userjs"
|
||||
chown "$name:wheel" "$arkenfox" "$userjs"
|
||||
# Install the updating script.
|
||||
mkdir -p /usr/local/lib /etc/pacman.d/hooks
|
||||
cp "/home/$name/.local/bin/arkenfox-auto-update" /usr/local/lib/
|
||||
chown root:root /usr/local/lib/arkenfox-auto-update
|
||||
chmod 755 /usr/local/lib/arkenfox-auto-update
|
||||
# Trigger the update when needed via a pacman hook.
|
||||
echo "[Trigger]
|
||||
Operation = Upgrade
|
||||
Type = Package
|
||||
Target = firefox
|
||||
Target = librewolf
|
||||
[Action]
|
||||
Description=Update Arkenfox user.js
|
||||
When=PostTransaction
|
||||
Depends=arkenfox-user.js
|
||||
Exec=/usr/local/lib/arkenfox-auto-update" > /etc/pacman.d/hooks/arkenfox.hook
|
||||
}
|
||||
|
||||
installffaddons(){
|
||||
|
@ -29,7 +29,8 @@ A,gtk-theme-arc-gruvbox-git,"gives the dark GTK theme used in LARBS."
|
||||
,man-db,"lets you read man pages of programs."
|
||||
,ncmpcpp,"a ncurses interface for music with multiple formats and a powerful tag editor."
|
||||
,newsboat,"is a terminal RSS client."
|
||||
A,librewolf-bin,"the default browser of LARBS which also comes with ad-blocking and other sensible and necessary features by default."
|
||||
A,librewolf-bin,"is the default browser of LARBS which also comes with ad-blocking and other sensible and necessary features by default."
|
||||
A,arkenfox-user.js,"provides hardened security settings for Firefox and Librewolf to avoid Mozilla spyware and general web fingerprinting."
|
||||
,noto-fonts,"is an expansive font package."
|
||||
,noto-fonts-emoji,"is an emoji font."
|
||||
,ntfs-3g,"allows accessing NTFS partitions."
|
||||
|
|
Loading…
Reference in New Issue
Block a user