You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
377 B
13 lines
377 B
#!/usr/bin/env elvish |
|
t="" |
|
if (eq 0 (count $args)) { |
|
sites=[(keys (cat ~/.mpw.d/SolitudeSF.mpsites.json | from-json)[sites])] |
|
if (eq ?(tty -s) $ok) { |
|
t=(echo &sep="\n" $@sites | fzy) |
|
} else { |
|
t=(echo &sep="\n" $@sites | rofi -dmenu -p 'Enter site: ' -width 25) |
|
} |
|
} else { |
|
t=$args[0] |
|
} |
|
mpw -t x -M (gpg2 -d -q ~/.password.gpg) $t 2>/dev/null | xclip -sel c -r
|
|
|