summaryrefslogtreecommitdiff
path: root/nixpkgs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-12-26 22:07:20 +0100
committerAlex Auvolat <alex@adnab.me>2023-12-26 22:07:20 +0100
commitbeae263c50e2b6b596a7b38996bb633308f47977 (patch)
tree15a9b08b34f31055c77109e84ca31d9b503d57cf /nixpkgs
parent9097974443e6ef33879fb1b497d4d6a3e0b2612c (diff)
downloaduser-config-beae263c50e2b6b596a7b38996bb633308f47977.tar.gz
user-config-beae263c50e2b6b596a7b38996bb633308f47977.zip
separate apps for icewm and wayfire/sway
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";
};
}