cleanup
This commit is contained in:
parent
b5f93e5572
commit
0701d30d79
3 changed files with 8 additions and 3 deletions
common
|
@ -1,3 +1,7 @@
|
|||
function calc() {
|
||||
echo $* | bc
|
||||
}
|
||||
|
||||
function clipcopy() {
|
||||
cat "${1:-/dev/stdin}" | xsel --clipboard --input
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue