From c5e12de2380f21ea65e77a8e83c140aede05f6ce Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Wed, 21 Apr 2021 09:16:23 -0400 Subject: [PATCH 1/1] Add Firefox CSS --- config.org | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/config.org b/config.org index 8df8146..e30da6f 100644 --- a/config.org +++ b/config.org @@ -298,7 +298,9 @@ Add back C-a/C-x (add-to-list 'org-structure-template-alist '("git" . "src conf :tangle ~/.gitconfig")) (add-to-list 'org-structure-template-alist '("du" . "src conf :tangle ~/.config/dunst/dunstrc")) (add-to-list 'org-structure-template-alist '("ro" . "src javascript :tangle ~/.config/rofi/config.rasi")) - (add-to-list 'org-structure-template-alist '("za" . "src conf :tangle ~/.config/zathura/zathurarc"))) + (add-to-list 'org-structure-template-alist '("za" . "src conf :tangle ~/.config/zathura/zathurarc")) + (add-to-list 'org-structure-template-alist '("ff1" . "src css :tangle ~/.mozilla/firefox/armaan-release/chrome/userChrome.css"))) + (add-to-list 'org-structure-template-alist '("ff2" . "src css :tangle ~/.mozilla/firefox/armaan-release/chrome/userContent.css"))) #+end_src ** Presentations #+begin_src emacs-lisp @@ -1118,6 +1120,7 @@ If no command given, =ls=, if in a Git repo, =git status= as well. alias ytmusic="youtube-dl -x --add-metadata --audio-format aac \ --restrict-filenames -o '%(title)s.%(ext)s'" alias cal="cal -3 --color=auto" + alias bc='bc -l' #+end_src **** Virtual machines, chroots #+begin_src shell :tangle ~/.config/zsh/zshrc @@ -1463,3 +1466,50 @@ Modus vivendi theme that extends DarkBlue. set recolor-darkcolor "#ffffff" # fg set recolor "true" #+end_src +** Firefox +*** Swap tab and URL bars +#+begin_src css :tangle ~/.mozilla/firefox/armaan-release/chrome/userChrome.css + #nav-bar { + -moz-box-ordinal-group: 1 !important; + } + + #PersonalToolbar { + -moz-box-ordinal-group: 2 !important; + } + + #titlebar { + -moz-box-ordinal-group: 3 !important; + } +#+end_src +*** Hide URL bar when not focused. +#+begin_src css :tangle ~/.mozilla/firefox/armaan-release/chrome/userChrome.css + #navigator-toolbox:not(:focus-within):not(:hover) { + margin-top: -30px; + } + + #navigator-toolbox { + transition: 0.1s margin-top ease-out; + } +#+end_src +** Black screen by default +#+begin_src css :tangle ~/.mozilla/firefox/armaan-release/chrome/userChrome.css + #main-window, + #browser, + #browser vbox#appcontent tabbrowser, + #content, + #tabbrowser-tabpanels, + #tabbrowser-tabbox, + browser[type="content-primary"], + browser[type="content"] > html, + .browserContainer { + background: black !important; + color: #fff !important; + } +#+end_src +#+begin_src css :tangle ~/.mozilla/firefox/armaan-release/chrome/userContent.css + @-moz-document url("about:home"), url("about:blank"), url("about:newtab") { + body { + background: black !important; + } + } +#+end_src -- 2.39.2