modus-themes-diffs 'desaturated)
(load-theme 'modus-vivendi t)
#+end_src
-** Tree-sitter
-#+begin_src emacs-lisp
- (use-package tree-sitter-langs)
- (use-package tree-sitter
- :config (global-tree-sitter-mode)
- :hook (tree-sitter-after-on-hook . tree-sitter-hl-mode))
-#+end_src
** Typography
*** Font
Great programming font with ligatures.
(add-to-list 'org-structure-template-alist '("pi" . "src conf :tangle ~/.config/picom/picom.conf"))
(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 '("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)"=.
#+begin_src emacs-lisp
(setq vc-follow-symlinks t)
#+end_src
+** Don't ask to save custom dictionary
+#+begin_src emacs-lisp
+ (setq ispell-silently-savep t)
+#+end_src
* Functions
** Easily convert splits
Converts splits from horizontal to vertical and vice versa. Lifted from EmacsWiki.
*** Keybindings
**** WM actions
#+begin_src conf :tangle ~/.spectrwm.conf
- program[lock] = i3lock -c 000000 -ef
program[term] = alacritty
program[screenshot_all] = flameshot gui
- program[menu] = rofi -show run # `rofi-dmenu` handles the rest
- program[switcher] = rofi -show window
program[notif] = /home/armaa/Code/scripts/setter status
+ program[pass] = /home/armaa/Code/scripts/passmenu
bind[notif] = MOD+n
- bind[switcher] = MOD+Tab
+ bind[pass] = MOD+Shift+p
#+end_src
**** Media keys
#+begin_src conf :tangle ~/.spectrwm.conf
program[firefox] = firefox
program[calc] = alacritty -e bc
program[emacs-anywhere] = emacsclient --eval "(emacs-everywhere)"
- program[pass] = rofi-pass
bind[aerc] = MOD+Control+1
bind[catgirl] = MOD+Control+2
bind[emacs-anywhere] = MOD+Control+4
bind[calc] = MOD+Control+5
bind[emacs] = MOD+Control+Return
- bind[pass] = MOD+Shift+P
+#+end_src
+**** Quirks
+#+begin_src conf :tangle ~/.spectrwm.conf
+ quirk[Castle Menu] = FLOAT
#+end_src
** Zsh
*** Settings
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'
highlight = "#ffffff"
timeout = 0
#+end_src
-** Rofi
-Modus vivendi theme that extends DarkBlue.
-#+begin_src javascript :tangle ~/.config/rofi/config.rasi
- @import "/usr/share/rofi/themes/DarkBlue.rasi"
- ,* {
- white: rgba ( 255, 255, 255, 100 % );
- foreground: @white;
- selected-normal-background: @white;
- separatorcolor: @white;
- background: rgba ( 34, 34, 34, 100 % );
- }
-#+end_src
** Zathura
*** Options
#+begin_src conf :tangle ~/.config/zathura/zathurarc
}
}
#+end_src
+** Xresources
+*** Font
+#+begin_src conf :tangle ~/.Xresources
+ 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