项目作者: RaitaroH

项目描述 :
Send sms through kdeconnect-cli and fzf
高级语言:
项目地址: git://github.com/RaitaroH/ksms.git
创建时间: 2019-01-26T17:31:40Z
项目社区:https://github.com/RaitaroH/ksms

开源协议:GNU General Public License v3.0

下载


ksms

I’ve seen other stuff on github and they are bloat. Here is how you do it really nice and easy.

Dependencies:

  • kdeconnect (duh)
  • fzf or dmenu or rofi. I used fzf here
  • contacts file that looks like this NAME +123456789.

You will also need to run kdeconnect-cli -l to get the id that is going to be placed in the code bellow. This code is a function you can through in a script or in your .bashrc, .zshrc etc.

  1. ksms() {
  2. number=`cat ~/Documents/contacts | fzf | cut -d '+' -f2 | tr -d '\n'`
  3. kdeconnect-cli --device "YOUR_ID_HERE" --send-sms "$@" --destination "$number"
  4. }

Usage: ksms "message" then fzf will let you choose a number. And that’s about it. Real simple, no building, no sudo no nothing.