run updated to use ghostty, and packaged so dependencies can be overlayed
This commit is contained in:
parent
e24c468c79
commit
7d8e9fb07a
26
pkgs/run.nix
Normal file
26
pkgs/run.nix
Normal file
@ -0,0 +1,26 @@
|
||||
{
|
||||
writeShellApplication,
|
||||
bash,
|
||||
zenity,
|
||||
rmlint,
|
||||
git,
|
||||
gum,
|
||||
xclip,
|
||||
ghostty,
|
||||
...
|
||||
}:
|
||||
writeShellApplication {
|
||||
name = "run";
|
||||
|
||||
runtimeInputs = [
|
||||
bash
|
||||
zenity
|
||||
rmlint
|
||||
git
|
||||
gum
|
||||
xclip
|
||||
ghostty
|
||||
];
|
||||
|
||||
text = builtins.readFile ../src/packaged_scripts/run.sh;
|
||||
}
|
||||
@ -1,11 +1,6 @@
|
||||
#! /usr/bin/env nix-shell
|
||||
#! nix-shell -i bash -p bash zenity rmlint git gum xclip
|
||||
#! /usr/bin/env bash
|
||||
|
||||
if [ -n "$1" ]; then
|
||||
operation=$1
|
||||
else
|
||||
operation=$(gum choose rmlint download git)
|
||||
fi
|
||||
operation=${1:-$(gum choose rmlint download git)}
|
||||
|
||||
case $operation in
|
||||
rmlint)
|
||||
@ -18,8 +13,7 @@ download)
|
||||
--text="Verify the following entry is correct" \
|
||||
--add-entry="Clipboard:" --entry-text "$(xclip -o -sel clip)")
|
||||
if [ -n "$ENTRY" ]; then
|
||||
# kgx -e "download -u jawz -i '$ENTRY'"
|
||||
kgx -e "ssh miniserver ""download -u jawz -i ""$ENTRY"" "" "
|
||||
ghostty -e "ssh miniserver ""download -u jawz -i ""$ENTRY"" "" "
|
||||
else
|
||||
zenity --error --width=250 \
|
||||
--text "Please verify and try again"
|
||||
Loading…
x
Reference in New Issue
Block a user