diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-07-16 13:57:09 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-07-16 14:03:12 +0530 |
commit | 3eb462c992e9612e3571b17269dda290f391cda6 (patch) | |
tree | fb45c60e7e047e86118ec6fd8ff7de22b8e46d73 /home/wayland/modules | |
parent | 33b833758f44f94ee9c69ffc7b235cfb8a4d49a5 (diff) |
home/wayland/ttyasrt: init
Diffstat (limited to 'home/wayland/modules')
-rw-r--r-- | home/wayland/modules/ttyasrt.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/home/wayland/modules/ttyasrt.nix b/home/wayland/modules/ttyasrt.nix new file mode 100644 index 0000000..ba9a2c5 --- /dev/null +++ b/home/wayland/modules/ttyasrt.nix @@ -0,0 +1,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"; + }; + }; +} |