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() {
|
function clipcopy() {
|
||||||
cat "${1:-/dev/stdin}" | xsel --clipboard --input
|
cat "${1:-/dev/stdin}" | xsel --clipboard --input
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
command -v argc >/dev/null 2>&1 || {
|
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
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
cd "${XDG_CONFIG_HOME}/aichat/functions" || {
|
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
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -115,11 +115,12 @@ asktoend() {
|
||||||
[ "$response" = "Yes" ] && killrecording
|
[ "$response" = "Yes" ] && killrecording
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[ -f /tmp/recordingpid ] && asktoend && exit
|
||||||
case "$1" in
|
case "$1" in
|
||||||
screencast) screencast ;;
|
screencast) screencast ;;
|
||||||
audio) audio ;;
|
audio) audio ;;
|
||||||
video) video ;;
|
video) video ;;
|
||||||
"video selected") videoselected ;;
|
"video selected") videoselected ;;
|
||||||
kill) killrecording ;;
|
kill) killrecording ;;
|
||||||
*) ([ -f /tmp/recordingpid ] && asktoend && exit) || askrecording ;;
|
*) askrecording ;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue