You are not logged in.

#1 2019-10-31 13:08:48

clusterF
Member
Registered: 2019-05-07
Posts: 257

script to mount usb drive using fff (f&^king fast file manager)

Not sure if i have this right or not but it is really only used for the terminal based file managers.

dependancies =
fff https://github.com/dylanaraps/fff
devmon via udevil https://igurublog.wordpress.com/downloa … pt-devmon/

could this script be better or not needed at all, im unsure of how to incorporate devmons exec on drive flag using fff instead of spacefm which would negate the use of a script i think and instead just autostart using [[ devmon --exec-on-drive "spacefm %d" ]] (fff in place of spacefm) ??

#!/usr/bin/env bash

media () {
if      pushd /media/ > /dev/null; then
        devmon -a;
        xterm -e "bash -c fff"
fi
}


if      media; then
        popd
fi

basic usage for this would be for my use case, i insert a usb drive, punch in a keyboard shortcut and fff presents itself to /media/ where i can work in using the fff file manager.

Last edited by clusterF (2019-10-31 13:34:12)


"Thou Wanderer, Father of all! Thou Wanderer, Spirit of all!"

Offline

Board footer

Powered by FluxBB