(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
: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"
(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)"=.
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
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'
}
}
#+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