keyboard mod changes, cleanup

This commit is contained in:
Matt Nish-Lapidus 2025-07-06 12:58:31 -04:00
parent ab1ef736a8
commit b448e6a6a2
8 changed files with 57 additions and 51 deletions

46
flake.lock generated
View file

@ -153,11 +153,11 @@
"nixpkgs-stable": "nixpkgs-stable" "nixpkgs-stable": "nixpkgs-stable"
}, },
"locked": { "locked": {
"lastModified": 1751766315, "lastModified": 1751819016,
"narHash": "sha256-rIIRch7pSBsxaee2+9hVOTFcHahQvV2ASqbDEINCXkk=", "narHash": "sha256-VUH2XRvstd/AQmph85qMOrSuDdhE6Wi0NIbpWtl2j58=",
"owner": "nix-community", "owner": "nix-community",
"repo": "emacs-overlay", "repo": "emacs-overlay",
"rev": "35e4150b360528360680a0b75e142396c6fbd484", "rev": "b36094ff60e3b8e3d8cda96f2824bd57bbf32d93",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -205,13 +205,13 @@
"locked": { "locked": {
"lastModified": 1751750910, "lastModified": 1751750910,
"narHash": "sha256-nvxcyvyBRGKL6yn/TSD03g48l9DMFJ4jBW8nqW/y7p4=", "narHash": "sha256-nvxcyvyBRGKL6yn/TSD03g48l9DMFJ4jBW8nqW/y7p4=",
"owner": "eza-community", "owner": "emenel",
"repo": "eza", "repo": "eza",
"rev": "fa2f3216ad110499302f8311c195d7235ebe3900", "rev": "fa2f3216ad110499302f8311c195d7235ebe3900",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "eza-community", "owner": "emenel",
"repo": "eza", "repo": "eza",
"type": "github" "type": "github"
} }
@ -644,11 +644,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1751760902, "lastModified": 1751816429,
"narHash": "sha256-qBGNn7T/zOgUDQTo/RM/D2oxMkB2x36j3ajvpVanEVs=", "narHash": "sha256-F9xzryA4OfrGTQS1N8SimJQzoD8qDMj/e2lTFE9V288=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "8b0180dde1d6f4cf632e046309e8f963924dfbd0", "rev": "b4486ff44addd453a64fd8c176ab2fd7ad3f6eb3",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1073,11 +1073,11 @@
"xwayland-satellite-unstable": "xwayland-satellite-unstable" "xwayland-satellite-unstable": "xwayland-satellite-unstable"
}, },
"locked": { "locked": {
"lastModified": 1751736567, "lastModified": 1751815493,
"narHash": "sha256-/wvCffuHn2eOw6qYyLFm+oButg9Z1dU/BhkHhoRd5z4=", "narHash": "sha256-tF7Tery/v0lhBKAwj9TgBLPSng42iZzlf/MeFb7on6U=",
"owner": "sodiboo", "owner": "sodiboo",
"repo": "niri-flake", "repo": "niri-flake",
"rev": "f3b4c3cbb65b690c66ad5ca78f1e88620d4d6cc5", "rev": "c4d9d4caa0c1e5c002679ca4b15db223b1942c2b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1328,11 +1328,11 @@
}, },
"nixpkgs-stable_2": { "nixpkgs-stable_2": {
"locked": { "locked": {
"lastModified": 1751582995, "lastModified": 1751741127,
"narHash": "sha256-u7ubvtxdTnFPpV27AHpgoKn7qHuE7sgWgza/1oj5nzA=", "narHash": "sha256-t75Shs76NgxjZSgvvZZ9qOmz5zuBE8buUaYD28BMTxg=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "7a732ed41ca0dd64b4b71b563ab9805a80a7d693", "rev": "29e290002bfff26af1db6f64d070698019460302",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1344,11 +1344,11 @@
}, },
"nixpkgs-stable_3": { "nixpkgs-stable_3": {
"locked": { "locked": {
"lastModified": 1751582995, "lastModified": 1751741127,
"narHash": "sha256-u7ubvtxdTnFPpV27AHpgoKn7qHuE7sgWgza/1oj5nzA=", "narHash": "sha256-t75Shs76NgxjZSgvvZZ9qOmz5zuBE8buUaYD28BMTxg=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "7a732ed41ca0dd64b4b71b563ab9805a80a7d693", "rev": "29e290002bfff26af1db6f64d070698019460302",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -2147,11 +2147,11 @@
"rust-overlay": "rust-overlay_4" "rust-overlay": "rust-overlay_4"
}, },
"locked": { "locked": {
"lastModified": 1751550109, "lastModified": 1751812076,
"narHash": "sha256-/pB2YpF8BG4zURq4v+M/+TW3fUIekm5qephBzlrw2pw=", "narHash": "sha256-h7vE7KQvHIPaPik7Ze818dy/G4YQRWVFqNyxqcBAEwI=",
"owner": "sxyazi", "owner": "sxyazi",
"repo": "yazi", "repo": "yazi",
"rev": "ec7eb3e41663fd3654bd0995dd8d451bcc64fe18", "rev": "917e1f54a10445f2e25147c4b81a3c77d8233632",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -2168,11 +2168,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1751656595, "lastModified": 1751779188,
"narHash": "sha256-W8uTfv+XXSupH4IFIV+SjTCCQXBiHtxTRkuypuDhlV4=", "narHash": "sha256-o1PidAPLtSSqI6isos6v/e6s7t3zQ56NBYhXVaUesXc=",
"owner": "0xc000022070", "owner": "0xc000022070",
"repo": "zen-browser-flake", "repo": "zen-browser-flake",
"rev": "565138cfe80944643770b6b4f4ac849dc94ab343", "rev": "b3200f40877a3e0a679070d96f8793a06105c06e",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -155,6 +155,9 @@
shaderbg shaderbg
zulip
element-desktop
]; ];
home.pointerCursor = { home.pointerCursor = {

View file

@ -110,9 +110,9 @@
}; };
programs = { programs = {
carapace = { # carapace = {
enable = true; # enable = true;
}; # };
bash = { bash = {
enable = true; enable = true;
}; };

View file

@ -16,8 +16,9 @@ def --env doomup [...args] {
systemctl --user restart emacs.service systemctl --user restart emacs.service
} }
def --env lla [...args] { def --env lla [...pattern: glob] {
ls -alm ...$args | select name type size modified mode user let pattern = if ($pattern | is-empty) { [ '.' ] } else { $pattern }
nuls -alm $pattern | select name type size modified mode user
} }
# def --env pullall [] { # def --env pullall [] {

View file

@ -0,0 +1,19 @@
let fish_completer = {|spans|
let completions = fish --command $'complete "--do-complete=($spans | str join " ")"'
| from tsv --flexible --noheaders --no-infer
| rename value description
let has_paths = ($completions | any {|row| $row.value =~ '/' or $row.value =~ '\\.\\w+$' or $row.value =~ ' '})
if $has_paths {
$completions | update value {|row|
if $row.value =~ ' ' {
$"'($row.value)'" # Wrap in single quotes
} else {
$row.value
}
}
} else {
$completions
}
}

View file

@ -8,6 +8,7 @@
programs.nushell = { programs.nushell = {
enable = true; enable = true;
shellAliases = { shellAliases = {
"nuls" = "ls";
"ls" = "ls -m"; "ls" = "ls -m";
"ll" = "ls -m"; "ll" = "ls -m";
"la" = "ls -am"; "la" = "ls -am";
@ -16,6 +17,7 @@
"y" = "job spawn { wezterm --config-file ~/.config/wezterm/launcher.lua start --always-new-process --cwd (pwd) yazi }"; "y" = "job spawn { wezterm --config-file ~/.config/wezterm/launcher.lua start --always-new-process --cwd (pwd) yazi }";
}; };
configFile.source = ./config.nu; configFile.source = ./config.nu;
envFile.source = ./env.nu;
loginFile.text = '' loginFile.text = ''
${pkgs.figlet}/bin/figlet -f ($env.HOME)/.local/share/flf/wavy.flf (hostname) ${pkgs.figlet}/bin/figlet -f ($env.HOME)/.local/share/flf/wavy.flf (hostname)
''; '';
@ -47,27 +49,6 @@
}; };
}; };
}; };
extraEnv = ''
let fish_completer = {|spans|
let completions = fish --command $'complete "--do-complete=($spans | str join " ")"'
| from tsv --flexible --noheaders --no-infer
| rename value description
let has_paths = ($completions | any {|row| $row.value =~ '/' or $row.value =~ '\\.\\w+$' or $row.value =~ ' '})
if $has_paths {
$completions | update value {|row|
if $row.value =~ ' ' {
$"'($row.value)'" # Wrap in single quotes
} else {
$row.value
}
}
} else {
$completions
}
}
'';
plugins = [ pkgs.nushellPlugins.skim ]; plugins = [ pkgs.nushellPlugins.skim ];
}; };
} }

