From beae263c50e2b6b596a7b38996bb633308f47977 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 26 Dec 2023 22:07:20 +0100 Subject: separate apps for icewm and wayfire/sway --- nixpkgs/icewm.nix | 7 +++++++ nixpkgs/wayfire.nix | 7 +++++++ nixpkgs/wmonly.nix | 12 +++++++----- 3 files changed, 21 insertions(+), 5 deletions(-) (limited to 'nixpkgs') 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"; }; } -- cgit v1.2.3