arkenfox user.js to update automatically

This commit is contained in:
Luke Smith 2023-02-02 12:25:52 -05:00
parent 9fe7b2d802
commit bb88742ca8
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252
2 changed files with 22 additions and 3 deletions

View File

@ -203,12 +203,30 @@ vimplugininstall() {
} }
makeuserjs(){ makeuserjs(){
# Get the Arkenfox user.js and prepare it.
arkenfox="$pdir/arkenfox.js" arkenfox="$pdir/arkenfox.js"
larbs="/home/$name/.config/firefox/larbs.js" overrides="$pdir/user-overrides.js"
userjs="$pdir/user.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" [ ! -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" 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(){ installffaddons(){

View File

@ -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." ,man-db,"lets you read man pages of programs."
,ncmpcpp,"a ncurses interface for music with multiple formats and a powerful tag editor." ,ncmpcpp,"a ncurses interface for music with multiple formats and a powerful tag editor."
,newsboat,"is a terminal RSS client." ,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,"is an expansive font package."
,noto-fonts-emoji,"is an emoji font." ,noto-fonts-emoji,"is an emoji font."
,ntfs-3g,"allows accessing NTFS partitions." ,ntfs-3g,"allows accessing NTFS partitions."

1 #TAG NAME IN REPO (or git url) PURPOSE (should be a verb phrase to sound right while installing)
29 man-db lets you read man pages of programs.
30 ncmpcpp a ncurses interface for music with multiple formats and a powerful tag editor.
31 newsboat is a terminal RSS client.
32 A librewolf-bin the default browser of LARBS which also comes with ad-blocking and other sensible and necessary features by default. is the default browser of LARBS which also comes with ad-blocking and other sensible and necessary features by default.
33 A arkenfox-user.js provides hardened security settings for Firefox and Librewolf to avoid Mozilla spyware and general web fingerprinting.
34 noto-fonts is an expansive font package.
35 noto-fonts-emoji is an emoji font.
36 ntfs-3g allows accessing NTFS partitions.