-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMimeo.txt
56 lines (42 loc) · 1.87 KB
/
Mimeo.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
====== Mimeo ======
Created søndag 04 december 2016
//Xdg-utils//** does not work without a Desktop Environment. We'll be using a tool that makes **//xdg-open//** fall back to something working with just a Window Manager - **//mimeo//**. **
== Installation ==
**# NOTE! I had to skip the PGP check, but this might have changed**
$ yaourt --m-arg --skippgpcheck -Sb xdg-utils-mimeo
**# You might have to import their GPG key**
$ gpg --recv-keys --keyserver hkp://pgp.mit.edu 1D1F0DC78F173680
== Get mime-type ==
**# Ex, to determine filetype for a file called **//photo.jpg//
$ mimeo -m photo.jpg
**# Should return something like **//image/jpeg//
== Get default application for mime-type ==
**# You can either point to a file**
$ mimeo -d photo.jpg
**# Or the mime-type**
$ mimeo -d image/jpeg
== Change default application ==
**# The default applications to choose from can be found in **///usr/share/applications///
**# To change the default application for a mime-type**
$ mimeo --add image/jpeg feh.desktop
== Open Application ==
**# You can open a item with your default application**
$ mimeo photo.jpg
== A little to get you started^ ==
**# Images; Feh/jpg/png/gif**
$ mimeo --add image/jpeg feh.desktop
$ mimeo --add image/png feh.desktop
$ mimeo --add image/gif feh.desktop
**# Video; Mplayer/ogg/mp4/webm**
$ mimeo --add video/ogg mplayer.desktop
$ mimeo --add video/mp4 mplayer.desktop
$ mimeo --add video/webm mplayer.desktop
**# Text; Gvim/plain, Mupdf/pdf**
$ mimeo --add text/plain gvim.desktop
$ mimeo --add application/pdf mupdf.desktop
**# Devel; Sublime/html/php/css/javascript/markdown**
$ mimeo --add text/html sublime_text_3.desktop
$ mimeo --add application/x-php sublime_text_3.desktop
$ mimeo --add text/css sublime_text_3.desktop
$ mimeo --add application/javascript sublime_text_3.desktop
$ mimeo --add text/markdown sublime_text_3.desktop