]> git.armaanb.net Git - config.org.git/blobdiff - config.org
spectrwm: add quirks section
[config.org.git] / config.org
index 322b7a453473bd9a56437001e36c90627761d48d..5f3f82628adca220507891efea5f46411f4ff3bd 100644 (file)
@@ -57,13 +57,6 @@ Its fine to set this here because I run Emacs in daemon mode, but if I were not,
         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.
@@ -297,10 +290,10 @@ Add back C-a/C-x
     (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
@@ -378,6 +371,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 +478,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)"=.
@@ -624,6 +631,10 @@ Abbreviate things!
 #+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.
@@ -751,15 +762,13 @@ No more clogging up init.el.
 *** 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
@@ -801,7 +810,6 @@ No more clogging up init.el.
   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
@@ -809,7 +817,10 @@ No more clogging up init.el.
   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
@@ -956,6 +967,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 +1006,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'
@@ -1345,18 +1364,6 @@ Lightweight notification daemon.
   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
@@ -1427,3 +1434,67 @@ Modus vivendi theme that extends DarkBlue.
       }
   }
 #+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