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. 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/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/tridactyl/tridactylrc b/tridactyl/tridactylrc index a6cbe4b..14fbc2e 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 @@ -46,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 -*- 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 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 <