mirror of
https://codeberg.org/ProgramSnail/config.git
synced 2026-01-11 05:57:17 +00:00
add dotfiles (including kitty & alacritty themes), add proxies, add writing & haskell roles
This commit is contained in:
parent
46bdf4dda0
commit
6561d54f45
346 changed files with 15329 additions and 0 deletions
23
roles/dotfiles/files/.config/kitty/kitty-themes/.tools/libcapture.sh
Executable file
23
roles/dotfiles/files/.config/kitty/kitty-themes/.tools/libcapture.sh
Executable 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue