From 5111cf6c259165a970e56f23493f082666e398bd Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Sat, 20 Jun 2020 15:25:35 +0200 Subject: [PATCH] profile --- profiles/base/default.nix | 123 +++++++++++++++++++++++++++++++++++++- 1 file changed, 122 insertions(+), 1 deletion(-) diff --git a/profiles/base/default.nix b/profiles/base/default.nix index 5c9e71e..bf273ec 100644 --- a/profiles/base/default.nix +++ b/profiles/base/default.nix @@ -99,8 +99,129 @@ in { programs.firefox = { enable = true; + package = pkgs.firefox.override { extraNativeMessagingHosts = [ pkgs.dan.radical-native ]; }; + profiles.dan = { + id = 0; + isDefault = true; + userChrome = '' + + /* + *---------------------------------------* + | Dotfiles - firefox/userChrome.css | + *---------------------------------------* + */ - package = pkgs.firefox.override { extraNativeMessagingHosts = [ pkgs.dan.radical-native ]; }; + + @namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); + + + /* === General === */ + + /* Configure the look of the url field */ + #urlbar { + border: none !important; + background: transparent !important; + margin-left: 10px !important; + border-radius: 0px !important; + height: 0px; + font-size: 15px; + font-family: Share\-TechMono; + } + + /* Configure the look of the nav bar */ + #nav-bar { + border-top: none !important; + background: #ffffff !important; + } + + /* Remove the reload button */ + #urlbar-reload-button { + display: none !important; + } + + /* Remove back and forward buttons */ + #nav-bar #back-button > .toolbarbutton-icon { + display: none !important; + } + + #forward-button { + display: none !important; + } + + + /* === Tabbar === */ + + /* Set the height of the tabbar */ + #TabsToolbar { + margin-top: -3px !important; + margin-bottom: -2px !important; + font-size: 15px; + font-family: Share\-TechMono; + } + + /* Set the background of the tabbar */ + .tabbrowser-tabs { + /* background-color: #cbe4ec !important;*/ + background-color: #B0B0B0 !important; + } + + /* Configure the look of normal tabs */ + .tabbrowser-tab { + color: #505050 !important; + /* background-color: #cbe4ec !important;*/ + background-color: #B0B0B0 !important; + } + + /* Configure the look of the selected tab */ + .tabbrowser-tab[selected] { + color: #505050 !important; + background: #ffffff !important; + } + + /* Configure the look of the hovered-over tab */ + .tabbrowser-tab:hover:not([selected]) { + color: #303030 !important; + background-color: #ffffff !important; + } + + /* Make the sides of tabs straight, not curvy */ + .tab-background { + background: transparent !important; + } + #TabsToolbar .tab-background-middle { + background: transparent !important; + margin: -12px 0px !important; + } + .tab-background-start, + .tab-background-end { + display: none !important; + } + + /* Remove tab separators */ + .tabbrowser-tab::before{ + display:none !important; + } + .tabbrowser-tab::after{ + display:none !important; + } + + /* Don't display the new tab button + .tabs-newtab-button, + #new-tab-button { + display: none !important; + }*/ + + /* Don't display the close tab button + .tabbrowser-tab .close-icon { + display: none !important; + }*/ + + /* Don't display the alltabs button (appears when not all tabs can be fitted) */ + #alltabs-button { + display: none !important; + } + ''; + }; }; programs.obs-studio = {