Browse Source

Organize sensitive info. Add some insesitive info.

master
SolitudeSF 3 years ago
parent
commit
61a13a740f
No known key found for this signature in database
GPG Key ID: 789B06817C385387
  1. 2
      bin/agent-init
  2. 4
      bin/mpw-get
  3. 4
      bspwm
  4. 2
      ntr/templates/polybar

2
bin/agent-init

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
#!/bin/sh
echo "What the heck? :---DD"
printf %s "$(mpw -t x gpg 2>/dev/null)" | xclip -sel c -l 1
gpg2 -d -q "$HOME/.password.gpg" | xclip -l 1
gpg2 -d -q "$HOME/sns/password.gpg" | xclip -l 1
mpw -t x ssh -M "$(xclip -o)" 2>/dev/null | xclip -sel c -l 1
ssh-add

4
bin/mpw-get

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
#!/usr/bin/env elvish
t=""
if (eq 0 (count $args)) {
sites=[(keys (cat ~/.mpw.d/SolitudeSF.mpsites.json | from-json)[sites])]
@sites=(keys (from-json <~/.mpw.d/(get-env MPW_FULLNAME).mpsites.json)[sites])
if (eq ?(tty -s) $ok) {
t=(echo &sep="\n" $@sites | fzy)
} else {
@ -10,4 +10,4 @@ if (eq 0 (count $args)) { @@ -10,4 +10,4 @@ if (eq 0 (count $args)) {
} else {
t=$args[0]
}
mpw -t x -M (gpg2 -d -q ~/.password.gpg) $t 2>/dev/null | xclip -sel c -r
mpw -t x -M (gpg2 -d -q ~/sns/password.gpg) $t 2>/dev/null | xclip -sel c -r

4
bspwm

@ -14,3 +14,7 @@ bspc rule -a Firefox desktop='^2' @@ -14,3 +14,7 @@ bspc rule -a Firefox desktop='^2'
bspc rule -a mpv state=floating
bspc rule -a Peek state=floating
bspc rule -a kittyfloat state=floating
bspc rule -a 'labview' state=floating
bspc rule -a 'Matlab-GLEE' state=floating
bspc rule -a 'MATLAB R2018b' state=floating

2
ntr/templates/polybar

@ -76,7 +76,7 @@ format-online = <label-song> <toggle> <icon-prev> <icon-next> @@ -76,7 +76,7 @@ format-online = <label-song> <toggle> <icon-prev> <icon-next>
[module/github]
type = internal/github
token = ${file:<{$HOME}>/.github}
token = ${file:<{$HOME}>/sns/github.key}
empty-notifications = false
interval = 10
format = <label>

Loading…
Cancel
Save