summaryrefslogtreecommitdiff
path: root/nixpkgs
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs')
-rw-r--r--nixpkgs/icewm.nix7
-rw-r--r--nixpkgs/wayfire.nix7
-rw-r--r--nixpkgs/wmonly.nix12
3 files changed, 21 insertions, 5 deletions
diff --git a/nixpkgs/icewm.nix b/nixpkgs/icewm.nix
index 225c8fc..6bb963c 100644
--- a/nixpkgs/icewm.nix
+++ b/nixpkgs/icewm.nix
@@ -49,4 +49,11 @@
};
home.packages = with pkgs; [ chicago95 ];
+
+ xdg.mimeApps.defaultApplications = {
+ "application/pdf" = [ "epdfview.desktop" ];
+ "image/jpeg" = [ "org.xfce.ristretto.desktop" ];
+ "image/png" = [ "org.xfce.ristretto.desktop" ];
+ "text/plain" = [ "leafpad.desktop" ];
+ };
}
diff --git a/nixpkgs/wayfire.nix b/nixpkgs/wayfire.nix
index 3824327..b0e26b7 100644
--- a/nixpkgs/wayfire.nix
+++ b/nixpkgs/wayfire.nix
@@ -9,4 +9,11 @@
".config/sway/config".source = ../sway/config;
};
+
+ xdg.mimeApps.defaultApplications = {
+ "application/pdf" = [ "org.gnome.Evince.desktop" ];
+ "image/jpeg" = [ "org.gnome.eog.desktop" ];
+ "image/png" = [ "org.gnome.eog.desktop" ];
+ "text/plain" = [ "org.gnome.gedit.desktop" ];
+ };
}
diff --git a/nixpkgs/wmonly.nix b/nixpkgs/wmonly.nix
index 7096c69..fbc5324 100644
--- a/nixpkgs/wmonly.nix
+++ b/nixpkgs/wmonly.nix
@@ -10,11 +10,13 @@
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" ];
+
+ home.sessionVariables = {
+ XMODIFIERS = "@im=fcitx";
+ XMODIFIER = "@im=fcitx";
+ GTK_IM_MODULE = "fcitx";
+ QT_IM_MODULE = "fcitx";
};
}