]> git.armaanb.net Git - config.org.git/blobdiff - config.org
Remove unused configs and packages
[config.org.git] / config.org
index dd4a18a6cc045c411544e6a3ce873893591230de..322b7a453473bd9a56437001e36c90627761d48d 100644 (file)
@@ -430,39 +430,6 @@ Contexts are a not very well known feature of mu4e that makes it super easy to m
     :hook ((mu4e-compose-mode . flyspell-mode)
            (mu4e-view-mode-hook . turn-on-visual-line-mode)))
 #+end_src
-** Calendar
-#+begin_src emacs-lisp
-  (use-package calfw)
-  (use-package calfw-org)
-  (use-package calfw-ical)
-
-  (defun acheam-calendar ()
-    "Open a calendar."
-    (interactive)
-    (shell-command "vdirsyncer sync")
-    (let ((default-directory "~/.local/share/vdirsyncer/"))
-      (cfw:open-calendar-buffer
-       :contents-sources
-       (list
-        (cfw:ical-create-source "School" (expand-file-name "school/abhojwani22@nobles.edu.ics") "Green")
-        (cfw:ical-create-source "Personal" (expand-file-name "mailbox/Y2FsOi8vMC8zMQ.ics") "Blue")
-        (cfw:ical-create-source "Birthdays" (expand-file-name "mailbox/Y2FsOi8vMS8w.ics") "Gray")
-        ))))
-#+end_src
-** IRC
-Another file has more specific network configuration.
-#+begin_src emacs-lisp
-  (use-package circe
-    :config (load-file "~/.emacs.d/irc.el"))
-
-  (use-package circe-chanop
-    :straight (:type built-in)
-    :after circe)
-
-  (use-package circe-color-nicks
-    :straight (:type built-in)
-    :after circe)
-#+end_src
 ** Default browser
 Set EWW as default browser except for videos.
 #+begin_src emacs-lisp
@@ -473,6 +440,9 @@ Set EWW as default browser except for videos.
   (setq browse-url-handlers
         (quote
          (("youtu\\.?be" . browse-url-mpv)
+          ("peertube.*" . browse-url-mpv)
+          ("vid.*" . browse-url-mpv)
+          ("vid.*" . browse-url-mpv)
           ("." . eww-browse-url)
           )))
 #+end_src
@@ -520,15 +490,6 @@ Use Emacs globally. Use the Emacs daemon and bind a key in your wm to
 #+begin_src emacs-lisp
   (use-package emacs-everywhere)
 #+end_src
-** Eshell
-#+begin_src emacs-lisp
-  (setq eshell-prompt-function
-        (lambda nil
-          (propertize (concat
-                       "\n" (eshell/pwd) " ➤ ")
-                      'face '(:foreground "cyan")))
-        eshell-highlight-prompt nil)
-#+end_src
 * Emacs IDE
 ** Code cleanup
 #+begin_src emacs-lisp
@@ -840,6 +801,7 @@ 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
@@ -847,6 +809,7 @@ 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
 ** Zsh
 *** Settings
@@ -912,10 +875,8 @@ Right now, I'm only using fast-syntax-highlighting. It's a really nice visual ad
 *** Functions
 **** Time Zsh startup
 #+begin_src shell :tangle ~/.config/zsh/zshrc
-  timezsh() {
-      for i in $(seq 1 10); do
-          time "zsh" -i -c exit;
-      done
+  timer() {
+      for i in $(seq 1 10); do time "$1" -i -c exit; done
   }
 #+end_src
 **** Update all packages
@@ -1001,8 +962,7 @@ Right now, I'm only using fast-syntax-highlighting. It's a really nice visual ad
   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 mine='ssh -p 23 root@pickupserver.cc'
   alias tcf='ssh root@204.48.23.68'
   alias ngmun='ssh root@157.245.89.25'
   alias prox='ssh root@192.168.1.224'
@@ -1028,14 +988,6 @@ 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
-**** Dotfiles
-#+begin_src shell :tangle ~/.config/zsh/zshrc
-  alias padm='yadm --yadm-repo ~/Code/dotfiles/repo.git'
-  alias yadu='yadm add -u && yadm commit -m "Updated `date -Iseconds`" && \
-    yadm push'
-  alias padu='padm add -u && padm commit && padm push && yadu'
-#+end_src
 **** Editing
 #+begin_src shell :tangle ~/.config/zsh/zshrc
   alias v='nvim'
@@ -1050,6 +1002,10 @@ Right now, I'm only using fast-syntax-highlighting. It's a really nice visual ad
   alias redoas='doas $(fc -ln -1)'
   alias crontab='crontab-argh'
   alias sudo='doas ' # allows aliases to be run with doas
+  alias pasc='pass -c'
+  alias pasu='\pass git push'
+  alias yadu='yadm add -u && yadm commit -m "Updated `date -Iseconds`" && \
+    yadm push'
 #+end_src
 **** Networking
 #+begin_src shell :tangle ~/.config/zsh/zshrc