Let a machine say what it is for, and give Firefox its face back

Phase 4: the optional application categories, and the Firefox chrome.

Everything Panama installed until now was what every machine gets, which meant a
work laptop acquired emulators and a desktop that wanted Steam had to be told
about it by hand. The interview now offers the categories in
setup/packages/extras/ as a checklist -- gaming, creative, communication,
virtualization -- and nothing is preselected, because a default here installs
applications nobody chose on a machine whose owner answered a question they
thought was about something else.

A category is one file, and a category mixes both package managers because the
applications do: Steam is in RPM Fusion, Slack publishes only a flatpak. So a
bare line is a dnf package and a flatpak: line is a Flathub ID, and one file
holds the whole answer rather than splitting each category across two. The menu
is read from the directory rather than written down, so adding a category is
adding a file. Every name in all four was resolved against the actual
repositories before being written down, and the contract re-resolves them --
the point of admitting applications one at a time is that they stay installable,
and a typo here fails on somebody else's machine, not this one.

Firefox is declared, and its chrome is Edge-Frfox, vendored into config/firefox.
sunhat carried that theme with no license and no attribution; it is MIT, and now
it says so and says whose it is.

It is the only piece of Panama's configuration that does not go to a path this
repository chooses. Firefox owns the profile directory, names it with a random
salt, and does not create one until the browser has been run -- so link-dotfiles
finds or creates a profile and links both halves into it. Both, or neither works:
chrome/ is the CSS and user.js sets the preference that makes Firefox read chrome/
at all, without which the theme is a directory of dead files.

Two assumptions there were wrong, and the contract exists for both. Firefox has
moved to the XDG directories -- the profile root is ~/.config/mozilla/firefox on
this build, not ~/.mozilla/firefox, and writing to the wrong one themes nothing
and says nothing about it. And -CreateProfile turns out to be non-interactive, so
a fresh machine gets the theme on the first install rather than the second. The
contract runs link-dotfiles for real against a throwaway home with no profile in
it and looks at what came out; it was checked by pointing the search at the
legacy path only and watching it fail.

Also: the enrolment/enrollment spellings from the last commit are corrected. This
repository is US-spelled everywhere else -- color 1131 times against colour never
-- and consistency in prose is worth as much as it is in code.

