todoman conf, tmux passmenu, texlive 2020
authorMart Lubbers <mart@martlubbers.net>
Fri, 17 Apr 2020 10:38:33 +0000 (12:38 +0200)
committerMart Lubbers <mart@martlubbers.net>
Fri, 17 Apr 2020 10:38:33 +0000 (12:38 +0200)
cal/.config/todoman/todoman.conf
config.h/dwm/config.h
shell/.bashrc
vim/.vim/spell/en.utf-8.add
vim/.vim/spell/en.utf-8.add.spl
x/.local/bin/passmenu [new file with mode: 0755]

index 3ad60b9..e58ff26 100644 (file)
@@ -1,2 +1,7 @@
 [main]
 path = ~/.local/share/vdirsyncer/tasks/default
+humanize = true
+default_list = default
+default_due = 0
+date_format = %Y-%m-%d
+time_format = %H:%M
index 81e60a4..efc9fb1 100644 (file)
@@ -61,8 +61,8 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn()
 static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", font0, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
 static const char *termcmd[]  = { "st", NULL };
 static const char *quitcmd[]  = { "killall", "xinit", NULL };
-static const char *passmenu[]  = { "/usr/share/doc/pass/examples/dmenu/passmenu", "-m", dmenumon, "-fn", font0, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
-static const char *passmenu_type[]  = { "/usr/share/doc/pass/examples/dmenu/passmenu", "--type", "-m", dmenumon, "-fn", font0, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
+static const char *passmenu[]  = { "passmenu", "-m", dmenumon, "-fn", font0, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
+static const char *passmenu_tmux[]  = { "passmenu", "--tmux", "-m", dmenumon, "-fn", font0, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
 static const char *scr[] = { "scr", NULL };
 static const char *scr_sel[] = { "scr", "selection", NULL };
 static const char *lock[] = { "xautolock", "-locknow", NULL };
@@ -78,7 +78,7 @@ static Key keys[] = {
        { MODKEY,           XK_p,      spawn,          {.v = dmenucmd } },
        { MODKEY|ShiftMask, XK_Return, spawn,          {.v = termcmd } },
        { MODKEY,           XK_y,      spawn,          {.v = passmenu } },
-       { MODKEY|ShiftMask, XK_y,      spawn,          {.v = passmenu_type } },
+       { MODKEY|ShiftMask, XK_y,      spawn,          {.v = passmenu_tmux } },
        { MODKEY|ShiftMask, XK_l,      spawn,          {.v = lock } },
        { MODKEY,           XK_b,      togglebar,      {0} },
        { MODKEY,           XK_j,      focusstack,     {.i = +1 } },
index 4457267..29b3d3f 100644 (file)
@@ -24,9 +24,9 @@ export CLEAN_HOME=/opt/clean
 
 export PATH=~/.local/bin:$PATH
 export PATH=$PATH:$CLEAN_HOME/lib/exe:$CLEAN_HOME/bin
-export PATH=$PATH:/opt/texlive/2019/bin/x86_64-linux:/opt/zotero:/opt/arduino:/opt/beets/bin:/opt/firefox
+export PATH=$PATH:/opt/texlive/2020/bin/x86_64-linux:/opt/zotero:/opt/arduino:/opt/beets/bin:/opt/firefox
 
-export MANPATH=~/.local/share/man:/opt/texlive/2019/texmf-dist/doc/man:./arduino/java/man:$MANPATH
+export MANPATH=~/.local/share/man:/opt/texlive/2020/texmf-dist/doc/man:./arduino/java/man:$MANPATH
 
 export GTK_IM_MODULE=xim
 export QT_IM_MODULE=xim
index d8d0f51..94288f3 100644 (file)
@@ -22,3 +22,5 @@ arities
 microcontrollers
 unary
 composable
+deserialization
+tagless
index cff9601..7ca8289 100644 (file)
Binary files a/vim/.vim/spell/en.utf-8.add.spl and b/vim/.vim/spell/en.utf-8.add.spl differ
diff --git a/x/.local/bin/passmenu b/x/.local/bin/passmenu
new file mode 100755 (executable)
index 0000000..1a6f15f
--- /dev/null
@@ -0,0 +1,30 @@
+#!/usr/bin/env bash
+
+shopt -s nullglob globstar
+
+typeit=0
+if [[ $1 == "--type" ]]; then
+       typeit=1
+       shift
+elif [[ $1 == "--tmux" ]]; then
+       typeit=2
+       shift
+fi
+
+prefix=${PASSWORD_STORE_DIR-~/.password-store}
+password_files=( "$prefix"/**/*.gpg )
+password_files=( "${password_files[@]#"$prefix"/}" )
+password_files=( "${password_files[@]%.gpg}" )
+
+password=$(printf '%s\n' "${password_files[@]}" | dmenu "$@")
+
+[[ -n $password ]] || exit
+
+if [[ $typeit -eq 0 ]]; then
+       pass show -c "$password" 2>/dev/null
+elif [[ $typeit -eq 1 ]]; then
+       pass show "$password" | { IFS= read -r pass; printf %s "$pass"; } |
+               xdotool type --clearmodifiers --file -
+else
+       tmux set-buffer "$(pass show "$password")"
+fi