View file

@ -156,7 +156,7 @@
}; };
opener = { opener = {
edit = [ edit = [
{ run = "emacsclient -r \"$@\""; desc = "emacsclient"; orphan = true; block = false; } { run = "emacsclient -n -r \"$@\""; desc = "emacsclient"; orphan = true; block = false; }
{ run = "nano \"$@\""; desc = "nano"; orphan = false; block = true; } { run = "nano \"$@\""; desc = "nano"; orphan = false; block = true; }
]; ];
extract = [ extract = [

View file

@ -18,12 +18,14 @@ let
;; layer mods ;; layer mods
spcnav (tap-hold $tap-timeout 300 spc (layer-while-held navigation)) spcnav (tap-hold $tap-timeout 300 spc (layer-while-held navigation))
tabnav(multi lctrl lalt)
;; space cadet shift ;; space cadet shift
sp-lsft (tap-hold-press $tap-timeout $hold-timeout S-9 lsft) sp-lsft (tap-hold-press $tap-timeout $hold-timeout S-9 lsft)
sp-rsft (tap-hold-press $tap-timeout $hold-timeout S-0 lsft) sp-rsft (tap-hold-press $tap-timeout $hold-timeout S-0 lsft)
;; home-row mods ;; home-row mods
a (tap-hold $tap-timeout $hold-timeout a lshift) a (tap-hold $tap-timeout $hold-timeout a @tabnav)
s (tap-hold $tap-timeout $hold-timeout s lalt) s (tap-hold $tap-timeout $hold-timeout s lalt)
d (tap-hold $tap-timeout $hold-timeout d lctrl) d (tap-hold $tap-timeout $hold-timeout d lctrl)