Claude-Session: https://claude.ai/code/session_01NvgBuSWB5sE43yWmg21ozj
This commit is contained in:
Gabriel Brown
2026-08-20 21:24:15 -04:00
parent b319d1a5e1
commit 88497826ec
168 changed files with 6293 additions and 32 deletions
+206
View File
@@ -0,0 +1,206 @@
/* Edge-Frfox - browser.css
* https://github.com/bmFtZQ/edge-frfox */
/* Windows has 1px missing space on top of window, but not when accent colour is
* applied to the title bar. */
@media (-moz-platform: windows) and (not (-moz-windows-accent-color-in-titlebar)) {
:root[sizemode="normal"][tabsintitlebar]:not([inFullscreen]) #navigator-toolbox {
padding-top: 1px !important;
}
}
/* Add a shadow when the toolbars move over content, eg. in macOS hovering over
* the menu bar in fullscreen mode. */
#navigator-toolbox[style*="transform"] {
box-shadow: 0 -3px 5px 3px light-dark(rgb(0 0 0 / .3), rgb(0 0 0 / .6)) !important;
}
/*
MARK: Rounded corners (Rc)
*/
@media (-moz-bool-pref: "uc.tweak.rounded-corners") {
/* Since Firefox 120, when the bookmarks bar is set to only open on new tabs,
* the bookmarks bar overlaps the #browser element. */
/* Change the element that shifts the browser content to the correct position. */
#main-window[BookmarksToolbarOverlapsBrowser] .newTabBrowserPanel,
#main-window[BookmarksToolbarOverlapsBrowser] #sidebar-box {
padding-top: 0 !important;
}
#main-window[BookmarksToolbarOverlapsBrowser] #browser {
margin-top: var(--bookmarks-toolbar-overlapping-browser-height);
}
/* Make sure that the toolbars are not positioned in-front of the browser
* element. */
#main-window[BookmarksToolbarOverlapsBrowser] #navigator-toolbox:not([style*="z-index"]) {
z-index: auto !important;
}
/* Move the browser element in-front of the toolbars when on the new tab page. */
#main-window:not([BookmarksToolbarOverlapsBrowser]) #browser {
z-index: 1 !important;
}
/*
MARK: Rc Variables
*/
#main-window:not([chromehidden~="toolbar"]) {
--uc-tweak-rounded-corners-padding: 4px;
--uc-tweak-rounded-corners-radius: 8px;
--uc-tweak-rounded-corners-shadow:
0 -.8px 0 0 rgb(0 0 0 / 0.02),
0 0.5px 1px 1px rgb(0 0 0 / 0.06),
0 1px 1px rgb(0 0 0 / 0.1);
--browser-frame-bgcolor: var(--toolbar-bgcolor, var(--lwt-accent-color));
/* Different shadow for higher resolution displays. */
@media (resolution > 1.8dppx) {
--uc-tweak-rounded-corners-shadow:
0 0 0.5px 0.5px rgb(0 0 0 / 0.06),
0 0.5px 1.5px rgb(0 0 0 / 0.1);
}
@media (-moz-bool-pref: "uc.tweak.floating-tabs") {
--browser-frame-bgcolor: var(--lwt-accent-color);
&:-moz-window-inactive {
--browser-frame-bgcolor: var(--lwt-accent-color-inactive, var(--lwt-accent-color));
}
}
}
/* Hide border below titlebar on macOS, as its titlebar already has a border. */
@media (-moz-platform: macos) {
:root[chromehidden~="toolbar"][chromehidden~="location"][chromehidden~="directories"] {
border-top: none !important;
}
}
/* Remove separator between toolbars and the browser window. */
#navigator-toolbox {
border-bottom: none !important;
}
/* Disable rounded corners in fullscreen, only if the toolbar is hidden. */
:root[inFullscreen] #navigator-toolbox[style*="margin-top"] + #browser,
:root[inDOMFullscreen] #browser {
--uc-tweak-rounded-corners-padding: 0;
--uc-tweak-rounded-corners-radius: 0;
--uc-tweak-rounded-corners-shadow: unset;
}
/*
MARK: Rc Browser
*/
#appcontent .browserStack {
margin-inline: var(--uc-tweak-rounded-corners-padding) !important;
margin-block-end: var(--uc-tweak-rounded-corners-padding) !important;
border-radius: var(--uc-tweak-rounded-corners-radius) !important;
box-shadow: var(--uc-tweak-rounded-corners-shadow) !important;
background-color: var(--tabpanel-background-color) !important;
position: relative !important;
/* Use pseudo element overlay to simulate rounded corners, similar to the
* tab corners, fixes bug with backdrop-filter. */
&::after {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
/* Draw toolbar background on the negative corner space, then draw the
* same shadow from the browser window on top. */
box-shadow:
var(--uc-tweak-rounded-corners-shadow, 0 0 transparent),
0 0 0 16px var(--browser-frame-bgcolor) !important;
clip-path: inset(0);
pointer-events: none;
}
}
/* Prevent status panel corners and shadow from appearing outside the browser. */
#statuspanel {
overflow: hidden;
}
/*
MARK: Rc Sidebar
*/
#sidebar-box {
margin-inline-start: var(--uc-tweak-rounded-corners-padding) !important;
margin-block-end: var(--uc-tweak-rounded-corners-padding) !important;
border-radius: var(--uc-tweak-rounded-corners-radius) !important;
overflow: hidden !important;
box-shadow: var(--uc-tweak-rounded-corners-shadow) !important;
&[positionend] {
margin-inline-start: 0 !important;
margin-inline-end: var(--uc-tweak-rounded-corners-padding) !important;
}
}
/*
MARK: Rc Devtools
*/
/* Devtools window when docked to the left or right. */
.devtools-toolbox-side-iframe {
margin-block-end: var(--uc-tweak-rounded-corners-padding) !important;
border-radius: var(--uc-tweak-rounded-corners-radius) !important;
overflow: hidden !important;
box-shadow: var(--uc-tweak-rounded-corners-shadow) !important;
/* Devtools window when docked to the left. */
&:first-child {
margin-inline-start: var(--uc-tweak-rounded-corners-padding) !important;
}
/* Devtools window when docked to the right. */
&:last-child {
margin-inline-end: var(--uc-tweak-rounded-corners-padding) !important;
}
}
/* Devtools window when docked to the bottom. */
.devtools-toolbox-bottom-iframe {
margin: var(--uc-tweak-rounded-corners-padding) !important;
margin-block-start: 0 !important;
border-radius: var(--uc-tweak-rounded-corners-radius) !important;
overflow: hidden !important;
box-shadow: var(--uc-tweak-rounded-corners-shadow) !important;
}
/* Hide devtools splitter. */
.devtools-side-splitter,
.devtools-horizontal-splitter {
background-color: transparent !important;
}
/* Responsive design mode. */
.browserContainer.responsive-mode {
background-color: transparent !important;
& .rdm-toolbar {
margin-inline: var(--uc-tweak-rounded-corners-padding) !important;
border-top-left-radius: var(--uc-tweak-rounded-corners-radius) !important;
border-top-right-radius: var(--uc-tweak-rounded-corners-radius) !important;
width: calc(100% - var(--uc-tweak-rounded-corners-padding) * 2) !important;
}
}
/* Remove sidebar border when not in full screen. */
:not(:root[inFullscreen] #navigator-toolbox[style*="margin-top"]) + #browser #sidebar-splitter {
border-inline-width: 0 !important;
}
/* Apply colour to the frame around the browser window. */
#browser {
background-color: var(--browser-frame-bgcolor);
}
/* Change colour of page when loading */
#tabbrowser-tabpanels {
background-color: transparent !important;
}
}