My build of nnn with minor changes
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

17 lignes
549 B

  1. #!/usr/bin/env bash
  2. # Description: Send the selected files to your Android device using kdeconnect-cli. You must have installed and configured kdeconnect both on the Android device and on the PC.
  3. #
  4. # Shell: Bash
  5. # Author: juacq97
  6. id=$(kdeconnect-cli -a --id-only | awk '{print $1}')
  7. if [ $(find ~/.nnncp) ]
  8. then
  9. kdeconnect-cli -d $id --share $(cat ~/.nnncp)
  10. # If you want a system notification, uncomment the next 3 lines.
  11. # notify-send -a "Kdeconnect" "Sending $(cat ~/.nnncp)"
  12. #else
  13. # notify-send -a "Kdeconnect" "No file selected"
  14. fi