diff options
| author | Loek Le Blansch <loek@pipeframe.xyz> | 2026-08-12 19:27:30 +0200 |
|---|---|---|
| committer | Loek Le Blansch <loek@pipeframe.xyz> | 2026-08-12 19:27:30 +0200 |
| commit | 58f7632fd838ba3a8d8590baa10128c2db44c9ad (patch) | |
| tree | fac3169da62fc0987a2564b0b73c6b4fb6320b52 | |
| parent | 5533e947bbba56e1214b148b481dc214f401f09e (diff) | |
mac updates
| -rw-r--r-- | home/.chezmoiignore | 3 | ||||
| -rw-r--r-- | home/dot_config/kitty/kitty.conf | 20 | ||||
| -rw-r--r-- | home/dot_config/kitty/symlink_kitty.app.icns | 1 | ||||
| -rw-r--r-- | home/dot_config/mpv/scripts/copy-subs.lua | 2 | ||||
| -rw-r--r-- | home/dot_config/pip/pip.conf | 4 | ||||
| -rw-r--r-- | home/dot_config/private_homebrew/brew.env | 2 | ||||
| -rwxr-xr-x | home/dot_local/share/bin/executable_copy.tmpl | 6 | ||||
| -rw-r--r-- | home/dot_local/share/bin/executable_subrename | 2 | ||||
| -rw-r--r-- | home/dot_profile | 2 | ||||
| -rw-r--r-- | home/dot_zshrc (renamed from home/dot_zshrc.tmpl) | 4 | ||||
| -rw-r--r-- | home/private_Library/LaunchAgents/homebrew.mxcl.mpd.plist.tmpl | 30 | ||||
| -rw-r--r-- | home/private_Library/LaunchAgents/homebrew.mxcl.syncthing.plist | 30 |
12 files changed, 98 insertions, 8 deletions
diff --git a/home/.chezmoiignore b/home/.chezmoiignore new file mode 100644 index 0000000..c7ea764 --- /dev/null +++ b/home/.chezmoiignore @@ -0,0 +1,3 @@ +{{- if ne .chezmoi.os "darwin" }} +Library +{{- end }} diff --git a/home/dot_config/kitty/kitty.conf b/home/dot_config/kitty/kitty.conf new file mode 100644 index 0000000..6b3a18c --- /dev/null +++ b/home/dot_config/kitty/kitty.conf @@ -0,0 +1,20 @@ +font_family JetBrains Mono +bold_font JetBrains Mono Bold +italic_font JetBrains Mono Italic +bold_italic_font JetBrains Mono Bold Italic +font_size 10 + +modify_font cell_height 120% + +term xterm-256color +cursor_blink_interval 0 +cursor_shape block +shell_integration disabled +resize_debounce_time 0 0 +resize_in_steps yes +confirm_os_window_close 0 +enable_audio_bell no + +placement_strategy top-left +window_margin_width 8 + diff --git a/home/dot_config/kitty/symlink_kitty.app.icns b/home/dot_config/kitty/symlink_kitty.app.icns new file mode 100644 index 0000000..dcd4e5e --- /dev/null +++ b/home/dot_config/kitty/symlink_kitty.app.icns @@ -0,0 +1 @@ +/System/Applications/Utilities/Terminal.app/Contents/Resources/Terminal.icns diff --git a/home/dot_config/mpv/scripts/copy-subs.lua b/home/dot_config/mpv/scripts/copy-subs.lua index 973e1f2..56928b2 100644 --- a/home/dot_config/mpv/scripts/copy-subs.lua +++ b/home/dot_config/mpv/scripts/copy-subs.lua @@ -11,7 +11,7 @@ function copy() sub = sub:gsub('\n', ' ') -- replace newlines with space sub = sub:gsub('\'', '\'\\\'\'') -- escape single quotes - os.execute("echo '" .. sub .. "' | xclip -selection clipboard -i") + os.execute("echo '" .. sub .. "' | copy") end end diff --git a/home/dot_config/pip/pip.conf b/home/dot_config/pip/pip.conf new file mode 100644 index 0000000..ebfb002 --- /dev/null +++ b/home/dot_config/pip/pip.conf @@ -0,0 +1,4 @@ +[install] +break-system-packages = true +user = true + diff --git a/home/dot_config/private_homebrew/brew.env b/home/dot_config/private_homebrew/brew.env new file mode 100644 index 0000000..6b97bc1 --- /dev/null +++ b/home/dot_config/private_homebrew/brew.env @@ -0,0 +1,2 @@ +HOMEBREW_NO_AUTO_UPDATE=1 +HOMEBREW_NO_ENV_HINTS=1 diff --git a/home/dot_local/share/bin/executable_copy.tmpl b/home/dot_local/share/bin/executable_copy.tmpl new file mode 100755 index 0000000..dde46b3 --- /dev/null +++ b/home/dot_local/share/bin/executable_copy.tmpl @@ -0,0 +1,6 @@ +#!/usr/bin/env sh +{{- if eq .chezmoi.os "darwin" }} +exec pbcopy +{{- else if eq .chezmoi.os "linux" }} +exec xclip -selection clipboard -in +{{- end }} diff --git a/home/dot_local/share/bin/executable_subrename b/home/dot_local/share/bin/executable_subrename index 16d913f..ea6e446 100644 --- a/home/dot_local/share/bin/executable_subrename +++ b/home/dot_local/share/bin/executable_subrename @@ -48,7 +48,7 @@ fi for file in "$@" ; do new_filename="$(printf 's%02de%02d%s\n' "$season" "$episode" "$file_extension")" - mv --verbose "$file" "$new_filename" + mv -v "$file" "$new_filename" episode=$(( $episode + 1 )) done diff --git a/home/dot_profile b/home/dot_profile index c5d8663..8ef501e 100644 --- a/home/dot_profile +++ b/home/dot_profile @@ -8,7 +8,6 @@ export LANG='ja_JP.UTF-8' # aliases -alias copy='xclip -selection clipboard' alias dnd='dragon-drop --all --and-exit' alias sl='sl -w' alias bctl='bluetoothctl' @@ -44,7 +43,6 @@ export GEM_HOME="$XDG_DATA_HOME/gem/ruby/3.0.0" # script locations if [ -z "$PATH_EXTENDED" ] ; then - PATH="/opt/zephyr-sdk/arm-zephyr-eabi/bin:$PATH" PATH="$GEM_HOME/bin:$PATH" PATH="$HOME/.local/share/cargo/bin:$PATH" PATH="$HOME/.local/go/bin:$PATH" diff --git a/home/dot_zshrc.tmpl b/home/dot_zshrc index eca7ae1..6220015 100644 --- a/home/dot_zshrc.tmpl +++ b/home/dot_zshrc @@ -62,7 +62,3 @@ function cd() { done } -{{- if eq .chezmoi.os "darwin" }} - -eval "$(/opt/homebrew/bin/brew shellenv)" -{{- end }} diff --git a/home/private_Library/LaunchAgents/homebrew.mxcl.mpd.plist.tmpl b/home/private_Library/LaunchAgents/homebrew.mxcl.mpd.plist.tmpl new file mode 100644 index 0000000..dc82a82 --- /dev/null +++ b/home/private_Library/LaunchAgents/homebrew.mxcl.mpd.plist.tmpl @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>KeepAlive</key> + <true/> + <key>Label</key> + <string>homebrew.mxcl.mpd</string> + <key>LimitLoadToSessionType</key> + <array> + <string>Aqua</string> + <string>Background</string> + <string>LoginWindow</string> + <string>StandardIO</string> + <string>System</string> + </array> + <key>ProcessType</key> + <string>Interactive</string> + <key>ProgramArguments</key> + <array> + <string>/opt/homebrew/opt/mpd/bin/mpd</string> + <string>--no-daemon</string> + <string>{{ env "XDG_CONFIG_HOME" }}/mpd/mpd.conf</string> + </array> + <key>RunAtLoad</key> + <true/> + <key>WorkingDirectory</key> + <string>/opt/homebrew</string> +</dict> +</plist> diff --git a/home/private_Library/LaunchAgents/homebrew.mxcl.syncthing.plist b/home/private_Library/LaunchAgents/homebrew.mxcl.syncthing.plist new file mode 100644 index 0000000..2932303 --- /dev/null +++ b/home/private_Library/LaunchAgents/homebrew.mxcl.syncthing.plist @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>KeepAlive</key> + <true/> + <key>Label</key> + <string>homebrew.mxcl.syncthing</string> + <key>LimitLoadToSessionType</key> + <array> + <string>Aqua</string> + <string>Background</string> + <string>LoginWindow</string> + <string>StandardIO</string> + <string>System</string> + </array> + <key>ProgramArguments</key> + <array> + <string>/opt/homebrew/opt/syncthing/bin/syncthing</string> + <string>--no-browser</string> + <string>--no-restart</string> + </array> + <key>RunAtLoad</key> + <true/> + <key>StandardErrorPath</key> + <string>/opt/homebrew/var/log/syncthing.log</string> + <key>StandardOutPath</key> + <string>/opt/homebrew/var/log/syncthing.log</string> +</dict> +</plist> |