sopen

Suckless mimeopen alternative
git clone git://pollux.codes/git/sopen.git
Log | Files | Refs | README | LICENSE

config.def.h (384B)


      1 
      2 static const Rule rules[] = {
      3 
      4 	/* Format: 
      5 	 * url regex, mime type regex, program */
      6 
      7 	/* Documents */
      8 	{"", "application/pdf", "zathura"},
      9 
     10 	/* Images */
     11 	{"", "^image", "imv"},
     12 
     13 	/* Audio/Video */
     14 	{"", "^(audio|video)", "mpv"},
     15 	{"^https?://youtube.com", "", "mpv"},
     16 	{"^http.*\\.mp3$", "", "mpv"},
     17 
     18 	/* Text */
     19 	{"", "^text", "nvim"},
     20 
     21 	/* Web */
     22 	{"^http", "", "firefox"},
     23 };