]> git.armaanb.net Git - config.org.git/blobdiff - config.org
xresources: add preliminary config
[config.org.git] / config.org
index 322b7a453473bd9a56437001e36c90627761d48d..f2665a39499e0b50d88d7754bb8677ae8ae6834f 100644 (file)
@@ -300,7 +300,8 @@ Add back C-a/C-x
     (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 '("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")))
+    (add-to-list 'org-structure-template-alist '("ff2" . "src css :tangle ~/.mozilla/firefox/armaan-release/chrome/userContent.css"))
+    (add-to-list 'org-structure-template-alist '("xr" . "src conf :tangle ~/.Xresources")))
 #+end_src
 ** Presentations
 #+begin_src emacs-lisp
@@ -378,6 +379,7 @@ Contexts are a not very well known feature of mu4e that makes it super easy to m
     :straight (:type built-in))
   (use-package mu4e
     :load-path "/usr/share/emacs/site-lisp/mu4e"
+    :straight (:build nil)
     :bind (("C-c m" . mu4e))
     :config
     (setq user-full-name "Armaan Bhojwani"
@@ -484,6 +486,19 @@ Some EWW enhancements.
 
   (global-set-key (kbd "C-c w") 'prot-eww-browse-dwim)
 #+end_src
+** IRC
+#+begin_src emacs-lisp
+  (use-package erc
+    :straight (:type built-in)
+    :config
+    (load "~/.emacs.d/irc.el")
+    (acheam-irc)
+    (erc-notifications-enable)
+    (erc-smiley-disable))
+
+  (use-package erc-hl-nicks
+    :config (erc-hl-nicks-mode 1))
+#+end_src
 ** Emacs Anywhere
 Use Emacs globally. Use the Emacs daemon and bind a key in your wm to
 =emacsclient --eval "(emacs-everywhere)"=.
@@ -956,6 +971,13 @@ Right now, I'm only using fast-syntax-highlighting. It's a really nice visual ad
       echo $user | nc "$host" 79 -N
   }
 #+end_src
+**** Upload to ftp.armaanb.net
+#+begin_src shell :tangle ~/.config/zsh/zshrc
+  pubup() {
+      rsync "$1" "root@armaanb.net:/var/ftp/pub/${2}"
+      echo "https://ftp.armaanb.net/pub/"$(basename "$1") | tee /dev/tty | xclip -sel c
+  }
+#+end_src
 *** Aliases
 **** SSH
 #+begin_src shell :tangle ~/.config/zsh/zshrc
@@ -988,6 +1010,7 @@ Right now, I'm only using fast-syntax-highlighting. It's a really nice visual ad
   alias unar='atool -x'
   alias wget='wget -e robots=off'
   alias lanex='~/.local/share/lxc/lxc'
+#+end_src
 **** Editing
 #+begin_src shell :tangle ~/.config/zsh/zshrc
   alias v='nvim'
@@ -1427,3 +1450,69 @@ Modus vivendi theme that extends DarkBlue.
       }
   }
 #+end_src
+** Xresources
+*** Font
+#+begin_src conf :tangle ~/.Xresources
+  xterm*font: JetBrains Mono NF:pixelsize=15
+
+  XTerm.vt100.translations: #override \n\
+    Ctrl <Key> minus: smaller-vt-font() \n\
+    Ctrl <Key> plus: larger-vt-font()
+#+end_src
+*** Color scheme
+Modus operandi.
+#+begin_src conf :tangle ~/.Xresources
+  ! special
+  ,*.foreground:   #ffffff
+  ,*.background:   #000000
+  ,*.cursorColor:  #ffffff
+
+  ! black
+  ,*.color0:       #000000
+  ,*.color8:       #555555
+
+  ! red
+  ,*.color1:       #ff8059
+  ,*.color9:       #ffa0a0
+
+  ! green
+  ,*.color2:       #00fc50
+  ,*.color10:      #88cf88
+
+  ! yellow
+  ,*.color3:       #eecc00
+  ,*.color11:      #d2b580
+
+  ! blue
+  ,*.color4:       #29aeff
+  ,*.color12:      #92baff
+
+  ! magenta
+  ,*.color5:       #feacd0
+  ,*.color13:      #e0b2d6
+
+  ! cyan
+  ,*.color6:       #00d3d0
+  ,*.color14:      #a0bfdf
+
+  ! white
+  ,*.color7:       #eeeeee
+  ,*.color15:      #dddddd
+#+end_src
+*** Copy paste
+#+begin_src conf :tangle ~/.Xresources
+  xterm*VT100.Translations: #override \
+    Shift <KeyPress> Insert: insert-selection(CLIPBOARD) \n\
+    Ctrl Shift <Key>V:    insert-selection(CLIPBOARD) \n\
+    Ctrl Shift <Key>C:    copy-selection(CLIPBOARD) \n\
+    Ctrl <Btn1Up>: exec-formatted("xdg-open '%t'", PRIMARY)
+#+end_src
+*** Blink cursor
+#+begin_src conf :tangle ~/.Xresources
+  xterm*cursorBlink: true
+#+end_src
+*** Alt keys
+#+begin_src conf :tangle ~/.Xresources
+  XTerm*eightBitInput:   false
+  XTerm*eightBitOutput:  true
+#+end_src