1
0
Fork 0
This commit is contained in:
Luca Bilke 2025-02-26 19:29:46 +01:00
parent b5f93e5572
commit 0701d30d79
Signed by: luca
GPG key ID: C9E851809C1A5BDE
3 changed files with 8 additions and 3 deletions
common
.config/zsh/config
.local/libexec

View file

@ -1,3 +1,7 @@
function calc() {
echo $* | bc
}
function clipcopy() {
cat "${1:-/dev/stdin}" | xsel --clipboard --input
}

View file

@ -1,12 +1,12 @@
#!/bin/sh
command -v argc >/dev/null 2>&1 || {
printf "%b" "${BOLD}${RED}argc is not installed${NC}"
printf "%b" "${BOLD}${RED}argc is not installed\n${NC}"
exit 1
}
cd "${XDG_CONFIG_HOME}/aichat/functions" || {
printf "%b" "${BOLD}${RED}could not cd into ${XDG_CONFIG_HOME}/aichat/functions${NC}"
printf "%b" "${BOLD}${RED}could not cd into ${XDG_CONFIG_HOME}/aichat/functions${NC}\n"
exit 1
}

View file

@ -115,11 +115,12 @@ asktoend() {
[ "$response" = "Yes" ] && killrecording
}
[ -f /tmp/recordingpid ] && asktoend && exit
case "$1" in
screencast) screencast ;;
audio) audio ;;
video) video ;;
"video selected") videoselected ;;
kill) killrecording ;;
*) ([ -f /tmp/recordingpid ] && asktoend && exit) || askrecording ;;
*) askrecording ;;
esac