FSNIPER(5)
π FSNIPER(5) π
okay bestie, so this is the manual page for FSNIPER(5) β the configuration file format one, not the command one, iykyk. Let's get into it β¨
β¨ NAME β¨
$HOME/.config/fsniper/config β the user configuration file for fsniper(1). that's the whole vibe. that's the file. π
πΈ DESCRIPTION πΈ
so when you launch fsniper(1), it reads this file. it's a C-style configuration file, no cap. π«Ά
the file begins with a watch section. β¨
then, every subsection inside that is a directory to watch. like, one subsection per directory, okay? π
under that, each subsection is a filter for file to apply a rule. there are 2 types of filters, and you gotta know both:
π¦ MIME-Type filters
image/*will apply the rule only on imagesimage/pngwill apply the rule only on png images
literally it's giving "pick your type." π
π Name filters
β Wildcards
*name*β match on name with regular wildcard. or on extension (*.jpgfor example)
π Regular Expressions
/regex/β match on name with the regex given.
the last section is the start of the rule, and its format is:
handler = command to apply
the command can be any shell command. to get the file name, use %% π₯
Example:
handler = echo %%
π heads up bestie: the %% is how the file name gets dropped into your command. don't forget it or your handler is just out here vibing with no file. π
π SEE ALSO π
/usr/share/doc/fsniper/examples/example.conf- <http://code.l3ib.org/?p=fsniper.git;a=blob_plain;f=doc/doc.txt>
fsniper(1)
π AUTHOR π
this manual page was written by Tanguy Herrmann <dolanor@evereska.org>, for the Ubuntu GNU/Linux system (but may be used by others). iconic behavior, honestly. πΈ
and that's the whole page, bestie!! π₯³ this was Configuration file format, dated January 2009, and you just read FSNIPER(5). slay, go configure something. πβ¨ππ¦
π¦ where this page comes from
- ubuntu jammy: fsniper 1.3.1-0ubuntu5 Β· GPL-3.0-or-later
- ubuntu noble: fsniper 1.3.1-0ubuntu7 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms