From e8ed4d7984e15ed84a202490dd778b9c4efe6898 Mon Sep 17 00:00:00 2001 From: Pavel Kirilin <win10@list.ru> Date: Thu, 30 Jul 2020 01:38:23 +0400 Subject: [PATCH] Added firefox autopatching. Signed-off-by: Pavel Kirilin <win10@list.ru> --- dotfiles/firefox/user.js | 2 ++ dotfiles/{ => firefox}/userChrome.css | 0 install.sh | 17 ++++++++++++----- pacman.deps | 1 + 4 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 dotfiles/firefox/user.js rename dotfiles/{ => firefox}/userChrome.css (100%) diff --git a/dotfiles/firefox/user.js b/dotfiles/firefox/user.js new file mode 100644 index 0000000..038dd28 --- /dev/null +++ b/dotfiles/firefox/user.js @@ -0,0 +1,2 @@ +user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true); +user_pref("general.autoScroll", true); diff --git a/dotfiles/userChrome.css b/dotfiles/firefox/userChrome.css similarity index 100% rename from dotfiles/userChrome.css rename to dotfiles/firefox/userChrome.css diff --git a/install.sh b/install.sh index 08ec6f2..5869731 100644 --- a/install.sh +++ b/install.sh @@ -21,7 +21,13 @@ function build_libs_from_sources(){ build_from_git "https://gitlab.le-memese.com/s3rius/awatch.git" "makepkg -fsri" } - +function update_firefox_profile(){ + firefox_dir="$HOME/.mozilla/firefox" + fire_profile="$(grep Default $firefox_dir/installs.ini | cut -d '=' -f2)" + cp -v ./dotfiles/firefox/user.js "$firefox_dir/$fire_profile" + mkdir -vp "$firefox_dir/$fire_profile/chrome" + cp -v ./dotfiles/firefox/userChrome.css "$firefox_dir/$fire_profile/chrome" +} function copy_dotfiles(){ sed "s#{{dwm_dir}}#$(pwd)/dwm#g" ./update_desktop.sh > "$HOME/.local/bin/update_desktop" @@ -37,7 +43,7 @@ function copy_dotfiles(){ git clone https://github.com/bobthecow/git-flow-completion ~/.oh-my-zsh/custom/plugins/git-flow-completion } -enable_services() +function enable_services() { systemctl --user enable music_bg.service } @@ -45,9 +51,10 @@ enable_services() function main(){ sudo pacman -Syu --needed $(cat ./pacman.deps) pikaur -Syu --needed --noconfirm --noedit $(cat ./pikaur.deps) - build_libs_from_sources - enable_services - copy_dotfiles + update_firefox_profile + # build_libs_from_sources + # enable_services + # copy_dotfiles } trap cleanup EXIT diff --git a/pacman.deps b/pacman.deps index 470611c..fd7648a 100644 --- a/pacman.deps +++ b/pacman.deps @@ -8,6 +8,7 @@ xorg-xclock nitrogen alsa-utils ranger +firefox pygobject-devel gobject-introspection opendesktop-fonts -- GitLab