From 19d7f235e45b0b1a0c1e42410260d7a6971b16d4 Mon Sep 17 00:00:00 2001 From: James Patrick Date: Thu, 19 Mar 2020 15:34:17 -0400 Subject: [PATCH 1/6] New binding and clarification in comment. --- tridactyl/tridactylrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tridactyl/tridactylrc b/tridactyl/tridactylrc index a6cbe4b..d60613b 100644 --- a/tridactyl/tridactylrc +++ b/tridactyl/tridactylrc @@ -19,7 +19,7 @@ bind ;c hint -c [class*="expand"],[class="togg"] command ba back command fo foward -" restore bookmarks +" restore buildin bookmarks unbind " use h/l to cycle though tabs. @@ -34,6 +34,8 @@ bind n findnext 1 bind N findnext -1 bind , nohlsearch +bind fillcmdline_notrail + " Text to speech is broken on all of my firefox instances. I'll just use my " own. unbind ;r From b86e96b570bf5170b6c411f05a2272d78a368d5c Mon Sep 17 00:00:00 2001 From: James Patrick Date: Thu, 19 Mar 2020 15:55:20 -0400 Subject: [PATCH 2/6] Adding emacs magic-ish line for make files. --- emacs/makefile | 1 + git/makefile | 1 + jrnl/makefile | 1 + lib/makefile | 2 +- makefile | 1 + mako/makefile | 1 + rofi/makefile | 1 + ssh/makefile | 2 ++ sway/makefile | 1 + tmux/makefile | 2 ++ tridactyl/makefile | 1 + waybar/makefile | 1 + zsh/makefile | 1 + 13 files changed, 15 insertions(+), 1 deletion(-) diff --git a/emacs/makefile b/emacs/makefile index 1031e65..0747772 100644 --- a/emacs/makefile +++ b/emacs/makefile @@ -1,3 +1,4 @@ +# -*- mode: makefile-gmake; -*- SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) EMACSD := ~/.emacs.d diff --git a/git/makefile b/git/makefile index 7e7ce86..b53cd09 100644 --- a/git/makefile +++ b/git/makefile @@ -1,3 +1,4 @@ +# -*- mode: makefile-gmake; -*- SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) SOURCE := $(SRC_DIR)/gitconfig TARGET := ~/.gitconfig diff --git a/jrnl/makefile b/jrnl/makefile index 0abe284..1cc1a45 100644 --- a/jrnl/makefile +++ b/jrnl/makefile @@ -1,3 +1,4 @@ +# -*- mode: makefile-gmake; -*- SRC := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) include ../lib/shared.mk diff --git a/lib/makefile b/lib/makefile index 4d1e636..257e61d 100644 --- a/lib/makefile +++ b/lib/makefile @@ -1,4 +1,4 @@ - +# -*- mode: makefile-gmake; -*- SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) GIT_HOOK_SRC = $(SRC_DIR)/post-merge GIT_HOOK_TARGET = $(abspath $(SRC_DIR)/..)/.git/hooks/post-merge diff --git a/makefile b/makefile index d27d9a8..7853856 100644 --- a/makefile +++ b/makefile @@ -1,3 +1,4 @@ +# -*- mode: makefile-gmake; -*- SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) include lib/shared.mk diff --git a/mako/makefile b/mako/makefile index 5092465..499e83a 100644 --- a/mako/makefile +++ b/mako/makefile @@ -1,3 +1,4 @@ +# -*- mode: makefile-gmake; -*- SRC := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) include ../lib/shared.mk diff --git a/rofi/makefile b/rofi/makefile index 0f961a9..956f97d 100644 --- a/rofi/makefile +++ b/rofi/makefile @@ -1,3 +1,4 @@ +# -*- mode: makefile-gmake; -*- SRC := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) include ../lib/shared.mk diff --git a/ssh/makefile b/ssh/makefile index 85abdd0..9468803 100644 --- a/ssh/makefile +++ b/ssh/makefile @@ -1,4 +1,6 @@ +# -*- mode: makefile-gmake; -*- SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) + CONFIG_SRC := $(SRC_DIR)/config CONFIG_TRGT := ~/.ssh/config GIT_KEY := ~/.ssh/git.jpatrick.io diff --git a/sway/makefile b/sway/makefile index 370f8a3..42ee6f8 100644 --- a/sway/makefile +++ b/sway/makefile @@ -1,3 +1,4 @@ +# -*- mode: makefile-gmake; -*- SRC := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) include ../lib/shared.mk diff --git a/tmux/makefile b/tmux/makefile index d610033..1dcaa3d 100644 --- a/tmux/makefile +++ b/tmux/makefile @@ -1,4 +1,6 @@ +# -*- mode: makefile-gmake; -*- SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) + SOURCE := $(SRC_DIR)/tmux.conf TARGET := ~/.tmux.conf diff --git a/tridactyl/makefile b/tridactyl/makefile index cdfe0c7..e08a246 100644 --- a/tridactyl/makefile +++ b/tridactyl/makefile @@ -1,3 +1,4 @@ +# -*- mode: makefile-gmake; -*- SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) include ../lib/shared.mk diff --git a/waybar/makefile b/waybar/makefile index f34905e..5e70a54 100644 --- a/waybar/makefile +++ b/waybar/makefile @@ -1,3 +1,4 @@ +# -*- mode: makefile-gmake; -*- SRC := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) include ../lib/shared.mk diff --git a/zsh/makefile b/zsh/makefile index f249b5f..203bd2b 100644 --- a/zsh/makefile +++ b/zsh/makefile @@ -1,3 +1,4 @@ +# -*- mode: makefile-gmake; -*- SRC := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) include ../lib/shared.mk From 6537ac6f674938e6ec0287a18eb2db7b48449b66 Mon Sep 17 00:00:00 2001 From: James Patrick Date: Thu, 19 Mar 2020 15:56:14 -0400 Subject: [PATCH 3/6] Added yarn autocomplete function. --- zsh/zplug | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zsh/zplug b/zsh/zplug index dba22a6..df5d11f 100755 --- a/zsh/zplug +++ b/zsh/zplug @@ -20,6 +20,10 @@ zplug "zsh-users/zsh-autosuggestions", as:plugin, defer:2 zplug "zsh-users/zsh-completions", as:plugin, defer:2 zplug "zsh-users/zsh-history-substring-search", as:plugin, defer:2 +if (($+commands[yarn])) ; then + zplug "g-plane/zsh-yarn-autocompletions", hook-build:"./zplug.zsh", defer:2 +fi + if [ -n "$SSH_CONNECTION" ] ; then zplug "${ZDIR}/modules/prompt/", from:local, use:uncommon.zsh, as:theme else From 0595964aeac4a06a8aecd907426a971441dd976c Mon Sep 17 00:00:00 2001 From: James Patrick Date: Thu, 19 Mar 2020 15:57:14 -0400 Subject: [PATCH 4/6] Started adding documentation --- emacs/README.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 emacs/README.md diff --git a/emacs/README.md b/emacs/README.md new file mode 100644 index 0000000..a009fd4 --- /dev/null +++ b/emacs/README.md @@ -0,0 +1,2 @@ +I use [doom](https://github.com/hlissner/doom-emacs). Just look there for your +documentation. From 36794b4d6a8fc2b92861c89ce0146052d46d5473 Mon Sep 17 00:00:00 2001 From: James Patrick Date: Tue, 21 Apr 2020 23:34:28 -0400 Subject: [PATCH 5/6] Adding pass support. --- emacs/doom.d/init.el | 2 +- zsh/modules/bin/fzf-pass | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100755 zsh/modules/bin/fzf-pass diff --git a/emacs/doom.d/init.el b/emacs/doom.d/init.el index 6169b97..1a628aa 100644 --- a/emacs/doom.d/init.el +++ b/emacs/doom.d/init.el @@ -101,7 +101,7 @@ ;;macos ; MacOS-specific commands magit ; a git porcelain for Emacs make ; run make tasks from Emacs - ;;pass ; password manager for nerds + pass ; password manager for nerds ;;pdf ; pdf enhancements ;;prodigy ; FIXME managing external services & code builders ;;rgb ; creating color strings diff --git a/zsh/modules/bin/fzf-pass b/zsh/modules/bin/fzf-pass new file mode 100755 index 0000000..749f389 --- /dev/null +++ b/zsh/modules/bin/fzf-pass @@ -0,0 +1,40 @@ +#!/usr/bin/env bash + +cd "$HOME/.password-store" || exit 1 +PASSFILE=$(tree -Ffi | grep '.gpg' | sed 's/.gpg$//g' | sed 's/^..//' | fzf) + +if [ -z "$PASSFILE" ]; then + exit 0 +fi + +PASSDATA="$(pass "$PASSFILE")" +USRNAME="$(echo "$PASSDATA" | grep "username:" | cut -d' ' -f2-)" +PASS="$(echo "$PASSDATA" | head -n 1)" +URL="$(echo "$PASSDATA" | grep url: | cut -d' ' -f2-)" + +RESP=$(cat < Date: Tue, 21 Apr 2020 23:35:07 -0400 Subject: [PATCH 6/6] Updating functions for tridactyl. --- tridactyl/tridactylrc | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/tridactyl/tridactylrc b/tridactyl/tridactylrc index d60613b..14fbc2e 100644 --- a/tridactyl/tridactylrc +++ b/tridactyl/tridactylrc @@ -48,5 +48,31 @@ set incsearch true " Use custom theme colorscheme onedark +" Quick marks +quickmark r https://redmine.greenfiling.com/projects/general/issues?query_id=67 +quickmark G https://github.com/ +quickmark g https://git.jpatrick.io/ +quickmark l https://lobste.rs/ +quickmark n https://news.ycombinator.com/ + + +"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" Hic Sunt Dracones +command fixamo js tri.excmds.setpref("privacy.resistFingerprinting.block_mozAddonManager", "true").then(tri.excmds.setpref("extensions.webextensions.restrictedDomains", '""').then(tri.excmds.fillcmdline_tmp(3000, "Permissions added to user.js. Please restart Firefox to make them take affect."))) +command fixamo_quiet jsb tri.excmds.setpref("privacy.resistFingerprinting.block_mozAddonManager", "true").then(tri.excmds.setpref("extensions.webextensions.restrictedDomains", '""')) + +fixamo_quiet + +setpref browser.aboutConfig.showWarning false +setpref extensions.pocket.enabled false +"setpref dom.media.mediasession.enabled true +setpref privacy.trackingprotection.fingerprinting.enabled true +setpref privacy.trackingprotection.cryptomining.enabled true +setpref privacy.trackingprotection.enabled true +setpref browser.urlbar.speculativeConnect.enabled false +setpref network.cookie.cookieBehavior 1 +setpref beacon.enabled false +setpref network.IDN_show_punycode true + " vim: set filetype=vim: -" -*- mode: vim -*- +" -*- mode: vimrc -*-