diff --git a/users/rouven/modules/accounts/default.nix b/users/rouven/modules/accounts/default.nix index 143f608..e875fda 100644 --- a/users/rouven/modules/accounts/default.nix +++ b/users/rouven/modules/accounts/default.nix @@ -275,6 +275,6 @@ in }; }; home.file.".urlview".text = '' - COMMAND google-chrome-stable %s &> /dev/null + COMMAND qutebrowser %s &> /dev/null ''; } diff --git a/users/rouven/modules/accounts/powerline.neomuttrc b/users/rouven/modules/accounts/powerline.neomuttrc index 9ffea48..8c3c284 100644 --- a/users/rouven/modules/accounts/powerline.neomuttrc +++ b/users/rouven/modules/accounts/powerline.neomuttrc @@ -14,7 +14,7 @@ set attach_format = "%u%D  %T%-75.75d %?T?%& ? %5s · %m/%M" set to_chars="➜" # unchanged mailbox, changed, read only, attach mode set status_chars = " " -ifdef crypt_chars set crypt_chars = " " +ifdef crypt_chars set crypt_chars = " " set flag_chars = " " set hidden_tags = "unread,draft,flagged,passed,replied,attachment,signed,encrypted" diff --git a/users/rouven/modules/packages.nix b/users/rouven/modules/packages.nix index fe62d6a..2cf3175 100644 --- a/users/rouven/modules/packages.nix +++ b/users/rouven/modules/packages.nix @@ -51,5 +51,25 @@ libyubikey libfido2 ]; + xdg.mimeApps = { + enable = true; + defaultApplications = + let + image-viewers = [ "imv.desktop" "gimp.desktop" "swappy.desktop" "org.qutebrowser.qutebrowser.desktop" "google-chrome.desktop" ]; + browsers = [ "org.qutebrowser.qutebrowser.desktop" "google-chrome.desktop" ]; + in + { + "application/pdf" = [ "org.gnome.Evince.desktop" ]; + "image/png" = image-viewers; + "image/jpg" = image-viewers; + "image/jpeg" = image-viewers; + "image/tiff" = image-viewers; + "image/gif" = image-viewers; + "image/webp" = image-viewers; + "image/ico" = image-viewers; + "x-scheme-handler/http" = browsers; + "x-scheme-handler/https" = browsers; + }; + }; }