Keep your work and personal files seperate on the same machine without seperate user
Copy work-mode.json
to ~/.work-mode.json
or ~/.config/work-mode.json
. see here for a video on how to add a folder to be shadowed
Replace default directories in the config file with directories you want to have images for
./work-mode.js on
when you start work
./work-mode.js off
when you end work
dd
mkfs
mount
work-mode
mounts .img
files on top of existing personal directories, effectively shadowing their contents.
For example, if Downloads
is in your work-mode.json
, then a coresponding .img file will be mounted at Downloads
when work-mode on
is called, effectively hiding all of your personal downloads. Then when work-mode off
is called, the img will be unmounted, revealing the personal contents again.
As a developer, there is a lot of configuration and software that should be shared between a work and personal computing environment. Keeping seperate users and user directories for the two environments will lead to duplication of that configuration.