diff --git a/.Xresources b/.Xresources new file mode 100644 index 0000000..76e86ae --- /dev/null +++ b/.Xresources @@ -0,0 +1,98 @@ +! ~/.Xresource +*.foreground: #cbe3e7 +*.background: #1e1c31 +*.cursorColor: #fbfcfc + +! black +*.color0: #565575 +*.color8: #100e23 + +! red +*.color1: #ff8080 +*.color9: #ff5458 + +! green +*.color2: #95ffa4 +*.color10: #62d196 + +! yellow +*.color3: #ffe9aa +*.color11: #ffb378 + +! blue +*.color4: #91ddff +*.color12: #65b2ff + +! magenta +*.color5: #c991e1 +*.color13: #906cff + +! cyan +*.color6: #aaffe4 +*.color14: #63f2f1 + +! white +*.color7: #cbe3e7 +*.color15: #a6b3cc + +Xft.antialias: 1 +Xft.autohint: 0 +Xft.lcdfilter: lcddefault +Xft.hintstlye: hintfull +Xft.dpi: 90 + +URxvt*termName: rxvt-unicode-256color +URxvt*scrollTtyOutput: false +URxvt*scrollTtyKeypress: true +URxvt*scrollWithBuffer: true +URxvt*saveLines: 3000 + +URxvt*loginShell: true +Urxvt*secondaryScroll: true +URxvt*secondaryWheel: true +URxvt*cursorUnderline: false +URxvt*font: xft:DejaVu Sans Mono:size=12:autohint=true +!URxvt.transparent: false +URxvt*borderless: true +!URxvt.shading: 35 +URxvt*depth: 32 + +URxvt*urgentOnBell: true +URxvt*scrollBar_right: true +URxvt*scrollstyle: plain + +! urxvt + +!-*- Perl extensions -*- +! clipboard +! update clipboard whenever primary gets updated + +! font-size +URxvt.keysym.C-Up: perl:font-size:increase +URxvt.keysym.C-Down: perl:font-size:decrease +URxvt.font-size.step: 2 +! disable default binding for shift on urxvt +URxvt.iso14755: false +URxvt.iso14755_52: false +URxvt.perl-ext-common: default,selection-to-clipboard,pasta,matcher,keyboard-select +URxvt.keysym.M-u: perl:url-select:select_next +URxvt.underlineURLs: True +URxvt.matcher.button: 1 +URxvt.keysym.M-Escape:perl:keyboard-select:activate +URxvt.keysym.Control-Shift-V: perl:pasta:paste +URxvt.clipboard.autocopy: true + + +XTerm*faceName: xft:DejaVu Sans Mono:size=16:antialias=true +XTerm*termName: xterm-256color +XTerm*utf8: 1 +Xterm*borderWidth: 0 +XTerm*toolBar: off +XTerm*VT100.translations: #override \n\ + Ctrl Shift C: copy-selection(CLIPBOARD) \n\ + Ctrl Shift V: insert-selection(CLIPBOARD) \n\ + Ctrl M: maximize() \n\ + Ctrl R: restore() + +Xcursor.size: 32 +Xcursor.theme: Numix-Cursor-Light diff --git a/.bashrc b/.bashrc new file mode 120000 index 0000000..3870a54 --- /dev/null +++ b/.bashrc @@ -0,0 +1 @@ +dotfiles/bash/.bashrc \ No newline at end of file diff --git a/.config/mimi/mime.conf b/.config/mimi/mime.conf new file mode 100644 index 0000000..3469f43 --- /dev/null +++ b/.config/mimi/mime.conf @@ -0,0 +1,13 @@ +text/: firefox +application/pdf: zathura +video/: vlc +image/: firefox +audio/: vlc +application/x-tar: xterm -e 2a +application/x-gzip: xterm -e 2a +application/x-bzip2: xterm -e 2a +application/x-rar: xterm -e 2a +application/x-xz: xterm -e 2a +application/zip: xterm -e 2a +inode/directory: emacsclient -c +application/vnd.openxmlformats-officedocument.presentationml.presentation: libreoffice \ No newline at end of file diff --git a/.config/zathura/zathurarc b/.config/zathura/zathurarc new file mode 100644 index 0000000..dab264e --- /dev/null +++ b/.config/zathura/zathurarc @@ -0,0 +1,59 @@ +# Open document in fit-width mode by default +set adjust-open "best-fit" + +# One page per row by default +set pages-per-row 1 + +#stop at page boundries +set scroll-page-aware "true" +set smooth-scroll "true" +set scroll-full-overlap 0.01 +set scroll-step 100 + +#zoom settings +set zoom-min 10 +set guioptions "" + +# zathurarc-dark + +set font "Iosevka 14" +set default-bg "#1b182c" #00 +set default-fg "#cbe3e7" #01 + +set statusbar-fg "#B0B0B0" #04 +set statusbar-bg "#202020" #01 + +set inputbar-bg "#151515" #00 currently not used +set inputbar-fg "#FFFFFF" #02 + +set notification-error-bg "#AC4142" #08 +set notification-error-fg "#151515" #00 + +set notification-warning-bg "#AC4142" #08 +set notification-warning-fg "#151515" #00 + +set highlight-color "#F4BF75" #0A +set highlight-active-color "#6A9FB5" #0D + +set completion-highlight-fg "#151515" #02 +set completion-highlight-bg "#90A959" #0C + +set completion-bg "#303030" #02 +set completion-fg "#E0E0E0" #0C + +set notification-bg "#90A959" #0B +set notification-fg "#151515" #00 + +set recolor "false" +set recolor-lightcolor "#1b182c" #00 +set recolor-darkcolor "#cbe3e7" #06 +set recolor-reverse-video "true" +set recolor-keephue "true" + + +set render-loading "false" +set scroll-step 50 +unmap f +map f toggle_fullscreen +map [fullscreen] f toggle_fullscreen +map t recolor \ No newline at end of file diff --git a/.gnupg/gpg-agent.conf b/.gnupg/gpg-agent.conf new file mode 100644 index 0000000..1bd1836 --- /dev/null +++ b/.gnupg/gpg-agent.conf @@ -0,0 +1,2 @@ +max-cache-ttl 60480000 +default-cache-ttl 60480000 \ No newline at end of file diff --git a/.local/bin/git-prune-files b/.local/bin/git-prune-files new file mode 100755 index 0000000..2cb4dde --- /dev/null +++ b/.local/bin/git-prune-files @@ -0,0 +1,24 @@ +#!/usr/bin/env bash +set -o errexit + +# Author: David Underhill +# Script to permanently delete files/folders from your git repository. To use +# it, cd to your repository's root and then run the script with a list of paths +# you want to delete, e.g., git-delete-history path1 path2 + +if [ $# -eq 0 ]; then + exit 0 +fi + +# make sure we're at the root of git repo +if [ ! -d .git ]; then + echo "Error: must run this script from the root of a git repository" + exit 1 +fi + +# remove all paths passed as arguments from the history of the repo +files=$@ +git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch $files" HEAD + +# remove the temporary history git-filter-branch otherwise leaves behind for a long time +rm -rf .git/refs/original/ && git reflog expire --all && git gc --aggressive --prune \ No newline at end of file diff --git a/.local/bin/to-gif b/.local/bin/to-gif new file mode 100755 index 0000000..b288828 --- /dev/null +++ b/.local/bin/to-gif @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +ffmpeg -i $1 -vf "fps=20,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 $2 \ No newline at end of file diff --git a/.notmuch-config b/.notmuch-config new file mode 100644 index 0000000..150945e --- /dev/null +++ b/.notmuch-config @@ -0,0 +1,18 @@ +[database] +path=/home/jethro/.mail/ + +[user] +name=Jethro Kuan +primary_email=jethrokuan95@gmail.com +other_email=jethro@nushackers.org;e0036913@u.nus.edu + +[new] +tags=unread; +ignore= + +[search] +exclude_tags=deleted;spam; + + +[maildir] +synchronize_flags=true diff --git a/.notmuch/hooks/post-new b/.notmuch/hooks/post-new new file mode 100755 index 0000000..5562795 --- /dev/null +++ b/.notmuch/hooks/post-new @@ -0,0 +1,29 @@ +#!/usr/bin/env bash + +# All initial mail comes in as untagged + +# Note mail sent specifically to me +notmuch tag +to-me -- to:jethrokuan95@gmail.com and not tag:to-me +notmuch tag +to-me -- to:jethro@nushackers.org and not tag:to-me +notmuch tag +to-me -- to:e0036913@u.nus.edu and not tag:to-me +notmuch tag +to-me -- to:jethro@comp.nus.edu.sg and not tag:to-me +notmuch tag +to-me -- to:\*@jethrokuan.com and not tag:to-me + +# Note mail sent from me +notmuch tag +sent -- from:jethrokuan95@gmail.com and not tag:sent +notmuch tag +sent -- from:jethro@nushackers.org and not tag:sent +notmuch tag +sent -- from:e0036913@u.nus.edu and not tag:sent +notmuch tag +sent -- from:jethro@comp.nus.edu.sg and not tag:sent +notmuch tag +sent -- from:\*@jethrokuan.com and not tag:sent + +# Note mail from personal inbox +notmuch tag +personal -- to:jethrokuan95@gmail.com and not tag:personal +notmuch tag +personal -- to:hi@jethrokuan.com and not tag:personal + +# Note mail to NUS hackers +notmuch tag +nushackers -- to:\*@nushackers.org and not tag:nushackers + +# Note mail to NUS +notmuch tag +nus -- to:\*@u.nus.edu and not tag:nus +notmuch tag +nus -- to:\*@comp.nus.edu.sg and not tag:nus +notmuch tag -inbox +draft -- folder:~/.mail/drafts/