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
|
#! /usr/bin/env bash
|
||||||
#! nix-shell -i bash -p bash zenity rmlint git gum xclip
|
|
||||||
|
|
||||||
if [ -n "$1" ]; then
|
operation=${1:-$(gum choose rmlint download git)}
|
||||||
operation=$1
|
|
||||||
else
|
|
||||||
operation=$(gum choose rmlint download git)
|
|
||||||
fi
|
|
||||||
|
|
||||||
case $operation in
|
case $operation in
|
||||||
rmlint)
|
rmlint)
|
||||||
@ -18,8 +13,7 @@ download)
|
|||||||
--text="Verify the following entry is correct" \
|
--text="Verify the following entry is correct" \
|
||||||
--add-entry="Clipboard:" --entry-text "$(xclip -o -sel clip)")
|
--add-entry="Clipboard:" --entry-text "$(xclip -o -sel clip)")
|
||||||
if [ -n "$ENTRY" ]; then
|
if [ -n "$ENTRY" ]; then
|
||||||
# kgx -e "download -u jawz -i '$ENTRY'"
|
ghostty -e "ssh miniserver ""download -u jawz -i ""$ENTRY"" "" "
|
||||||
kgx -e "ssh miniserver ""download -u jawz -i ""$ENTRY"" "" "
|
|
||||||
else
|
else
|
||||||
zenity --error --width=250 \
|
zenity --error --width=250 \
|
||||||
--text "Please verify and try again"
|
--text "Please verify and try again"
|
||||||
Loading…
x
Reference in New Issue
Block a user