diff options
| author | 2020-04-24 10:12:24 +0530 | |
|---|---|---|
| committer | 2020-04-24 18:12:18 +0530 | |
| commit | bc572df55a35cc738466996abe26339fc5acaeda (patch) | |
| tree | 3798d449e971b9265a79a901ccc8b7ca37dd5f8d /plugins/kdeconnect | |
| parent | 752bc67de03d158ece3f0fb43f6f2a3e6b2011b9 (diff) | |
| download | nnn-bc572df55a35cc738466996abe26339fc5acaeda.tar.gz | |
NNN_SEL: custom selection file
Diffstat (limited to 'plugins/kdeconnect')
| -rwxr-xr-x | plugins/kdeconnect | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/kdeconnect b/plugins/kdeconnect index 9ee2e60..f1cfd95 100755 --- a/plugins/kdeconnect +++ b/plugins/kdeconnect @@ -5,13 +5,13 @@ # Shell: POSIX compliant # Author: juacq97 -SELECTION=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection +selection=${NNN_SEL:-${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection} id=$(kdeconnect-cli -a --id-only | awk '{print $1}') -if [ "$(find "$SELECTION")" ]; then - kdeconnect-cli -d "$id" --share "$(cat "$SELECTION")" +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 "$SELECTION")" +# notify-send -a "Kdeconnect" "Sending $(cat "$selection")" #else # notify-send -a "Kdeconnect" "No file selected" fi |