diff options
author | zachir <zachir@librem.one> | 2023-03-12 23:41:33 -0500 |
---|---|---|
committer | zachir <zachir@librem.one> | 2023-03-12 23:41:33 -0500 |
commit | 4c492febf9f0b71e1b47069b2a611940246e7c50 (patch) | |
tree | 723f62e0bd8a38b5f87e6cf409f50dd0885808e9 | |
parent | 22c139c729acb54c24695f5a291e57c4380550a7 (diff) |
update lfrc to launch jnlp with javaws rather than edit
-rw-r--r-- | lf/lfrc | 23 |
1 files changed, 17 insertions, 6 deletions
@@ -9,16 +9,25 @@ set ignorecase true # Custom Functions cmd open ${{ - case $(file --mime-type "$f" -bL) in - text/*|application/json) $EDITOR "$f";; - video/*) mpv "$f";; - audio/*) mpv "$f";; + case $(echo -n $f | rev | cut -d'.' -f1 | rev) in + jnlp) + javaws "$f" + ;; + *) + case $(file --mime-type "$f" -bL) in + text/*|application/json) $EDITOR "$f" ;; + video/*) mpv "$f" ;; + audio/*) mpv "$f" ;; application/pdf) zathura "$f" ;; image/*) nsxiv "$f" ;; *) xdg-open "$f" ;; - esac + esac + ;; + esac }} +cmd execute ${{ exec "$f" }} + cmd mkdir ${{ printf "Directory Name: " read ans @@ -281,7 +290,8 @@ map dl dlfile map ss stripspace # Basic Functions -map . set hidden! +map .. set hidden! +map ./ execute map DD delete map p paste map x cut @@ -303,6 +313,7 @@ map C clear map U unselect # Movement +map g. cd "/home/zachir" ## PATHS map gE. cd "/etc" map gO. cd "/opt" |