feat: chezmoi

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2023-07-24 12:31:59 +02:00
parent 901d0e9c04
commit 9cedfd61f6
274 changed files with 9710 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#!/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
}