aboutsummaryrefslogtreecommitdiff
path: root/kitty/kitty-themes/.tools/libcapture.sh
diff options
context:
space:
mode:
Diffstat (limited to 'kitty/kitty-themes/.tools/libcapture.sh')
-rwxr-xr-xkitty/kitty-themes/.tools/libcapture.sh23
1 files changed, 0 insertions, 23 deletions
diff --git a/kitty/kitty-themes/.tools/libcapture.sh b/kitty/kitty-themes/.tools/libcapture.sh
deleted file mode 100755
index ff5159187..000000000
--- a/kitty/kitty-themes/.tools/libcapture.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/env bash
-
-function capture_linux() {
- local title="$1"
- local output="$2"
- import -window "$title" "$output"
-}
-
-function capture_osx() {
- local title="$1"
- local output="$2"
- # get system id of the new created window
- sys_id=$(./windowid.swift "kitty" "$title")
- screencapture -wl"$sys_id" "$output"
-}
-
-function capture() {
- if [[ "$OSTYPE" == "linux-gnu" ]]; then
- capture_linux "$@"
- elif [[ "$OSTYPE" == "darwin"* ]]; then
- capture_osx "$@"
- fi
-}