My build of nnn with minor changes
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

5 年前
1234567891011121314151617
  1. #!/usr/bin/env sh
  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: POSIX compliant
  5. # Author: juacq97
  6. SELECTION=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection
  7. id=$(kdeconnect-cli -a --id-only | awk '{print $1}')
  8. if [ "$(find "$SELECTION")" ]; then
  9. kdeconnect-cli -d "$id" --share "$(cat "$SELECTION")"
  10. # If you want a system notification, uncomment the next 3 lines.
  11. # notify-send -a "Kdeconnect" "Sending $(cat "$SELECTION")"
  12. #else
  13. # notify-send -a "Kdeconnect" "No file selected"
  14. fi