From 6099fd87f12b43e4d6d2cda83a1d48a7ae0c34f2 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sat, 13 Jan 2024 12:06:51 +0100 Subject: feat(hm/pkgs/scr/show): init --- hm/soispha/pkgs/scripts.nix | 7 +++++++ hm/soispha/pkgs/scripts/wrappers/show | 9 +++++++++ 2 files changed, 16 insertions(+) create mode 100755 hm/soispha/pkgs/scripts/wrappers/show (limited to 'hm/soispha') diff --git a/hm/soispha/pkgs/scripts.nix b/hm/soispha/pkgs/scripts.nix index ba825f31..ec90c8f8 100644 --- a/hm/soispha/pkgs/scripts.nix +++ b/hm/soispha/pkgs/scripts.nix @@ -102,6 +102,12 @@ path = "small_functions"; dependencies = builtins.attrValues {inherit (pkgs) grim slurp wl-clipboard;}; }; + show-scr = write_shell { + name = "show"; + path = "wrappers"; + keep_path = true; # I might want to use nvim in less (and shell escapes) + dependencies = builtins.attrValues {inherit (pkgs) less locale;}; + }; neorg-scr = sysLib.writeShellScript { name = "neorg"; keep_path = true; @@ -277,6 +283,7 @@ in [ nest_comments-scr screenshot_persistent-scr screenshot_temporary-scr + show-scr spodi-scr update-sys-scr virsh-del-scr diff --git a/hm/soispha/pkgs/scripts/wrappers/show b/hm/soispha/pkgs/scripts/wrappers/show new file mode 100755 index 00000000..584c419f --- /dev/null +++ b/hm/soispha/pkgs/scripts/wrappers/show @@ -0,0 +1,9 @@ +#!/usr/bin/env dash + +# shellcheck source=/dev/null +SHELL_LIBRARY_VERSION="2.0.9" . %SHELL_LIBRARY_PATH + +# Maybe add `--quit-if-one-screen` +less --redraw-on-quit "$@" + +# vim: ft=sh -- cgit 1.4.1