master
Paul Walko 2017-10-24 20:32:05 -04:00
parent 7d3c089170
commit e301a3ff51
3 changed files with 26 additions and 2 deletions

24
mutt/xdg-utils.txt Normal file
View File

@ -0,0 +1,24 @@
xdg-utils
xdg-utils provides the official utilities for managing MIME types and default applications according to the #XDG standard. Most importantly, it provides /usr/bin/xdg-open which many applications use to open a file with its default application. It is desktop-environment-independent in the sense that it attempts to use each environment's native default application tool and provides its own mechanism if no known environment is detected. Examples:
# determine a file's MIME type
$ xdg-mime query filetype photo.jpeg
image/jpeg
# determine the default application for a MIME type
$ xdg-mime query default image/jpeg
gimp.desktop
# change the default application for a MIME type
$ xdg-mime default feh.desktop image/jpeg
# open a file with its default application
$ xdg-open photo.jpeg
# shortcut to open all web MIME types with a single application
$ xdg-settings set default-web-browser firefox.desktop
# shortcut for setting the default application for a URL scheme
$ xdg-settings set default-url-scheme-handler irc xchat.desktop

View File

@ -4,4 +4,5 @@
xsetroot -cursor_name left_ptr xsetroot -cursor_name left_ptr
xbindkeys & xbindkeys &
slack &
exec i3 exec i3

View File

@ -1,2 +1 @@
gpg2 --quiet --no-tty --batch -d /home/paul/.mutt/passwords/dumb.gpg > /dev/null gpg2 --quiet --no-tty --batch -d $HOME/.mutt/passwords/dumb.gpg > /dev/null
systemctl --user start offlineimap > /dev/null