about summary refs log tree commit diff stats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--hm/soispha/conf/lf/keybindings/default.nix196
-rw-r--r--hm/soispha/conf/lf/keybindings/dir_move.nix74
2 files changed, 148 insertions, 122 deletions
diff --git a/hm/soispha/conf/lf/keybindings/default.nix b/hm/soispha/conf/lf/keybindings/default.nix
index 02db81c2..c95100c4 100644
--- a/hm/soispha/conf/lf/keybindings/default.nix
+++ b/hm/soispha/conf/lf/keybindings/default.nix
@@ -1,136 +1,88 @@
-{nixosConfig, ...}: {
-  # Remove some defaults
-  m = null;
-  "\"'\"" = null;
-  "'\"'" = null;
-  d = null;
-  c = null;
-  e = null;
-  j = null;
-  k = null;
-  l = null;
-  ";" = null;
+{nixosConfig, ...}: let
+  dir_move = import ./dir_move.nix;
+in
+  {
+    # Remove some defaults
+    m = null;
+    "\"'\"" = null;
+    "'\"'" = null;
+    d = null;
+    c = null;
+    e = null;
+    j = null;
+    k = null;
+    l = null;
+    ";" = null;
 
-  # File Openers
-  ee = "\$\$EDITOR \"$f\"";
-  es = "\$ nvim -S \"$f\"";
-  u = "%\$IVIEWER \"$f\"";
-  cc = "\$sudo -e \"$f\"";
+    # File Openers
+    ee = "\$\$EDITOR \"$f\"";
+    es = "\$ nvim -S \"$f\"";
+    u = "%\$IVIEWER \"$f\"";
+    cc = "\$sudo -e \"$f\"";
 
-  # Archive Mappings
-  au = "unarchive";
-  aa = "archive";
+    # Archive Mappings
+    au = "unarchive";
+    aa = "archive";
 
-  # Trash Mappings
-  dd = "trash";
-  jc = "clear_trash";
-  jr = "restore_trash";
+    # Trash Mappings
+    dd = "trash";
+    jc = "clear_trash";
+    jr = "restore_trash";
 
-  # Broot Mapping
-  f = "fzf_jump";
+    # Broot Mapping
+    f = "fzf_jump";
 
-  # Dragon Mapping
-  dr = "dragon";
-  ds = "dragon-stay";
-  di = "dragon-individual";
-  #dm = "mvdragon";
-  #dc = "cpdragon";
-  dl = "dlfile";
+    # Dragon Mapping
+    dr = "dragon";
+    ds = "dragon-stay";
+    di = "dragon-individual";
+    #dm = "mvdragon";
+    #dc = "cpdragon";
+    dl = "dlfile";
 
-  cs = "stripspace";
+    cs = "stripspace";
 
-  # Vim keys
-  h = "updir";
-  t = "down";
-  n = "up";
-  s = "open";
+    # Vim keys
+    h = "updir";
+    t = "down";
+    n = "up";
+    s = "open";
 
-  # Basic Functions
-  "." = "set hidden!";
-  DD = "delete";
-  p = "paste";
-  x = "cut";
-  y = "copy";
-  "<enter>" = "open";
+    # Basic Functions
+    "." = "set hidden!";
+    DD = "delete";
+    p = "paste";
+    x = "cut";
+    y = "copy";
+    "<enter>" = "open";
 
-  mk = "mk_ln";
-  mf = "mk_file";
-  me = "mk_file_and_edit";
-  md = "mk_dir";
-  ms = "mk_scr_default";
-  mt = "mk_scr_temp";
+    mk = "mk_ln";
+    mf = "mk_file";
+    me = "mk_file_and_edit";
+    md = "mk_dir";
+    ms = "mk_scr_default";
+    mt = "mk_scr_temp";
 
-  ch = "chmod";
-  bg = "set_wall_paper";
-  o = "open_config";
-  r = ":rename; cmd-end";
-  H = "go_project_base_directory";
-  L = "bottom";
-  R = "reload";
-  C = "clear";
-  U = "unselect";
+    ch = "chmod";
+    bg = "set_wall_paper";
+    r = ":rename; cmd-end";
+    H = "go_project_base_directory";
+    L = "bottom";
+    R = "reload";
+    C = "clear";
+    U = "unselect";
 
-  # Movement
-  gjr = "cd ~/.local/share/Trash/files";
-  gus = "cd /run/user/${builtins.toString nixosConfig.users.users.soispha.uid}";
+    # Movement
+    gjr = "cd ~/.local/share/Trash/files";
+    gus = "cd /run/user/${builtins.toString nixosConfig.users.users.soispha.uid}";
 
-  "gr." = "cd ~/repos";
-  grah = "cd ~/repos/auto_hot_key";
-  graw = "cd ~/repos/awk";
-  grcc = "cd ~/repos/c";
-  grcp = "cd ~/repos/cpp";
-  grg = "cd ~/repos/go";
-  grh = "cd ~/repos/html";
-  grja = "cd ~/repos/java";
-  grjs = "cd ~/repos/java_script";
-  grl = "cd ~/repos/lua";
-  grmd = "cd ~/repos/mark_down";
-  grno = "cd ~/repos/notes";
-  # ---
-  "grn." = "cd ~/repos/nix";
-  grnp = "cd ~/repos/nix/reference/nix/official/nixpkgs";
-  grnn = "cd ~/repos/nix/nixos-config";
-  grns = "cd ~/repos/nix/server/nixos-server";
-  # ---
-  grpe = "cd ~/repos/perl";
-  grpy = "cd ~/repos/python";
-  grr = "cd ~/repos/rust";
-  grs = "cd ~/repos/shell";
-  grte = "cd ~/repos/tex";
-  grty = "cd ~/repos/typst";
-  grv = "cd ~/repos/vim";
-  grz = "cd ~/repos/zig";
-  # -------------
-  "gm." = "cd ~/media";
-  gmd = "cd ~/media/downloads";
-  gmi = "cd ~/media/isos";
-  gmm = "cd ~/media/music";
-  gmp = "cd ~/media/pictures";
-  # -------------
-  "gs." = "cd ~/school";
-  gsb = "cd ~/school/biologie";
-  gsc = "cd ~/school/chemie";
-  gsd = "cd ~/school/deutsch";
-  gse = "cd ~/school/english";
-  gsgo = "cd ~/school/geographie";
-  gsgs = "cd ~/school/geschichte";
-  gsi = "cd ~/school/infomatik";
-  gskr = "cd ~/school/katholische_religion";
-  gsl = "cd ~/school/latein";
-  gsma = "cd ~/school/mathematik";
-  gsmu = "cd ~/school/musik";
-  gspi = "cd ~/school/philosophie";
-  gspy = "cd ~/school/physik";
-  gsso = "cd ~/school/sozialkunde";
-  gssp = "cd ~/school/sport";
-  # -------------
+    gc = "cd ~/.config";
+    gl = "cd ~/.local";
+    gE = "cd /etc";
 
-  gc = "cd ~/.config";
-  gl = "cd ~/.local";
-  gE = "cd /etc";
+    "gU." = "cd /usr";
+    gUs = " cd /usr/share";
 
-  "gU." = "cd /usr";
-  gUs = " cd /usr/share";
-
-  gt = "cd /tmp";
-}
+    gt = "cd /tmp";
+  }
+  // dir_move
diff --git a/hm/soispha/conf/lf/keybindings/dir_move.nix b/hm/soispha/conf/lf/keybindings/dir_move.nix
new file mode 100644
index 00000000..c70dc957
--- /dev/null
+++ b/hm/soispha/conf/lf/keybindings/dir_move.nix
@@ -0,0 +1,74 @@
+{...}: {
+  /*
+  *
+  These mappings are semi-auto generated using lf-make-map.
+  */
+  "gm." = "cd ~/media";
+  gmd = "cd ~/media/downloads";
+  gmi = "cd ~/media/isos";
+  gmm = "cd ~/media/music";
+  gmp = "cd ~/media/pictures";
+  gmte = "cd ~/media/templates";
+  gmtr = "cd ~/media/.Trash-1000";
+  gmu = "cd ~/media/public";
+  gmv = "cd ~/media/videos";
+  # -------------
+  "grn." = "cd ~/repos/nix";
+  grnc = "cd ~/repos/nix/nixos-config";
+  grnp = "cd ~/repos/nix/reference/nix/official/nixpkgs";
+  grns = "cd ~/repos/nix/server/nixos-server";
+  # -------------
+  "gr." = "cd ~/repos";
+  grah = "cd ~/repos/auto_hot_key";
+  grai = "cd ~/repos/ai";
+  graw = "cd ~/repos/awk";
+  grba = "cd ~/repos/backup";
+  grbw = "cd ~/repos/bwinf";
+  grcc = "cd ~/repos/c";
+  grcp = "cd ~/repos/cpp";
+  grg = "cd ~/repos/go";
+  grha = "cd ~/repos/haskell";
+  grht = "cd ~/repos/html";
+  grja = "cd ~/repos/java";
+  grjq = "cd ~/repos/jq";
+  grjs = "cd ~/repos/java_script";
+  grl = "cd ~/repos/lua";
+  grmd = "cd ~/repos/mark_down";
+  grno = "cd ~/repos/notes";
+  grnu = "cd ~/repos/nu";
+  grpe = "cd ~/repos/perl";
+  grpy = "cd ~/repos/python";
+  grrr = "cd ~/repos/r";
+  grru = "cd ~/repos/rust";
+  grs = "cd ~/repos/shell";
+  grte = "cd ~/repos/tex";
+  grtr = "cd ~/repos/.Trash-1000";
+  grty = "cd ~/repos/typst";
+  grv = "cd ~/repos/vim";
+  grz = "cd ~/repos/zig";
+  # -------------
+  "gs." = "cd ~/school";
+  gsb = "cd ~/school/biologie";
+  gsc = "cd ~/school/chemie";
+  gsde = "cd ~/school/deutsch";
+  gsds = "cd ~/school/dsa";
+  gsef = "cd ~/school/europa_fart_berlin";
+  gsen = "cd ~/school/english";
+  gsge = "cd ~/school/general";
+  gsgo = "cd ~/school/geographie";
+  gsgs = "cd ~/school/geschichte";
+  gsi = "cd ~/school/infomatik";
+  gskr = "cd ~/school/katholische_religion";
+  gsl = "cd ~/school/latein";
+  gsma = "cd ~/school/mathematik";
+  gsmi = "cd ~/school/mitschrift";
+  gsmu = "cd ~/school/musik";
+  gspb = "cd ~/school/praktikum_basf";
+  gsph = "cd ~/school/physik";
+  gspi = "cd ~/school/philosophie";
+  gsso = "cd ~/school/sozialkunde";
+  gssp = "cd ~/school/sport";
+  gstr = "cd ~/school/.Trash-1000";
+  gsw = "cd ~/school/website";
+  # -------------
+}