summaryrefslogtreecommitdiff
path: root/nixpkgs/wmonly.nix
blob: ef0828942e992197633ebc7706ac068e301f6ed9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ 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;

  home.sessionVariables = {
    XMODIFIERS = "@im=fcitx";
    XMODIFIER = "@im=fcitx";
    GTK_IM_MODULE = "fcitx";
    QT_IM_MODULE = "fcitx";
  };

  home.file = {
    ".config/waybar/config".source = ../waybar/config;
    ".config/waybar/style.css".source = ../waybar/style.css;
    ".config/sway/config".source = ../sway/config;
    ".config/wayfire.ini".source = ../wayfire/wayfire.ini;
  };

  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" ];
  };
}