]> git.armaanb.net Git - config.org.git/blobdiff - config.org
Fix firefox css tempos
[config.org.git] / config.org
index 63ca6ff178b99b4fded0502109678d60feb8f6cc..bda9540001d17bc96fab13a5e205eeb5da53ed97 100644 (file)
@@ -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
@@ -778,15 +780,8 @@ No more clogging up init.el.
   workspace_limit = 5
   warp_pointer = 1
   modkey = Mod4
-  border_width = 4
   autorun = ws[1]:/home/armaa/Code/scripts/autostart
 #+end_src
-*** Appearance
-#+begin_src conf :tangle ~/.spectrwm.conf
-  color_focus = rgb:ff/ff/ff
-  color_focus_maximized = rgb:ee/cc/00
-  color_unfocus = rgb:55/55/55
-#+end_src
 *** Bar
 #+begin_src conf :tangle ~/.spectrwm.conf
   bar_enabled = 0
@@ -1039,6 +1034,8 @@ If no command given, =ls=, if in a Git repo, =git status= as well.
   alias bhoji-drop='ssh -p 23 root@armaanb.net'
   alias catgirl='ssh root@armaanb.net -t abduco -A irc catgirl freenode'
   alias union='ssh 192.168.1.18'
+  alias mine='ssh -p 23 root@71.184.142.155'
+  alias minec='ssh -p 23 root@71.184.142.155 su minecraft -c "tmux a -t minecraft"'
   alias tcf='ssh root@204.48.23.68'
   alias ngmun='ssh root@157.245.89.25'
   alias prox='ssh root@192.168.1.224'
@@ -1097,8 +1094,11 @@ If no command given, =ls=, if in a Git repo, =git status= as well.
   alias gpp='gpg --keyserver keyserver.ubuntu.com --recv-key'
   alias plan='T=$(mktemp) && \
         rsync root@armaanb.net:/etc/finger/plan.txt "$T" && \
-        vim $T && \
-        rsync "$T" root@armaanb.net:/etc/finger/plan.txt'
+        TT=$(mktemp) && \
+        head -n -2 $T > $TT && \
+        vim $TT && \
+        echo "\nLast updated: $(date -R)" >> "$TT" && \
+        rsync "$TT" root@armaanb.net:/etc/finger/plan.txt'
   alias wttr='curl -s "wttr.in/02445?n" | head -n -3'
 #+end_src
 **** Other
@@ -1115,6 +1115,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
@@ -1385,7 +1386,7 @@ Lightweight notification daemon.
   monitor = 0
   sticky_history = yes
   line_height = 0
-  separator_height = 4
+  separator_height = 1
   padding = 8
   horizontal_padding = 8
   max_icon_size = 32
@@ -1395,7 +1396,7 @@ Lightweight notification daemon.
 *** Modes
 #+begin_src conf :tangle ~/.config/dunst/dunstrc
   [frame]
-  width = 3
+  width = 1
   color = "#ffffff"
 
   [shortcuts]
@@ -1432,10 +1433,6 @@ Modus vivendi theme that extends DarkBlue.
           separatorcolor:               @white;
           background:                   rgba ( 34, 34, 34, 100 % );
       }
-
-  window {
-      border: 3;
-  }
 #+end_src
 ** Zathura
 *** Options
@@ -1460,3 +1457,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