]> git.armaanb.net Git - config.org.git/blobdiff - config.org
Add peertube to MPV url handler
[config.org.git] / config.org
index e30da6f24f84598cb83927d1da12bd42023fd7cb..38e65f162e4bdc709aea28b8138b020820902afd 100644 (file)
@@ -299,7 +299,7 @@ Add back C-a/C-x
     (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 '("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")))
 #+end_src
 ** Presentations
@@ -473,6 +473,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
@@ -780,15 +783,8 @@ No more clogging up init.el.
   workspace_limit = 5
   warp_pointer = 1
   modkey = Mod4
-  border_width = 4
   autorun = ws[1]:/home/armaa/Code/scripts/autostart
 #+end_src
-*** Appearance
-#+begin_src conf :tangle ~/.spectrwm.conf
-  color_focus = rgb:ff/ff/ff
-  color_focus_maximized = rgb:ee/cc/00
-  color_unfocus = rgb:55/55/55
-#+end_src
 *** Bar
 #+begin_src conf :tangle ~/.spectrwm.conf
   bar_enabled = 0
@@ -845,12 +841,14 @@ No more clogging up init.el.
   program[catgirl] = alacritty --hold -e sh -c "while : ; do ssh root@armaanb.net -t abduco -A irc catgirl freenode; sleep 2; done"
   program[emacs] = emacsclient -c
   program[firefox] = firefox
+  program[calc] = alacritty -e bc
   program[emacs-anywhere] = emacsclient --eval "(emacs-everywhere)"
 
   bind[aerc] = MOD+Control+1
   bind[catgirl] = MOD+Control+2
   bind[firefox] = MOD+Control+3
   bind[emacs-anywhere] = MOD+Control+4
+  bind[calc] = MOD+Control+5
   bind[emacs] = MOD+Control+Return
 #+end_src
 ** Zsh
@@ -862,6 +860,16 @@ No more clogging up init.el.
 
   setopt no_case_glob
   unsetopt glob_complete
+
+  # Fragment completions
+  zstyle ':completion:*' list-suffixes
zstyle ':completion:*' expand prefix suffix
+
+  # Menu completions
+  zstyle ':completion:*' menu select
+  zmodload zsh/complist
+  bindkey -M menuselect '^n' expand-or-complete
+  bindkey -M menuselect '^p' reverse-menu-complete
+
 #+end_src
 **** Vim bindings
 #+begin_src shell :tangle ~/.config/zsh/zshrc
@@ -890,11 +898,11 @@ No more clogging up init.el.
 #+end_src
 *** Plugins
 I manage plugins using my own plugin manager, ZPE. https://git.sr.ht/~armaan/zpe
+
+Right now, I'm only using fast-syntax-highlighting. It's a really nice visual addition.
 **** ZPE
 #+begin_src conf :tangle ~/.config/zpe/repositories
-    https://github.com/Aloxaf/fzf-tab
-    https://github.com/zdharma/fast-syntax-highlighting
-    https://github.com/rupa/z
+  https://github.com/zdharma/fast-syntax-highlighting
 #+end_src
 **** Zshrc
 #+begin_src shell :tangle ~/.config/zsh/zshrc
@@ -902,25 +910,9 @@ I manage plugins using my own plugin manager, ZPE. https://git.sr.ht/~armaan/zpe
   source ~/Code/admone/admone.zsh
   source ~/.config/zsh/fzf-bindings.zsh
 
-  zpe-source fzf-tab/fzf-tab.zsh
-  zstyle ':completion:*:descriptions' format '[%d]'
-  zstyle ':fzf-tab:complete:cd:*' fzf-preview 'exa -1 --color=always $realpath'
-  zstyle ':completion:*' completer _complete
-  zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' \
-         'm:{a-zA-Z}={A-Za-z} l:|=* r:|=*'
-  enable-fzf-tab
   zpe-source fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh
-  export _Z_DATA="/home/armaa/.local/share/z"
-  zpe-source z/z.sh
 #+end_src
 *** Functions
-**** Alert after long command
-#+begin_src shell :tangle ~/.config/zsh/zshrc
-  alert() {
-      notify-send --urgency=low -i ${(%):-%(?.terminal.error)} \
-                  ${history[$HISTCMD]%[;&|][[:space:]]##alert}
-  }
-#+end_src
 **** Time Zsh startup
 #+begin_src shell :tangle ~/.config/zsh/zshrc
   timezsh() {
@@ -973,27 +965,6 @@ I manage plugins using my own plugin manager, ZPE. https://git.sr.ht/~armaan/zpe
       echo "${color}All orphans cleaned!${reset}"
   }
 #+end_src
-**** ls every cd
-#+begin_src shell :tangle ~/.config/zsh/zshrc
-  chpwd() {
-      emulate -L zsh
-      exa -lh --icons --git --group-directories-first
-  }
-#+end_src
-**** Change default enter behavior
-If no command given, =ls=, if in a Git repo, =git status= as well.
-#+begin_src shell :tangle ~/.config/zsh/zshrc
-  acheam-accept-line () {
-      zle accept-line
-      if [ ${#${(z)BUFFER}} -eq 0 ]; then
-          echo
-          exa -lh --icons --git --group-directories-first
-          [ -d ".git" ] && git status
-      fi
-  }
-  zle -N acheam-accept-line
-  bindkey '^M' acheam-accept-line
-#+end_src
 **** Setup anaconda
 #+begin_src shell :tangle ~/.config/zsh/zshrc
   zconda() {
@@ -1019,14 +990,6 @@ If no command given, =ls=, if in a Git repo, =git status= as well.
   0short() { curl -F"shorten=$1" "$zxz" ; }
   0clip() { xclip -out | curl -F"file=@-;" "$zxz" ; }
 #+end_src
-**** Swap two files
-#+begin_src shell :tangle ~/.config/zsh/zshrc
-  sw() {
-      mv $1 $1.tmp
-      mv $2 $1
-      mv $1.tmp $2
-  }
-#+end_src
 **** Finger
 #+begin_src shell :tangle ~/.config/zsh/zshrc
   finger() {
@@ -1041,6 +1004,8 @@ If no command given, =ls=, if in a Git repo, =git status= as well.
   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 tcf='ssh root@204.48.23.68'
   alias ngmun='ssh root@157.245.89.25'
   alias prox='ssh root@192.168.1.224'
@@ -1391,7 +1356,7 @@ Lightweight notification daemon.
   monitor = 0
   sticky_history = yes
   line_height = 0
-  separator_height = 4
+  separator_height = 1
   padding = 8
   horizontal_padding = 8
   max_icon_size = 32
@@ -1401,7 +1366,7 @@ Lightweight notification daemon.
 *** Modes
 #+begin_src conf :tangle ~/.config/dunst/dunstrc
   [frame]
-  width = 3
+  width = 1
   color = "#ffffff"
 
   [shortcuts]
@@ -1438,10 +1403,6 @@ Modus vivendi theme that extends DarkBlue.
           separatorcolor:               @white;
           background:                   rgba ( 34, 34, 34, 100 % );
       }
-
-  window {
-      border: 3;
-  }
 #+end_src
 ** Zathura
 *** Options