summaryrefslogtreecommitdiff
path: root/home/wayland/modules/ttyasrt.nix
blob: ba9a2c56d3fc6177371bc8d0077bb15f094e477f (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
{ pkgs, ... }: let
  wayland-scripts = pkgs.callPackage ../pkgs/wayland-scripts {};
  ttyasrt = "${wayland-scripts}/bin/ttyasrt";
in {
  home.packages = [ wayland-scripts ];

  xdg.desktopEntries = {
    "nnn".settings = {
      Type = "Application";
      Name = "nnn";
      Comment = "Terminal file manager";
      TryExec = "nnn";
      Exec = "${ttyasrt} nnn -decC";
      Icon = "nnn";
      MimeType = "inode/directory";
      Categories = "System;FileTools;FileManager";
      Keywords = "File;Manager;Management;Explorer;Launcher";
    };

    "nvim".settings = {
      Name = "Neovim wrapper";
      GenericName = "Text Editor";
      Comment = "Edit text files";
      TryExec = "nvim";
      Exec = "${ttyasrt} nvim %F";
      Type = "Application";
      Keywords = "Text;editor;";
      Icon = "nvim";
      Categories = "Utility;TextEditor;";
      StartupNotify = "false";
      MimeType = "text/plain";
    };
  };
}