Files
nixos/modules/web/extensions/sidebery.nix
T

305 lines
11 KiB
Nix

{ pkgs, ... }:
{
extensions = {
packages = [ pkgs.nur.repos.rycee.firefox-addons.sidebery ];
settings = {
"sidebery".settings = { # TODO: Check id
settings = {
nativeScrollbars = true;
nativeScrollbarsThin = true;
nativeScrollbarsLeft = false;
selWinScreenshots = false;
updateSidebarTitle = true;
markWindow = false;
markWindowPreface = "[Sidebery] ";
copyTemplates = "HTML:%B<a href=\"%U\">%CT</a>\nMarkdown:%B[%CT](%U)";
updTooltipDelay = 100;
selLen = true;
ctxMenuNative = false;
ctxMenuRenderInact = true;
ctxMenuRenderIcons = true;
omniReopenInCtr = true;
omniSwitchToPanel = true;
omniMoveToPanel = true;
omniMoveToGroup = true;
navBarLayout = "horizontal";
navBarInline = true;
navBarSide = "left";
navBtnCount = true;
hideEmptyPanels = true;
hideDiscardedTabPanels = false;
navActTabsPanelLeftClickAction = "none";
navActTabsPanelLeftClickTabPos = "general";
navActBookmarksPanelLeftClickAction = "none";
navTabsPanelMidClickAction = "discard";
navBookmarksPanelMidClickAction = "none";
navSwitchPanelsWheel = true;
subPanelRecentlyClosedBar = true;
subPanelBookmarks = true;
subPanelHistory = true;
subPanelSync = false;
groupLayout = "grid";
containersSortByName = false;
skipEmptyPanels = false;
dndTabAct = true;
dndTabActDelay = 750;
dndTabActMod = "none";
dndExp = "pointer";
dndExpDelay = 750;
dndExpMod = "none";
dndOutside = "win";
dndOutsideThresholdTimeout = 350;
dndActTabFromLink = true;
dndActSearchTab = true;
dndMoveTabs = false;
dndMoveBookmarks = false;
dndTabToPanelPos = "end";
searchBarMode = "dynamic";
searchPanelSwitch = "same_type";
searchTabSwitch = false;
searchMenuTrig = false;
searchInputTimeout = 300;
warnOnMultiTabClose = "collapsed";
activateLastTabOnPanelSwitching = true;
activateLastTabOnPanelSwitchingLoadedOnly = true;
switchPanelAfterSwitchingTab = "always";
scrollPanelAfterSwitchingTab = "always";
tabRmBtn = "hover";
activateAfterClosing = "next";
activateAfterClosingStayInPanel = false;
activateAfterClosingGlobal = false;
activateAfterClosingNoFolded = true;
activateAfterClosingNoDiscarded = true;
askNewBookmarkPlace = true;
tabsRmUndoNote = true;
tabsUnreadMark = false;
tabsBadge = true;
tabsBadgeRules = "minIdleTime:5000; urgent";
tabsReloadLimit = 5;
tabsReloadLimitNotif = true;
showNewTabBtns = true;
newTabBarPosition = "after_tabs";
tabsPanelSwitchActMove = false;
tabsPanelSwitchActMoveAuto = true;
tabsUrlInTooltip = "full";
tabsContainerInTooltip = true;
newTabCtxReopen = false;
tabWarmupOnHover = true;
tabSwitchDelay = 0;
forceDiscard = true;
tabUpdDelay = 150;
forceUpdTooltip = false;
moveNewTabPin = "start";
moveNewTabParent = "first_child";
moveNewTabParentIndent = false;
moveNewTabParentActPanel = false;
moveNewTabButton = "end";
moveNewTabButtonActivePin = "start";
moveNewTab = "end";
moveNewTabActivePin = "start";
autoScrollToNewTab = true;
pinnedTabsPosition = "panel";
pinnedTabsList = false;
pinnedAutoGroup = false;
pinnedNoUnload = false;
pinnedNoUnloadExplicit = true;
pinnedForcedDiscard = false;
tabsTree = true;
tabsTreeLimit = "none";
autoFoldTabs = false;
autoFoldTabsExcept = "none";
autoExpandTabs = false;
autoExpandTabsOnNew = false;
rmChildTabs = "folded";
tabsLvlDots = true;
discardFolded = false;
discardFoldedDelay = 0;
discardFoldedDelayUnit = "sec";
tabsTreeBookmarks = true;
treeRmOutdent = "branch";
autoGroupOnClose = false;
autoGroupOnClose0Lvl = false;
autoGroupOnCloseMouseOnly = false;
ignoreFoldedParent = false;
showNewGroupConf = true;
sortGroupsFirst = true;
colorizeTabs = false;
colorizeTabsSrc = "domain";
colorizeTabsBranches = true;
colorizeTabsBranchesSrc = "domain";
inheritCustomColor = true;
previewTabs = false;
previewTabsMode = "p";
previewTabsPageModeFallback = "n";
previewTabsInlineHeight = 70;
previewTabsPopupWidth = 280;
previewTabsTitle = 2;
previewTabsUrl = 1;
previewTabsSide = "right";
previewTabsDelay = 500;
previewTabsFollowMouse = true;
previewTabsInPageOffsetY = 0;
previewTabsInPageOffsetX = 0;
previewTabsCropRight = 0;
hideInact = false;
hideFoldedTabs = false;
hideFoldedParent = "none";
hideUnloadedTabs = false;
nativeHighlight = true;
warnOnMultiBookmarkDelete = "collapsed";
autoCloseBookmarks = false;
autoRemoveOther = false;
highlightOpenBookmarks = false;
activateOpenBookmarkTab = false;
showBookmarkLen = true;
bookmarksRmUndoNote = true;
loadBookmarksOnDemand = true;
pinOpenedBookmarksFolder = true;
oldBookmarksAfterSave = "ask";
historyTitleUpdInterval = 1100;
fontSize = "m";
animations = true;
animationSpeed = "norm";
theme = "proton";
density = "default";
colorScheme = "ff";
snapNotify = true;
snapExcludePrivate = false;
snapInterval = 0;
snapIntervalUnit = "min";
snapLimit = 0;
snapLimitUnit = "snap";
snapAutoExport = false;
snapAutoExportType = "json";
snapAutoExportPath = "Sidebery/snapshot-%Y.%M.%D-%h.%m.%s";
snapMdFullTree = false;
hScrollAction = "none";
onePanelSwitchPerScroll = false;
wheelAccumulationX = true;
wheelAccumulationY = true;
navSwitchPanelsDelay = 128;
scrollThroughTabs = "none";
scrollThroughTabsGlobPinIsolate = true;
scrollThroughVisibleTabs = true;
scrollThroughTabsSkipDiscarded = true;
scrollThroughTabsExceptOverflow = true;
scrollThroughTabsCyclic = false;
scrollThroughTabsScrollArea = 0;
scrollThroughTabsPreselAct = false;
scrollThroughTabsPreselDelay = 0;
autoMenuMultiSel = true;
multipleMiddleClose = false;
longClickDelay = 500;
wheelThreshold = false;
wheelThresholdX = 10;
wheelThresholdY = 60;
tabDoubleClick = "none";
tabsSecondClickActPrev = false;
tabsSecondClickActPrevPanelOnly = false;
tabsSecondClickActPrevNoUnload = false;
shiftSelAct = true;
ctrlSelAct = true;
activateOnMouseUp = false;
tabCloseOnMouseUp = true;
tabLongLeftClick = "none";
tabLongRightClick = "none";
tabMiddleClick = "close";
tabPinnedMiddleClick = "discard";
tabMiddleClickCtrl = "discard";
tabMiddleClickShift = "duplicate";
tabCloseMiddleClick = "close";
tabsPanelLeftClickAction = "none";
tabsPanelLeftClickTabPos = "general";
tabsPanelDoubleClickAction = "tab";
tabsPanelDoubleClickTabPos = "general";
tabsPanelRightClickAction = "menu";
tabsPanelMiddleClickAction = "tab";
tabsPanelMiddleClickTabPos = "general";
newTabMiddleClickAction = "new_child";
bookmarksLeftClickAction = "open_in_act";
bookmarksLeftClickActivate = false;
bookmarksLeftClickPos = "default";
bookmarksMidClickAction = "open_in_new";
bookmarksMidClickActivate = false;
bookmarksMidClickRemove = false;
bookmarksMidClickPos = "default";
historyLeftClickAction = "open_in_act";
historyLeftClickActivate = false;
historyLeftClickPos = "default";
historyMidClickAction = "open_in_new";
historyMidClickActivate = false;
historyMidClickPos = "default";
syncUseFirefox = false;
syncUseGoogleDrive = false;
syncUseGoogleDriveApi = false;
syncSaveSettings = false;
syncSaveCtxMenu = false;
syncSaveStyles = false;
syncSaveKeybindings = false;
selectActiveTabFirst = true;
selectCyclic = false;
loopPanelsIgnoreHidden = false;
kbNewTabInPanelPos = "general"
};
sidebar = {
panels = {
XAC10qlx5Gg2 = {
type = 2;
id = "XAC10qlx5Gg2";
name = "Default";
color = "toolbar";
iconSVG = "icon_tabs";
lockedPanel = false;
skipOnSwitching = false;
noEmpty = false;
newTabCtx = "none";
dropTabCtx = "none";
moveExcludedTo = -1;
bookmarksFolderId = "PHhiPLb-YBcr";
srcPanelConfig = {
id = "WmRe539DYInZ";
autoConvert = true;
tempMode = false;
viewMode = "tree"
}
}
};
nav = [
"XAC10qlx5Gg2";
"add_tp";
"sp-0";
"settings";
"remute_audio_tabs";
"create_snapshot"
];
};
sidebarCSS = builtins.readFile ./sidebery.css;
keybindings = {
_execute_sidebar_action = "Ctrl+E";
activate = "Alt+Space";
reset_selection = "Alt+R";
next_panel = "Alt+K";
prev_panel = "Alt+J";
up = "Alt+Up";
down = "Alt+Down";
up_shift = "Alt+Shift+Up";
down_shift = "Alt+Shift+Down";
sel_child_tabs = "Alt+C";
unload_tabs = "Alt+Q";
unload_other_tabs_in_panel = "Ctrl+Shift+Q";
unload_all_tabs_in_inact_panels = "Alt+Shift+Q";
switch_to_panel_0 = "Alt+1";
switch_to_panel_1 = "Alt+2";
switch_to_panel_2 = "Alt+3";
switch_to_panel_3 = "Alt+4";
switch_to_panel_4 = "Alt+5";
switch_to_panel_5 = "Alt+6";
switch_to_panel_6 = "Alt+7"
};
};
};
};
}