scripts

random scripts
git clone https://git.parazyd.org/scripts
Log | Files | Refs

dmenussh (340B)


      1 #!/bin/sh
      2 #
      3 # parayzd - (c) wtfpl 2017
      4 # spawn st and run an ssh sesstion
      5 
      6 normfg="#939393"
      7 normbg="#000000"
      8 selbg="#49d700"
      9 selfg="#000000"
     10 
     11 heightfit=30
     12 
     13 srv="$(ls -1 ~/.ssh/*.pub | \
     14 	dmenu -i \
     15 		-nb $normbg \
     16 		-nf $normfg \
     17 		-sb $selbg \
     18 		-sf $selfg \
     19 		-l $heightfit)"
     20 
     21 
     22 [ -n "$srv" ] && cat "$srv" | xclip -i -selection clipboard