#+end_src
** Emacs Anywhere
Use Emacs globally. Use the Emacs daemon and bind a key in your wm to
-"emacsclient --eval "(emacs-everywhere)".
+=emacsclient --eval "(emacs-everywhere)"=.
#+begin_src emacs-lisp
(use-package emacs-everywhere)
#+end_src
*** Magit
# TODO: Write a command that commits hunk, skipping staging step.
#+begin_src emacs-lisp
- (use-package magit
- :hook (magit-mode-hook. pinentry-start))
+ (use-package magit)
#+end_src
*** Colored diff in line number area
#+begin_src emacs-lisp
** GPG
#+begin_src emacs-lisp
(use-package epa-file
- :straight (:type built-in))
- (setq epa-file-select-keys nil
- epa-file-encrypt-to '("me@armaanb.net")
- password-cache-expiry (* 60 15))
+ :straight (:type built-in)
+ :custom
+ (epa-file-select-keys nil)
+ (epa-file-encrypt-to '("me@armaanb.net"))
+ (password-cache-expiry (* 60 15)))
- (use-package pinentry)
+ (use-package pinentry
+ :config (pinentry-start))
#+end_src
** Pastebin
#+begin_src emacs-lisp
program[k] = xdotool keyup k key --clearmodifiers Up
program[l] = xdotool keyup l key --clearmodifiers Right
- bind[h] = MOD + Control + h
- bind[j] = MOD + Control + j
- bind[k] = MOD + Control + k
- bind[l] = MOD + Control + l
+ bind[h] = Mod1 + Tab + h
+ bind[j] = Mod1 + Tab + j
+ bind[k] = Mod1 + Tab + k
+ bind[l] = Mod1 + Tab + l
#+end_src
**** Programs
#+begin_src conf :tangle ~/.spectrwm.conf
bind[aerc] = MOD+Control+s
bind[weechat] = MOD+Control+d
- bind[emacs] = MOD+Control+f
- bind[emacs-anywhere] = MOD+f
+ bind[emacs] = MOD+Control+Return
+ bind[emacs-anywhere] = MOD+Control+f
bind[firefox] = MOD+Control+u
bind[thunderbird] = MOD+Control+i
bind[slack] = MOD+Control+o
#+begin_src shell :tangle ~/.config/zsh/zshrc
alias aps='yay -Ss'
alias api='yay -Syu'
+ alias apii='sudo pacman -S'
alias app='yay -Rns'
alias apc='yay -Sc'
alias apo='yay -Qttd'
alias favorites='pacman -Qe | cut -d " " -f 1 > ~/Documents/favorites'
alias ufetch='ufetch-arch'
alias reflect='reflector --verbose --sort rate --save \
- ~/.local/etc/pacman.d/mirrorlist --download-timeout 60' # Takes ~45m to run
+ ~/.local/etc/pacman.d/mirrorlist --download-timeout 60' # Takes ~45m to run
#+end_src
*** Exports
#+begin_src shell :tangle ~/.config/zsh/zshrc
- export EDITOR="emacsclient -c" # $EDITOR opens in terminal
- export VISUAL="emacsclient -c -a emacs" # $VISUAL opens in GUI mode
+ export EDITOR="emacsclient -c"
+ export VISUAL="$VISUAL"
export TERM=xterm-256color # for compatability
export GPG_TTY="$(tty)"
export MANPAGER='nvim +Man!'
export PAGER='less'
- # generated with "vivid generate gruvbox"
- export LS_COLORS="$(cat ~/.local/share/zsh/gruvbox)"
-
export GTK_USE_PORTAL=1
export PATH="/home/armaa/.local/bin:$PATH" # prioritize .local/bin
ytdl-format="bestvideo[height<=?1080]+bestaudio/best"
hwdec=auto-copy
#+end_src
-** Picom
-*** Shadows
-#+begin_src conf :tangle ~/.config/picom/picom.conf
- shadow = true;
- shadow-radius = 10;
- shadow-offset-x = -5;
- shadow-offset-y = -5;
-#+end_src
-*** Fading
-#+begin_src conf :tangle ~/.config/picom/picom.conf
- fading = true
- fade-delta = 5
-#+end_src
-*** Blur
-#+begin_src conf :tangle ~/.config/picom/picom.conf
- blur:
- {
- method = "gaussian";
- size = 5;
- deviation = 5;
- };
-#+end_src
-*** Backend
-Needs picom to be run with "--experimental-backends"
-#+begin_src conf :tangle ~/.config/picom/picom.conf
- backend = "glx";
-#+end_src
** Inputrc
For any GNU Readline programs
#+begin_src plain :tangle ~/.inputrc
set editing-mode vi
#+end_src
-** Vivid
-https://github.com/sharkdp/vivid
-*** Colors
-#+begin_src yml :tangle ~/.config/vivid/gruvbox.yml
- colors:
- background_color: '282A36'
- black: '21222C'
- orange: 'd65d0e'
- purple: 'b16286'
- red: 'cc241d'
- blue: '458588'
- pink: 'd3869b'
- lime: '689d6a'
-
- gray: '928374'
-#+end_src
-*** Core
-#+begin_src yml :tangle ~/.config/vivid/gruvbox.yml
- core:
- regular_file: {}
-
- directory:
- foreground: blue
-
- executable_file:
- foreground: red
- font-style: bold
-
- symlink:
- foreground: pink
-
- broken_symlink:
- foreground: black
- background: red
- missing_symlink_target:
- foreground: black
- background: red
-
- fifo:
- foreground: black
- background: blue
-
- socket:
- foreground: black
- background: pink
-
- character_device:
- foreground: black
- background: lime
-
- block_device:
- foreground: black
- background: red
-
- normal_text:
- {}
-
- sticky:
- {}
-
- sticky_other_writable:
- {}
-
- other_writable:
- {}
-
- text:
- special:
- foreground: black
- background: orange
-
- todo:
- font-style: bold
-
- licenses:
- foreground: gray
-
- configuration:
- foreground: orange
-
- other:
- foreground: orange
-
- markup:
- foreground: orange
-
- programming:
- source:
- foreground: purple
-
- tooling:
- foreground: purple
-
- continuous-integration:
- foreground: purple
-
- media:
- foreground: pink
-
- office:
- foreground: red
-
- archives:
- foreground: lime
- font-style: underline
-
- executable:
- foreground: red
- font-style: bold
-
- unimportant:
- foreground: gray
-#+end_src
** Git
*** User
-#+begin_src plain :tangle ~/.gitconfig
+#+begin_src conf :tangle ~/.gitconfig
[user]
name = Armaan Bhojwani
email = me@armaanb.net
signingkey = 0FEB9471E19C49C60CFBEB133C9ED82FFE788E4A
#+end_src
*** Init
-#+begin_src plain :tangle ~/.gitconfig
+#+begin_src conf :tangle ~/.gitconfig
[init]
defaultBranch = main
#+end_src
*** GPG
-#+begin_src plain :tangle ~/.gitconfig
+#+begin_src conf :tangle ~/.gitconfig
[gpg]
program = gpg
#+end_src
*** Sendemail
-#+begin_src plain :tangle ~/.gitconfig
+#+begin_src conf :tangle ~/.gitconfig
[sendemail]
smtpserver = smtp.mailbox.org
smtpuser = me@armaanb.net
confirm = auto
#+end_src
*** Submodules
-#+begin_src plain :tangle ~/.gitconfig
+#+begin_src conf :tangle ~/.gitconfig
[submodule]
recurse = true
#+end_src
*** Aliases
-#+begin_src plain :tangle ~/.gitconfig
+#+begin_src conf :tangle ~/.gitconfig
[alias]
stat = diff --stat
sclone = clone --depth 1
mirror = git config --global alias.mirrormirror
#+end_src
*** Commits
-#+begin_src plain :tangle ~/.gitconfig
+#+begin_src conf :tangle ~/.gitconfig
[commit]
gpgsign = true
#+end_src