summaryrefslogtreecommitdiff
path: root/pkgs
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2024-12-04 12:10:33 +0100
committerLinnnus <[email protected]>2024-12-06 08:31:58 +0100
commite9a101ee0855ffe760dfee6a3bb59361c9c528ef (patch)
tree8f04eaec9fc96028ef794a832135291a4e84189b /pkgs
parentb3cf126be6d25c4364b63f69b3edcb2b531b021e (diff)
Revert "home/zsh+pkgs: Add watch-while for long commands lol"
This reverts commit 3824d4d797d39bd6f2dee3655027a79713ef400c. Turned out to actually just be really annoying. Funny joke though.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/default.nix2
-rw-r--r--pkgs/watch-while/default.nix23
-rw-r--r--pkgs/watch-while/watch-while.zsh24
3 files changed, 0 insertions, 49 deletions
diff --git a/pkgs/default.nix b/pkgs/default.nix
index d0dafaa..4737efb 100644
--- a/pkgs/default.nix
+++ b/pkgs/default.nix
@@ -9,8 +9,6 @@ pkgs: {
mcping = pkgs.callPackage ./mcping {};
- watch-while = pkgs.callPackage ./watch-while {};
-
# This is not wrapping the YaLafi python library, just a particular example
# from the repo where they spellcheck LaTex files.
yalafi-shell = pkgs.callPackage ./yalafi-shell {};
diff --git a/pkgs/watch-while/default.nix b/pkgs/watch-while/default.nix
deleted file mode 100644
index fb29441..0000000
--- a/pkgs/watch-while/default.nix
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- zsh,
- mpv,
- stdenvNoCC,
-}:
-stdenvNoCC.mkDerivation rec {
- pname = "watch-while";
- version = "0.1.0";
-
- src = ./watch-while.zsh;
- unpackPhase = ":";
-
- buildPhase = ''
- substituteAll $src ${pname}
- chmod +x ${pname}
- '';
- inherit zsh mpv;
-
- installPhase = ''
- mkdir -p $out/bin
- mv ${pname} $out/bin/
- '';
-}
diff --git a/pkgs/watch-while/watch-while.zsh b/pkgs/watch-while/watch-while.zsh
deleted file mode 100644
index f483d15..0000000
--- a/pkgs/watch-while/watch-while.zsh
+++ /dev/null
@@ -1,24 +0,0 @@
-#!@zsh@/bin/zsh
-
-set -ue
-
-if [ $# -eq 0 ]; then
- echo >&2 "Usage: $0 <command> [arg...]"
- exit 1
-fi
-
-# This file should be a (symbolik link to a) file which we want to watch.
-# TODO: Once we're finished with that movie, we just read the next.
-movie=${XDG_CONFIG_HOME:-$HOME/.config}/watch-while/movie
-
-if [ -f $movie ] && ! [ -v NO_WATCH ]; then
- @mpv@/bin/mpv --save-position-on-quit --autofit='90%x90%' -- $movie >/dev/null 2>&1 &
- mpv_pid=$?
- trap 'kill -s QUIT $mpv_pid' EXIT
-
- # We don't exec because we want our exit handler to fire.
- "$@" || exit $?
-else
- # In this case where we don't have any movie we just transparently run the command.
- exec "$@"
-fi