summaryrefslogtreecommitdiff
path: root/nixpkgs/wmonly.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/wmonly.nix')
-rw-r--r--nixpkgs/wmonly.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/nixpkgs/wmonly.nix b/nixpkgs/wmonly.nix
new file mode 100644
index 0000000..7096c69
--- /dev/null
+++ b/nixpkgs/wmonly.nix
@@ -0,0 +1,20 @@
+{ pkgs, ... }: {
+ home.packages = with pkgs; [ xfce.tumbler ];
+
+ xdg.desktopEntries.llpp = {
+ name = "llpp";
+ genericName = "PDF viewer";
+ exec = "llpp %f";
+ terminal = false;
+ categories = [ "Graphics" "Viewer" ];
+ mimeType = [ "application/pdf" "application/x-pdf" ];
+ type = "Application";
+ };
+ xdg.mimeApps.enable = true;
+ xdg.mimeApps.defaultApplications = {
+ "application/pdf" = [ "epdfview.desktop" ];
+ "image/jpeg" = [ "org.xfce.ristretto.desktop" ];
+ "image/png" = [ "org.xfce.ristretto.desktop" ];
+ "text/plain" = [ "leafpad.desktop" ];
+ };
+}