diff --git a/dotfiles/firefox/user.js b/dotfiles/firefox/user.js new file mode 100644 index 0000000000000000000000000000000000000000..038dd286f77c8067bce139b276899506354439fe --- /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 08ec6f2596442ee65aff8a045b9a12a944b2aa75..5869731ca7e218a07b78da5301ff2f042fe92c99 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 470611c9487f0e8dc527c894224535e23431f19a..fd7648a2d999c0ce2003d6dfd120959d82f5f9e4 100644 --- a/pacman.deps +++ b/pacman.deps @@ -8,6 +8,7 @@ xorg-xclock nitrogen alsa-utils ranger +firefox pygobject-devel gobject-introspection opendesktop-fonts