workig on dirvish and other udpates

This commit is contained in:
Matt Nish-Lapidus 2025-07-13 11:14:42 -04:00
parent a103da2a2b
commit e85646db0e
4 changed files with 38 additions and 16 deletions

30
flake.lock generated
View file

@ -662,11 +662,11 @@
]
},
"locked": {
"lastModified": 1752373701,
"narHash": "sha256-d0d7y9gjv9HU0Amws6kHJucR8bxrQ0PfVKxt2ll5cfs=",
"lastModified": 1752402455,
"narHash": "sha256-mCHfZhQKdTj2JhCFcqfOfa3uKZbwUkPQbd0/zPnhOE8=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "fc25398450cdab61af9654928dfef9d101f51140",
"rev": "bf893ad4cbf46610dd1b620c974f824e266cd1df",
"type": "github"
},
"original": {
@ -1091,11 +1091,11 @@
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
},
"locked": {
"lastModified": 1752341624,
"narHash": "sha256-TL45QOCt1+RSrRzVca3KeMjhZgkCaI585AjKUTCj3Jc=",
"lastModified": 1752412106,
"narHash": "sha256-Tqlw15ic9fQqOXlO0cl4gDmcDHhp+6mm/o9R6tHxbM4=",
"owner": "sodiboo",
"repo": "niri-flake",
"rev": "b658155b3c10d32c62fad3bde0097b87b47d2d08",
"rev": "f4245b1fc70a277223d64c1ee7eb849237efb6c8",
"type": "github"
},
"original": {
@ -1124,11 +1124,11 @@
"niri-unstable": {
"flake": false,
"locked": {
"lastModified": 1750791124,
"narHash": "sha256-F5iVU/hjoSHSSe0gllxm0PcAaseEtGNanYK5Ha3k2Tg=",
"lastModified": 1752406167,
"narHash": "sha256-Evxt24bKohlUvb6kSc6GfCvBGfxo6ThOcpZcjhbyjYs=",
"owner": "YaLTeR",
"repo": "niri",
"rev": "37458d94b288945f6cfbd3c5c233f634d59f246c",
"rev": "19c8fca8367d2056ec63d6e6b930415d2ef65b48",
"type": "github"
},
"original": {
@ -2022,11 +2022,11 @@
"nixpkgs": "nixpkgs_8"
},
"locked": {
"lastModified": 1751660490,
"narHash": "sha256-GusU4/Odv1osGDeYkJskJ3Jj213Wyo8XacMA+r21ImE=",
"lastModified": 1752390446,
"narHash": "sha256-OcVcNM7Jt1E1/5HfPEXAodeJ4z8rvsR+1eY5OUYCt1I=",
"owner": "Alexays",
"repo": "Waybar",
"rev": "cae5f9a56f88bdd4306860b22740a33e7957e5bc",
"rev": "94777921d96c2657c37c7d83a18f13968df486de",
"type": "github"
},
"original": {
@ -2069,11 +2069,11 @@
},
"locked": {
"dir": "nix",
"lastModified": 1751522981,
"narHash": "sha256-OisqRgWHKADyoAV5wuPPUI+wryP2gznfLdGuafEnho0=",
"lastModified": 1752411069,
"narHash": "sha256-V1zJsyxPtWmqsggOm0d/rhgNr+Jwb+l+PSTFC2RWZ0o=",
"owner": "wez",
"repo": "wezterm",
"rev": "c7f4b081a685ab71eef6571b4050af061fff9c85",
"rev": "85c587f9f3d8be49dfa252da116fc9ca290df113",
"type": "github"
},
"original": {

View file

@ -303,6 +303,14 @@
name = "wl color picker";
exec = "${pkgs.wl-color-picker}/bin/wl-color-picker";
};
dirvish = {
name = "dirvish";
exec = "${pkgs.nushell}/bin/nu dirvish";
};
magit = {
name = "magit";
exec = "${pkgs.nushell}/bin/nu magit";
};
};
xdg.configFile."halloy/config.toml".source = ../../homes/emenel/dotfiles/dot_config/halloy/config.toml;

View file

@ -90,7 +90,7 @@
vivid
caddy
file
visidata
vips
ffmpegthumbnailer

View file

@ -24,6 +24,20 @@ def pullall [] {
for d in (nuls | where type == dir) { cd $d.name; print $d.name; git pull; cd .. }
}
def dirvish [] {
let eid = niri msg -j windows | from json | where title ends-with "Emacs" | $in.id | to text | into int
pwd | emacsclient -r -n --eval $"\(dirvish \"($in)\"\)" | niri msg action focus-window --id $eid
}
alias "dirv" = dirvish
def magit [] {
let eid = niri msg -j windows | from json | where title ends-with "Emacs" | $in.id | to text | into int
pwd | emacsclient -r -n --eval $"\(magit \"($in)\"\)" | niri msg action focus-window --id $eid
}
alias "mg" = magit
# List the filenames, sizes, and modification times of items in a directory.
@category filesystem
@search-terms dir