FSNIPER(5)

πŸ“¦ version 1.3.1, in ubuntu jammy, ubuntu noble

πŸ’– 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 images
  • image/png will 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 (*.jpg for 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 πŸ‘€

πŸ’œ 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