about summary refs log tree commit diff stats
path: root/home-manager/config/lf/default.nix
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-03-12 01:29:28 +0100
committerene <ene@sils.li>2023-03-12 01:29:28 +0100
commit59e6edd4fd818c60ca4ea416ae4d23163254dfa5 (patch)
treeed5454eb07365377b4ab3ff6011b3ce250fbd9cc /home-manager/config/lf/default.nix
parentFix(hm/conf/lf): Reduce wrong mappings (diff)
downloadnixos-config-59e6edd4fd818c60ca4ea416ae4d23163254dfa5.tar.gz
nixos-config-59e6edd4fd818c60ca4ea416ae4d23163254dfa5.zip
Fix(hm/conf/lf): Rewrite some of the cmds
Diffstat (limited to '')
-rw-r--r--home-manager/config/lf/default.nix180
1 files changed, 86 insertions, 94 deletions
diff --git a/home-manager/config/lf/default.nix b/home-manager/config/lf/default.nix
index f41e3b24..0a08d99c 100644
--- a/home-manager/config/lf/default.nix
+++ b/home-manager/config/lf/default.nix
@@ -59,77 +59,51 @@ in {
     enable = true;
 
     commands = {
-      help = shell {
-        file = ./cmds/help.sh;
-        dependencies = [];
-      };
-      open = shell {
-        file = ./cmds/open.sh;
-        dependencies = builtins.attrValues {inherit (pkgs) file xdg-utils;};
-      };
-      mk_dir = pipe {
-        file = ./cmds/mk_dir.sh;
-        dependencies = [];
-      };
-      mk_scr = shell {
-        file = ./cmds/mk_scr.sh;
-        dependencies = [];
-      };
-      mk_file = shell {
-        file = ./cmds/mk_file.sh;
-        dependencies = [];
-      };
-      chmod = pipe {
-        file = ./cmds/chmod.sh;
-        dependencies = [];
-      };
-      mk_ln = pipe {
-        file = ./cmds/mk_ln.sh;
-        dependencies = [];
-      };
-      sudo_mk_file = shell {
-        file = ./cmds/sudo_mk_file.sh;
-        dependencies = [];
-      };
-      set_wall_paper = pipe {
-        file = ./cmds/set_wall_paper.sh;
-        dependencies = [];
-      };
-      fzf_jump = shell {
-        file = ./cmds/fzf_jump.sh;
+      archive = shell {
+        file = ./cmds/archive;
         dependencies = builtins.attrValues {
-          inherit (pkgs) fzf;
+          inherit
+            (pkgs)
+            fzf
+            gnutar
+            xz
+            p7zip
+            zip
+            ;
         };
       };
       broot_jump = shell {
-        file = ./cmds/broot_jump.sh;
+        file = ./cmds/broot_jump;
         dependencies = builtins.attrValues {
           inherit (pkgs) broot;
         };
       };
-      open_config = shell {
-        file = ./cmds/open_config.sh;
+      chmod = pipe {
+        file = ./cmds/chmod;
+        dependencies = [];
+      };
+      clear_trash = shell {
+        file = ./cmds/clear_trash;
         dependencies = builtins.attrValues {
-          #inherit
-          #(pkgs)
-          ## TODO rewrite this:  bookmenu, https://github.com/jarun/buku
-          #
-          #buku
-          #;
+          inherit
+            (pkgs)
+            fzf
+            trashy
+            ;
         };
       };
-
-      dragon = pipe {
-        file = ./cmds/dragon.sh;
+      dl_file = pipe {
+        file = ./cmds/dl_file;
         dependencies = builtins.attrValues {
           inherit
             (pkgs)
             xdragon
+            curl
             ;
         };
       };
-      dragon_stay = pipe {
-        file = ./cmds/dragon_stay.sh;
+      dragon = pipe {
+        file = ./cmds/dragon;
         dependencies = builtins.attrValues {
           inherit
             (pkgs)
@@ -138,7 +112,7 @@ in {
         };
       };
       dragon_individual = pipe {
-        file = ./cmds/dragon_individual.sh;
+        file = ./cmds/dragon_individual;
         dependencies = builtins.attrValues {
           inherit
             (pkgs)
@@ -146,78 +120,96 @@ in {
             ;
         };
       };
-      dl_file = pipe {
-        file = ./cmds/dl_file.sh;
+      dragon_stay = pipe {
+        file = ./cmds/dragon_stay;
         dependencies = builtins.attrValues {
           inherit
             (pkgs)
             xdragon
-            curl
             ;
         };
       };
-
-      unarchive = pipe {
-        file = ./cmds/unarchive.sh;
+      fzf_jump = shell {
+        file = ./cmds/fzf_jump;
         dependencies = builtins.attrValues {
-          inherit
-            (pkgs)
-            gnutar
-            unzip
-            # TODO this is unfree! unrar
-
-            p7zip
-            ;
+          inherit (pkgs) fzf;
         };
       };
-      archive = pipe {
-        file = ./cmds/archive.sh;
+      help = shell {
+        file = ./cmds/help;
+        dependencies = [];
+      };
+      mk_dir = pipe {
+        file = ./cmds/mk_dir;
+        dependencies = [];
+      };
+      mk_file = shell {
+        file = ./cmds/mk_file;
+        dependencies = [];
+      };
+      mk_ln = pipe {
+        file = ./cmds/mk_ln;
+        dependencies = [];
+      };
+      mk_scr = shell {
+        file = ./cmds/mk_scr;
+        dependencies = [];
+      };
+      open = shell {
+        file = ./cmds/open;
+        dependencies = builtins.attrValues {inherit (pkgs) file xdg-utils;};
+      };
+      open_config = shell {
+        file = ./cmds/open_config;
         dependencies = builtins.attrValues {
-          inherit
-            (pkgs)
-            fzf
-            gnutar
-            xz
-            p7zip
-            zip
-            ;
+          #inherit
+          #(pkgs)
+          ## TODO rewrite this:  bookmenu, https://github.com/jarun/buku
+          #
+          #buku
+          #;
         };
       };
-
-      trash = pipe {
-        file = ./cmds/trash.sh;
+      restore_trash = shell {
+        file = ./cmds/restore_trash;
         dependencies = builtins.attrValues {
           inherit
             (pkgs)
+            fzf
             trashy
             ;
         };
       };
-      clear_trash = pipe {
-        file = ./cmds/clear_trash.sh;
+      set_wall_paper = pipe {
+        file = ./cmds/set_wall_paper;
+        dependencies = [];
+      };
+      stripspace = pipe {
+        file = ./cmds/stripspace;
+        dependencies = [];
+      };
+      trash = pipe {
+        file = ./cmds/trash;
         dependencies = builtins.attrValues {
           inherit
             (pkgs)
-            fzf
             trashy
             ;
         };
       };
-      restore_trash = shell {
-        file = ./cmds/restore_trash.sh;
+      unarchive = pipe {
+        file = ./cmds/unarchive;
         dependencies = builtins.attrValues {
           inherit
             (pkgs)
-            fzf
-            trashy
+            gnutar
+            unzip
+            # TODO this is unfree! unrar
+
+            p7zip
             ;
         };
       };
-
-      stripspace = pipe {
-        file = ./cmds/stripspace.sh;
-        dependencies = [];
-      };
     };
     keybindings = {
       # Remove some defaults
@@ -257,7 +249,7 @@ in {
       #dc = "cpdragon";
       dl = "dlfile";
 
-      ss = "stripspace";
+      cs = "stripspace";
 
       # Vim keys
       h = "updir";