Compare commits
6
Commits
d324551ea6
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
55991c13cb
|
||
|
|
bf9d4c5089
|
||
|
|
9e36e56bbf
|
||
|
|
a253f2b5bf
|
||
|
|
e1d64bfba3
|
||
|
|
09c77d126e
|
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/osascript
|
||||
|
||||
tell application "BetterTouchTool"
|
||||
trigger_action "{ BTTPredefinedActionType: 122}" -- Toggle Notification Center (Open)
|
||||
trigger_action "{ BTTPredefinedActionType: 289}" -- Clear notifications
|
||||
end tell
|
||||
|
||||
delay 1
|
||||
|
||||
tell application "BetterTouchTool"
|
||||
trigger_action "{ BTTPredefinedActionType: 122}" -- Toggle Notification Center (Close)
|
||||
end tell
|
||||
@@ -32,9 +32,11 @@ done
|
||||
|
||||
if [[ "${POS_ARGS[0]}" == "on" ]]; then
|
||||
italic "Turning Litra Glow on... "
|
||||
osascript -e 'display notification "Turning Litra Glow on... " with title "Litra Glow"'
|
||||
hidapitester --vidpid 046D/C900 --open --length 20 --send-output 0x11,0xff,0x04,0x1c,0x01 &>/dev/null
|
||||
elif [[ "${POS_ARGS[0]}" == "off" ]]; then
|
||||
italic "Turning Litra Glow off... "
|
||||
osascript -e 'display notification "Turning Litra Glow off... " with title "Litra Glow"'
|
||||
hidapitester --vidpid 046D/C900 --open --length 20 --send-output 0x11,0xff,0x04,0x1c &>/dev/null
|
||||
else
|
||||
print_usage
|
||||
|
||||
Executable
+21
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/osascript
|
||||
|
||||
on getMicrophoneVolume()
|
||||
input volume of (get volume settings)
|
||||
end getMicrophoneVolume
|
||||
on disableMicrophone()
|
||||
set volume input volume 0
|
||||
log "Microphone turned off 🔴"
|
||||
display notification "Microphone turned off 🔴" with title "🎙️ Microphone"
|
||||
end disableMicrophone
|
||||
on enableMicrophone()
|
||||
set volume input volume 100
|
||||
log "Microphone turned on 🟢"
|
||||
display notification "Microphone turned on 🟢" with title "🎙️ Microphone"
|
||||
end enableMicrophone
|
||||
|
||||
if getMicrophoneVolume() is greater than 0 then
|
||||
disableMicrophone()
|
||||
else
|
||||
enableMicrophone()
|
||||
end if
|
||||
+13
-1
@@ -145,4 +145,16 @@ git() {
|
||||
fi
|
||||
}
|
||||
|
||||
alias hermes='docker run --rm -it -v ~/.hermes:/opt/data nousresearch/hermes-agent'
|
||||
alias _docker=/opt/homebrew/bin/docker
|
||||
docker() {
|
||||
if [ "$1" = "run" ]; then # Git clone then cd into new directory
|
||||
shift
|
||||
container run --dns 192.168.1.3 $@
|
||||
elif [ "$1" = "build" ]; then # Sign all commits
|
||||
shift
|
||||
container build --dns 192.168.1.3 $@
|
||||
else
|
||||
container $@
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
@@ -30,7 +30,8 @@ export BAT_STYLE="grid,header"
|
||||
export TZ_LIST="Europe/Berlin;Europe/Sofia;UTC"
|
||||
|
||||
# Docker
|
||||
export DOCKER_HOST=$(docker context inspect --format='{{.Endpoints.docker.Host}}')
|
||||
# export DOCKER_HOST=$(docker context inspect --format='{{.Endpoints.docker.Host}}')
|
||||
# export DOCKER_HOST=unix:///opt/homebrew/var/run/socktainer/.socktainer/container.sock
|
||||
|
||||
# Brew - Prevent updating all packages when installing a new one
|
||||
export HOMEBREW_NO_AUTO_UPDATE=1
|
||||
|
||||
+15
-6
@@ -31,21 +31,22 @@ BREW_TOOLS=(
|
||||
git argocd bandwhich bat danielfoehrkn/switch/switch derailed/k9s/k9s
|
||||
dive doggo duf dust eza fd fzf git-delta go helm htop jq kind krew curl
|
||||
kubectl kustomize node procs progress ripgrep rs/tap/curlie rust starship
|
||||
tektoncd/tools/tektoncd-cli tldr tailscale yq tabby vale jless macchina tz viddy
|
||||
tektoncd/tools/tektoncd-cli tldr tailscale yq tabby vale jless macchina tz
|
||||
homeassistant-cli act dnsmasq gh kubebuilder golangci-lint gnu-sed s3cmd
|
||||
pulumi/tap/pulumi kubeseal fluxcd/tap/flux ical-buddy baobab
|
||||
watch crane openssh siderolabs/talos/talosctl civo/tools/civo raspberry-pi-imager
|
||||
gron ssup2/tap/kpexec opentofu visual-studio-code 1password-cli scw smartmontools
|
||||
firefox signal slack ffmpeg openscad tsh colima docker docker-buildx nordvpn
|
||||
firefox signal slack ffmpeg openscad tsh docker docker-buildx nordvpn
|
||||
1password tailscale-app witr nklmilojevic/sofka/sofka
|
||||
)
|
||||
# Brew tools only available / needed on Mac
|
||||
MAC_BREW_TOOLS=(
|
||||
pinentry-mac gpg gawk coreutils wget stats font-open-dyslexic-nerd-font
|
||||
dimentium/autoraise/autoraiseapp the-unarchiver rar mas capcut
|
||||
mqtt-explorer raycast bettertouchtool calibre kdenlive royal-tsx tableplus
|
||||
homebrew/cask/todoist ultimaker-cura webtorrent pika pearcleaner spotmenu
|
||||
jordanbaird-ice utm TheBoredTeam/boring-notch/boring-notch
|
||||
dimentium/autoraise/autoraiseapp the-unarchiver rar mas
|
||||
mqtt-explorer bettertouchtool calibre kdenlive royal-tsx tableplus
|
||||
homebrew/cask/todoist ultimaker-cura webtorrent pika pearcleaner
|
||||
utm TheBoredTeam/boring-notch/boring-notch container orchard fif7y/tap/pelmet
|
||||
abue-ammar/tinycast/tinycast
|
||||
)
|
||||
CARGO_TOOLS=( bottom )
|
||||
NODE_TOOLS=( git-split-diffs )
|
||||
@@ -205,6 +206,14 @@ case "${OSTYPE}" in
|
||||
sudo networksetup -setdnsservers "Wi-Fi" 127.0.0.1
|
||||
printf " ✅\n"
|
||||
|
||||
# 3, Apple Container config & socktainer service
|
||||
mkdir -p "/Users/${USER}/.config/container"
|
||||
f=$(fulllink "./other-files/container/config.toml")
|
||||
dst="/Users/${USER}/.config/container/config.toml"
|
||||
printf "Copying ${f}=>${dst}"
|
||||
cp ${f} ${dst}
|
||||
printf " ✅\n"
|
||||
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
# Not currently used
|
||||
# Requires: https://github.com/apple/container/pull/1614
|
||||
[dns]
|
||||
nameservers = ["1.1.1.1"]
|
||||
@@ -1,4 +1,4 @@
|
||||
version: 7
|
||||
version: 8
|
||||
profiles: []
|
||||
hotkeys:
|
||||
copy-current-path: []
|
||||
@@ -163,6 +163,29 @@ hotkeys:
|
||||
disconnect-tab: []
|
||||
command-selector:
|
||||
- ⌘-Shift-P
|
||||
debug-save-state:
|
||||
- Ctrl-Shift-Alt-1
|
||||
debug-load-state:
|
||||
- Ctrl-Shift-Alt-2
|
||||
debug-copy-state:
|
||||
- Ctrl-Shift-Alt-3
|
||||
debug-paste-state:
|
||||
- Ctrl-Shift-Alt-4
|
||||
debug-save-output:
|
||||
- Ctrl-Shift-Alt-5
|
||||
debug-load-output:
|
||||
- Ctrl-Shift-Alt-6
|
||||
debug-copy-output:
|
||||
- Ctrl-Shift-Alt-7
|
||||
debug-paste-output:
|
||||
- Ctrl-Shift-Alt-8
|
||||
scroll-page-up:
|
||||
- ⌥-PageUp
|
||||
scroll-page-down:
|
||||
- ⌥-PageDown
|
||||
open-sftp: []
|
||||
group-selectors: {}
|
||||
pin-tab: []
|
||||
terminal:
|
||||
searchOptions: {}
|
||||
colorScheme:
|
||||
@@ -194,6 +217,7 @@ terminal:
|
||||
customColorSchemes: []
|
||||
background: colorScheme
|
||||
autoOpen: true
|
||||
profile: local:binzsh
|
||||
ssh: {}
|
||||
configSync:
|
||||
parts: {}
|
||||
|
||||
Reference in New Issue
Block a user