From e6f4e94c96b3f5fc3e3aaf914871ba8399c1c6c1 Mon Sep 17 00:00:00 2001 From: Matt Nish-Lapidus Date: Wed, 2 Jul 2025 13:02:33 -0400 Subject: [PATCH] yazi and nushell updates, new niri key to launch all regular apps --- flake.lock | 24 +++++++++---------- .../dot_local/bin/launch-default-apps | 5 ++++ modules/home/niri.nix | 14 ++++++----- modules/home/yazi.nix | 15 +++++++----- 4 files changed, 34 insertions(+), 24 deletions(-) create mode 100755 homes/emenel/dotfiles/dot_local/bin/launch-default-apps diff --git a/flake.lock b/flake.lock index daa5203..dac9d31 100644 --- a/flake.lock +++ b/flake.lock @@ -137,11 +137,11 @@ "nixpkgs-stable": "nixpkgs-stable" }, "locked": { - "lastModified": 1751447566, - "narHash": "sha256-PD6SIXio6A44d0BjfUYPUyC9SyHnGcQP5N/ceoGJsno=", + "lastModified": 1751473619, + "narHash": "sha256-FZpbizfR/KgS7XQWMZV8txEPWkhjBatSNnnwjD1XTKs=", "owner": "nix-community", "repo": "emacs-overlay", - "rev": "6b5c9e8d4cfe157a398aedf877ad6fbb71c6bca6", + "rev": "1de278e46115d49a11ee9b01bfca5b74432e6074", "type": "github" }, "original": { @@ -541,11 +541,11 @@ ] }, "locked": { - "lastModified": 1751463936, - "narHash": "sha256-kS8p1QgyFO/95BHSsZMpBs8oRh1bklAd/zzpWhF6ODk=", + "lastModified": 1751474656, + "narHash": "sha256-1+wwOHCAj426dUoRmByXT8y8dRVw4VdL1zJDjRd8ICE=", "owner": "nix-community", "repo": "home-manager", - "rev": "3d243d4a16cafe855df585b3030aa99261a27a86", + "rev": "a7820832c68180b612587a23f46f1b94a28b3407", "type": "github" }, "original": { @@ -1578,11 +1578,11 @@ "rust-overlay": "rust-overlay_3" }, "locked": { - "lastModified": 1751296710, - "narHash": "sha256-SWKkSaqzVmHi+AnGc706tkvqobDMyYnXifeLTb//pnw=", + "lastModified": 1751469973, + "narHash": "sha256-5Y1aVAYFmV20kmkhcHEQrDDvHiJVQGyYhD1SBCp639E=", "owner": "sxyazi", "repo": "yazi", - "rev": "4ff7dae7211a53c3d60f512a39d12425a1b9496c", + "rev": "c7f800ad7ecf76e3431ad1b7005fa24b53726802", "type": "github" }, "original": { @@ -1599,11 +1599,11 @@ ] }, "locked": { - "lastModified": 1751440815, - "narHash": "sha256-cBEcG90ahVVPMKEHiyn13KT7cxpcEwSOqrLhgz5/M9k=", + "lastModified": 1751466296, + "narHash": "sha256-64N3qvaJOMYdm96pvvV+7/v1vehYIG7PBDDUrnh/CeA=", "owner": "0xc000022070", "repo": "zen-browser-flake", - "rev": "a37c444f51b3e7df8ea3333c57a4154c6b09dc39", + "rev": "947204cae31597b29efee0fcf79585c7dac53bc2", "type": "github" }, "original": { diff --git a/homes/emenel/dotfiles/dot_local/bin/launch-default-apps b/homes/emenel/dotfiles/dot_local/bin/launch-default-apps new file mode 100755 index 0000000..4d5fbfe --- /dev/null +++ b/homes/emenel/dotfiles/dot_local/bin/launch-default-apps @@ -0,0 +1,5 @@ +#!/usr/bin/env sh +/etc/profiles/per-user/emenel/bin/discord & +/etc/profiles/per-user/emenel/bin/slack & +/etc/profiles/per-user/emenel/bin/signal-desktop & +/etc/profiles/per-user/emenel/bin/plexamp & diff --git a/modules/home/niri.nix b/modules/home/niri.nix index ea096e4..eb30fc8 100644 --- a/modules/home/niri.nix +++ b/modules/home/niri.nix @@ -35,7 +35,8 @@ in ]; } { command = [ "wpaperd" "--daemon" ]; } - { command = [ "/home/emenel/.local/bin/niri-delayed-launch-at-startup" ]; } + { command = [ "${pkgs.filen-desktop}/bin/filen-desktop" ]; } + # { command = [ "/home/emenel/.local/bin/niri-delayed-launch-at-startup" ]; } ]; workspaces = { @@ -287,13 +288,14 @@ in # shows a list of important hotkeys. "Mod+Shift+Slash".action = show-hotkey-overlay; "Mod+Shift+Space".action = toggle-overview; - "Mod+Space" = { - hotkey-overlay.title = "Launcher"; - action = wezlaunch "sway-launcher-desktop"; + + "${app-prefix}+D" = { + hotkey-overlay.title = "Open Default Apps"; + action = spawn "/home/emenel/.local/bin/launch-default-apps"; }; - "Print" = { - hotkey-overlay.title = "Launcher (alternative key)"; + "Mod+Space" = { + hotkey-overlay.title = "Launcher"; action = wezlaunch "sway-launcher-desktop"; }; diff --git a/modules/home/yazi.nix b/modules/home/yazi.nix index 0b736d1..1515038 100644 --- a/modules/home/yazi.nix +++ b/modules/home/yazi.nix @@ -154,6 +154,15 @@ linemode = "time_and_size"; show_symlink = true; }; + opener = { + edit = [ + { run = "emacsclient -r \"$@\""; desc = "emacsclient"; orphan = true; block = false; } + { run = "nano \"$@\""; desc = "nano"; orphan = false; block = true; } + ]; + extract = [ + { run = "ouch d -y \"$@\""; desc = "Extract here with ouch"; } + ]; + }; open = { prepend_rules = [ { name = "*.zip"; use = "extract"; } @@ -206,12 +215,6 @@ { name = "*"; run = "file-extra-metadata"; } ]; prepend_fetchers = [ - # { - # id = "mime"; - # name = "*"; - # run = "mime-ext"; - # prio = "high"; - # } { id = "git"; name = "*";