diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2019-04-21 23:59:51 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2019-04-21 23:59:51 +0530 |
commit | a900b2c4fa928de32c30943029ccd4b67c4b7ee9 (patch) | |
tree | 480c94e5017b4891b1a16e4d9134816fd44c4d16 /plugins/kdeconnect | |
parent | f9264577d295be0ccb788224e677e4615e53f843 (diff) | |
download | nnn-a900b2c4fa928de32c30943029ccd4b67c4b7ee9.tar.gz |
Support config dir ~/.config/nnn
Diffstat (limited to 'plugins/kdeconnect')
-rwxr-xr-x | plugins/kdeconnect | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/kdeconnect b/plugins/kdeconnect index 0fbafbb..a209f55 100755 --- a/plugins/kdeconnect +++ b/plugins/kdeconnect @@ -5,11 +5,13 @@ # Shell: POSIX compliant # Author: juacq97 +SELECTION=~/.config/nnn/.selection + id=$(kdeconnect-cli -a --id-only | awk '{print $1}') -if [ "$(find ~/.nnncp)" ]; then - kdeconnect-cli -d "$id" --share "$(cat ~/.nnncp)" +if [ "$(find "$SELECTION")" ]; then + kdeconnect-cli -d "$id" --share "$(cat "$SELECTION")" # If you want a system notification, uncomment the next 3 lines. -# notify-send -a "Kdeconnect" "Sending $(cat ~/.nnncp)" +# notify-send -a "Kdeconnect" "Sending $(cat "$SELECTION")" #else # notify-send -a "Kdeconnect" "No file selected" fi |