From 0176b14350931dce20a1cf64f586991681bbd945 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Mon, 14 Nov 2022 10:35:16 -0500 Subject: [PATCH] move qr to nautilusg --- modules/applications/nautilus.nix | 7 +++++++ modules/shell/utilities.nix | 5 ----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/modules/applications/nautilus.nix b/modules/applications/nautilus.nix index 28cfb3a..7406a4c 100644 --- a/modules/applications/nautilus.nix +++ b/modules/applications/nautilus.nix @@ -7,6 +7,13 @@ gnome.nautilus gnome.sushi # Quick preview with spacebar ]; + + programs.fish.functions = { + qr = { + body = + "${pkgs.qrencode}/bin/qrencode $argv[1] -o /tmp/qr.png | ${pkgs.gnome.sushi}/bin/sushi /tmp/qr.png"; + }; + }; }; }; diff --git a/modules/shell/utilities.nix b/modules/shell/utilities.nix index c32d6d2..30d6741 100644 --- a/modules/shell/utilities.nix +++ b/modules/shell/utilities.nix @@ -59,11 +59,6 @@ in { argumentNames = "target"; body = "${pkgs.prettyping}/bin/prettyping --nolegend $target"; }; - qr = { - # Fix for non-macOS - body = - "${pkgs.qrencode}/bin/qrencode $argv[1] -o /tmp/qr.png | ${pkgs.gnome.sushi}/bin/sushi /tmp/qr.png"; - }; }; };