-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Life without user defined mounts sh #1379
Comments
1,3,5: doable but will need extra config options in F9 as not all may like this, question if it worth that? |
1a) show path to FS or path to device instead of type of FS this was default behavior in macOS ( Darwin ) environment IMHO info about FS type gives too little information in Linux and FreeBSD 1b) optionally show path to loop device image IMHO /dev/loop12 gives too little information, that is why "mount" command show path to loop device image ...
IMHO people like me are lazy enough to make unexpected calculations in mind like percentage otherwise, why display percentages in other places like copy dialog or in viewer for example ? ...
one will notice that FS is in read-only mode only after the failure with file saving or copying of the file into this FS does not work whether a person is expected to store this information in his or her working memory ? |
and also
if [ ".${sysname}" = ".Linux" ]; then
AWK_ARG_SRCF='-e'
DF_ARGS='-P -k -T'
MNT_CMN_FILTER='grep -v -e " /proc\(/[\/a-z_]\+\)* " -e " /sys\(/[a-z_,]\+\)* " -e " /dev\(/\(pts\|hugepages\|mqueue\)\)\? " -e " /run/user/\([0-1]\+\)/[a-z][a-z0-9\-]* " -e " /home/\([a-z0-9\._]\+\)/.cache/doc " -e " /var/lib/lxcfs " -e " /tmp/\.\([a-z0-9\._]\+\)_\([a-zA-Z0-9\._]\+\) " -e " /run/snapd/ns\(\(/[a-z][a-z0-9\-]\+\.mnt\)\?\) " -e " /snap/\([a-z][a-z0-9\-]\+\)/\([0-9]\+\) " -e " /var/snap\(\(\/\)\|\(\/[^/]\+\?\)\+\?\) " -e " /run/credentials\(\(\/\)\|\(\/[^/]\+\?\)\+\?\) "'
MNT_USR_FILTER='grep -v -e " /dev\(/\(shm\|foo\|bar\)\)\? " -e " /run\(/\(lock\|rpc_pipefs\|foo\|bar\)\)\? "'
DF_CMN_FILTER='grep -v -e " /dev\(/\(foo\|bar\)\)\?$" -e " /run\(/\(foo\|bar\)\)\?$"'
DF_USR_FILTER='grep -v -e " /opt\(/\(shm\|foo\|bar\)\)\?$" -e " /run\(/\(lock\|foo\|bar\)\)\?$" -e " /net$"'
FT_HEADER='Filesystem Type 1K-blocks Used Available Use%% Mounted_on Mount_options'
fi
if [ ".${sysname}" = ".FreeBSD" ]; then
AWK_ARG_SRCF=''
DF_ARGS='-P -k'
MNT_CMN_FILTER='grep -v -e " \(/[a-z]\+\)*/dev/foo "'
MNT_USR_FILTER='grep -v -e " /opt\(/\(foo\|bar\)\)\? "'
DF_CMN_FILTER='grep -v -e " /dev\(/\(foo\|bar\)\)\?$"'
DF_USR_FILTER='grep -v -e " /opt\(/\(foo\|bar\)\)\?$" -e " /net$" -e " /home$"'
FT_HEADER='Filesystem Type 1K-blocks Used Avail Capacity Mounted_on Mount_options'
fi
if [ ".${sysname}" = ".Darwin" ]; then
DF_ARGS='-P -k'
AWK_ARG_SRCF=''
MNT_CMN_FILTER='grep -v -e " /dev " -e " /private/var/\(vm\|folders\)\(\(\/\)\|\(\/[^/]\+\)\+\) " -e " /System/Volumes\(\(\/\)\|\(\/[^/]\+\)\+\) "'
MNT_USR_FILTER='grep -v -e " /opt\(/\(foo\|bar\)\)\? " -e " /net " -e " /home "'
DF_CMN_FILTER='grep -v -e " /private/var/\(vm\|folders\)\(\(\/\)\|\(\/[^/]\+\)\+\)$" -e " /System/Volumes\(\(\/\)\|\(\/[^/]\+\)\+\)$"'
DF_USR_FILTER='grep -v -e " /opt\(/\(foo\|bar\)\)\?$" -e " /net$" -e " /home$"'
FT_HEADER='Filesystem 1024-blocks Used Available Capacity Mounted_on Mount_options'
fi
|
Now mountpoints are much more customizeable - press F9 key in Alt+F1/2 menu and then press F1. |
1a - done 1b - workaround with shell scripting exists, needs testing and some thought 3 - works 5 - works 2,4,6 - needs testing |
so, may close now? |
wait a moment, please, i need to test last changes |
there is a minor inconsistency in formatting of values in 2nd column ( from 3 to 5 symbols with last version ) i use this setting for 2nd column - "$U $T $u%" same with default setting - "$U/$T" FAR2L, version 2.4.0-6af0746e-beta Linux x86_64 before changes
FAR2L, version 2.4.1-c42eba33-beta Linux x86_64 after changes
|
2,4 testing my "favorites" file
result
|
3rd column in my settings - "$S $N > $D" |
Exceptions list can have this value by default
What do you think ? |
/usr/local;/usr/lib/modules looks not good to be default others ok |
now you can use |
Thanks ! |
How I can get back my features in user defined "~/.config/far2l/mounts.sh" ?
Features list
show path to FS or path to device instead of type of FS, optionally show path to loop device image
path can be non-absolute in "${HOME}/.config/far2l/favorites", ' ~ ' should point to home directory of current user and possibility to use environment variables like this "~/various/${my_env_var}/subdir"
optionally show use percentage in disk list with other delimiter than "/", i guess that "blank space" is better delimiter when there are more than 2 columns like in "df" an "mount" output
optionally show used disk space for some paths in favorites
show read-write/read-only status of mounted FS ( ' - ' before FS )
"/mnt/backup" is mounted read-only
FAR2L, version 2.4.0-6af0746e-beta Linux x86_64
before changes
FAR2L, version 2.4.1-a2ece888-beta Linux x86_64
after changes
The text was updated successfully, but these errors were encountered: