Advertisement
constantin-net

sd1.sh

Feb 17th, 2020
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.33 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. result=""
  4. if [[ -n "$1" ]]; then
  5.     result="`sdcv -n -u dictd_www.mova.org_sokrat_enru $1 | head -n6 | tail -n1`"
  6. else
  7.     exit
  8. fi
  9. command=`cat <<EOF
  10. local naughty = require("naughty")
  11. naughty.notify({ position = "top_right", title = "$1", text = "${result}" })
  12. EOF
  13. `
  14. echo "${command}" | awesome-client
  15. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement