Browse Source

Organize sensitive info. Add some insesitive info.

master
SolitudeSF 7 months ago
parent
commit
61a13a740f
No known key found for this signature in database
4 changed files with 8 additions and 4 deletions
  1. 1
    1
      bin/agent-init
  2. 2
    2
      bin/mpw-get
  3. 4
    0
      bspwm
  4. 1
    1
      ntr/templates/polybar

+ 1
- 1
bin/agent-init View File

@@ -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

+ 2
- 2
bin/mpw-get View File

@@ -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)) {
} 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
- 0
bspwm View File

@@ -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

+ 1
- 1
ntr/templates/polybar View File

@@ -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