Files
parana/scripts/setup-firefox-calendar-profile.sh
2026-07-10 20:07:29 -04:00

51 lines
1.3 KiB
Bash
Executable File

#!/usr/bin/env bash
# Setup Firefox calendar app profile with custom UI customizations
# Dark Reader should be installed manually via about:addons
PROFILE_DIR="$HOME/.mozilla/firefox/calendar-app"
# Create profile directory if it doesn't exist
mkdir -p "$PROFILE_DIR/chrome"
# Create user.js with preferences
cat > "$PROFILE_DIR/user.js" << 'EOF'
// Hide Firefox UI elements
user_pref("browser.chrome.toolbar_tips", false);
user_pref("browser.tabs.drawInTitlebar", true);
user_pref("browser.tabs.tabmanager.enabled", false);
user_pref("browser.uidensity", 2);
// Disable notifications and other UI clutter
user_pref("extensions.activeThemeID", "firefox-compact-dark@mozilla.org");
user_pref("browser.startup.homepage_override.mstone", "ignore");
// Hide various UI elements
user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true);
EOF
# Create userChrome.css to hide the toolbar and tabs
cat > "$PROFILE_DIR/chrome/userChrome.css" << 'EOF'
/* Hide the entire toolbar area */
#navigator-toolbox {
display: none !important;
}
/* Hide tabs bar */
#TabsToolbar {
display: none !important;
}
/* Hide sidebar button */
#sidebar-button {
display: none !important;
}
/* Make content fill the window */
#content {
margin: 0 !important;
}
EOF
echo "Firefox calendar app profile configured successfully"