diff --git a/mutt/xdg-utils.txt b/mutt/xdg-utils.txt new file mode 100644 index 0000000..2099f11 --- /dev/null +++ b/mutt/xdg-utils.txt @@ -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 + diff --git a/xinitrc b/xinitrc index a61817e..8808c8f 100644 --- a/xinitrc +++ b/xinitrc @@ -4,4 +4,5 @@ xsetroot -cursor_name left_ptr xbindkeys & +slack & exec i3 diff --git a/zprofile b/zprofile index 2319699..9a442d7 100644 --- a/zprofile +++ b/zprofile @@ -1,2 +1 @@ -gpg2 --quiet --no-tty --batch -d /home/paul/.mutt/passwords/dumb.gpg > /dev/null -systemctl --user start offlineimap > /dev/null +gpg2 --quiet --no-tty --batch -d $HOME/.mutt/passwords/dumb.gpg > /dev/null