Compare commits

..

1 Commits

Author SHA1 Message Date
c697587d9a karabinier: changed a default keys for ~ and £ 2025-04-01 23:48:37 +02:00
14 changed files with 32 additions and 107 deletions

View File

@@ -3,7 +3,6 @@ coreutils
dockutil
duti
fastfetch
ffmpeg
git
gnu-sed
htop
@@ -14,11 +13,9 @@ mtr
neovim
newsboat
parallel
pinentry-mac
ranger
ripgrep
rsync
texinfo
tmux
tree
wget

View File

@@ -1,9 +1,7 @@
alacritty
akiflow
alfred
alacritty
chatterino
dbeaver-community
discord
displaylink
docker
firefox@nightly
@@ -11,28 +9,32 @@ font-hack-nerd-font
gimp
google-chrome
hiddenbar
jordanbaird-ice
karabiner-elements
keepassxc
macfuse
megasync
microsoft-auto-update
microsoft-teams
mongodb-compass
mpv
mysides
obsidian
platypus
postman
platypus
qbittorrent
qview
rustdesk
scroll-reverser
signal
skype
spotify
stats
telegram
the-unarchiver
transfer
twingate
visual-studio-code
vlc
winbox
wine-crossover
wireshark
zed@preview

View File

@@ -1 +0,0 @@
example

View File

@@ -18,26 +18,8 @@ bindings = [
[font]
size = 22
# [font.normal]
# family = "Terminess Nerd Font"
# style = "Regular"
# # [font.bold]
# # family = "Teminess Nerd Font"
# # style = "Bold"
# [font.bold_italic]
# family = "Terminess Nerd Font"
# style = "Bold Italic"
# [font.italic]
# family = "Terminess Nerd Font"
# style = "Italic"
# Comic code
[font.normal]
family = "Comic Code Ligatures"
family = "Terminess Nerd Font"
style = "Regular"
# [font.bold]
@@ -45,20 +27,16 @@ style = "Regular"
# style = "Bold"
[font.bold_italic]
family = "Comic Code"
family = "Terminess Nerd Font"
style = "Bold Italic"
[font.italic]
family = "Comic Code"
family = "Terminess Nerd Font"
style = "Italic"
[font.offset]
x = 0
y = -6
[font.glyph_offset]
x = 0
y = -2
y = 0
# [mouse.hints]
# modifiers = "Command"
@@ -66,6 +44,10 @@ y = -2
# [mouse.hints.launcher]
# program = "open"
[font.offset]
x = 0
y = 0
[selection]
save_to_clipboard = true

1
.config/iterm2/AppSupport Symbolic link
View File

@@ -0,0 +1 @@
/Users/yorune/Library/Application Support/iTerm2

View File

@@ -371,17 +371,7 @@
"is_keyboard": true,
"product_id": 785,
"vendor_id": 13364
},
"simple_modifications": [
{
"from": { "key_code": "grave_accent_and_tilde" },
"to": [{ "key_code": "non_us_backslash" }]
},
{
"from": { "key_code": "right_control" },
"to": [{ "key_code": "grave_accent_and_tilde" }]
}
]
}
},
{
"identifiers": {
@@ -416,6 +406,14 @@
{
"from": { "key_code": "left_command" },
"to": [{ "key_code": "right_command" }]
},
{
"from": { "key_code": "grave_accent_and_tilde" },
"to": [{ "key_code": "non_us_backslash" }]
},
{
"from": { "key_code": "non_us_backslash" },
"to": [{ "key_code": "grave_accent_and_tilde" }]
}
],
"virtual_hid_keyboard": {

View File

@@ -357,8 +357,8 @@ set updatetime=250
autocmd! CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false, scope="cursor"})
" CoPilot
" imap <silent><script><expr> <F1> copilot#Accept("\<CR>")
" let g:copilot_no_tab_map = v:true
imap <silent><script><expr> <F1> copilot#Accept("\<CR>")
let g:copilot_no_tab_map = v:true
" Neoformat
let g:neoformat_try_formatprg = 1

1
.gitignore vendored
View File

@@ -279,4 +279,3 @@ Cisco Packet Tracer 8.0.0
.local/bin/kubectl
.rustup
.local/tss-sdk
.local/bin/tss

View File

@@ -199,7 +199,6 @@ function install_terragrunt() {
timestamp "The current version of the TSS-SDK is the same as the newest version"
return 0
else
brew install wget
wget https://github.com/gruntwork-io/terragrunt/releases/latest/download/terragrunt_linux_amd64 -O $TERRAGRUNT
chmod +x "$TERRAGRUNT"
fi
@@ -300,8 +299,6 @@ function install_fzf() {
function install_zsh_addons() {
if [ ! -d $ZSHFOLDER/aws ]; then
mkdir -p "$ZSHFOLDER/azure-cli" "$ZSHFOLDER/aws"
curl -s https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/plugins/aws/aws.plugin.zsh \
-o "$ZSHFOLDER"/aws/aws.plugin.zsh &&
timestamp "Downloaded the newest version of aws plugin for zsh"
@@ -310,6 +307,7 @@ function install_zsh_addons() {
-o "$ZSHFOLDER"/azure-cli/az.completion &&
timestamp "Downloaded the newest version of az plugin for zsh"
mkdir -p "$ZSHFOLDER/azure-cli" "$ZSHFOLDER/aws"
cd $ZSHFOLDER || err "Folder $ZSHFOLDER has been NOT found"
git clone https://github.com/popstas/zsh-command-time.git &&
timestamp "Cloning the zsh-command-time"
@@ -446,20 +444,15 @@ function install_brew_programs() {
INSTALLED_PROGRAMS=$(brew list)
while IFS='' read -r line; do LIST_OF_PROGRAMS+=("$line"); done < <(cat "$HOME"/.brew_programs)
while IFS='' read -r line; do LIST_OF_PROGRAMS_CASK+=("$line"); done < <(cat "$HOME"/.brew_programs_cask)
while IFS='' read -r line; do LIST_OF_PROGRAMS_DISABLE+=("$line"); done < <(cat "$HOME"/.brew_programs_disable)
for i in "${LIST_OF_PROGRAMS[@]}"; do
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]] \
&& \
[[ ! " ${LIST_OF_PROGRAMS_DISABLE[*]} " =~ ${i} ]]; then
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]]; then
brew install $i --force
fi
done
for i in "${LIST_OF_PROGRAMS_CASK[@]}"; do
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]] \
&& \
[[ ! " ${LIST_OF_PROGRAMS_DISABLE[*]} " =~ ${i} ]]; then
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]]; then
brew install $i --cask --force
fi
done

View File

@@ -1,22 +0,0 @@
#!/bin/bash
SERVER="$1"
if [ -z "$SERVER" ]; then
echo "Usage: $0 <server_ip>"
exit 1
fi
echo "Starting..."
echo
# Upload test (client sends data to server)
UPLOAD=$(iperf3 -c "$SERVER" -P5 -t 30 --json | jq '.end.sum_sent.bits_per_second / 1000000')
# Download test (client receives data from server)
DOWNLOAD=$(iperf3 -c "$SERVER" -P5 -t 30 -R --json | jq '.end.sum_received.bits_per_second / 1000000')
# Print summary
echo "SERVER: $SERVER"
echo "UPLOAD: $(printf "%.2f" "$UPLOAD") Mbps"
echo "DOWNLOAD: $(printf "%.2f" "$DOWNLOAD") Mbps"

View File

@@ -1,16 +0,0 @@
#!/bin/bash
FILE_FFMPEG="$1"
ffmpeg -i "$FILE_FFMPEG" \
-vf "scale=1920:1080" \
-c:v h264_videotoolbox \
-b:v 3000k \
-preset medium \
-movflags \
+faststart \
-c:a aac \
-b:a 192k \
-ac 2 \
-map 0:v \
-map 0:a \
-map 0:s \
-c:s copy resized.mkv

View File

@@ -1,18 +1,15 @@
#!/bin/bash
FOLDER_AUDIOBOOK="/Volumes/Music/Jellyfin/Playlist-Audiobook"
FOLDER_FAV="/Volumes/Music/Jellyfin/Playlist-Fav"
FOLDER_DUB="/Volumes/Music/Jellyfin/Playlist-Dub"
FOLDER_PIANO="/Volumes/Music/Jellyfin/Playlist-Piano"
# Check if folder exists
[ ! -d $FOLDER_AUDIOBOOK ] && exit 1
[ ! -d $FOLDER_DUB ] && exit 1
[ ! -d $FOLDER_FAV ] && exit 1
[ ! -d $FOLDER_PIANO ] && exit 1
# Remove old files
rm -rfv $FOLDER_AUDIOBOOK/errors.txt
rm -rfv $FOLDER_DUB/errors.txt
rm -rfv $FOLDER_FAV/errors.txt
rm -rfv $FOLDER_PIANO/errors.txt
@@ -38,9 +35,6 @@ spotdl --user-auth --keep-alive \
--yt-dlp-args no-check-certificates
# Sync to Jellyfin
rsync -h --progress --recursive --ignore-existing \
$FOLDER_AUDIOBOOK/* docker-de:/mnt/HC_Volume_34966154/jellifin/media/music/Audiobook
rsync -h --progress --recursive --ignore-existing \
$FOLDER_DUB/* docker-de:/mnt/HC_Volume_34966154/jellifin/media/music/Dub
@@ -51,8 +45,6 @@ rsync -h --progress --recursive --ignore-existing \
$FOLDER_PIANO/* docker-de:/mnt/HC_Volume_34966154/jellifin/media/music/Piano
# Generate playlist
ssh docker-de -t "cd /mnt/HC_Volume_34966154/jellifin/media/music/Audiobook; find . -type f \( -name '*.mp3' -o -name '*.flac' -o -name '*.loss' -o -name '*.aiff' -o -name '*.aif' \) -printf './%P\n' | sort > playlist.m3u"
ssh docker-de -t "cd /mnt/HC_Volume_34966154/jellifin/media/music/Dub; find . -type f \( -name '*.mp3' -o -name '*.flac' -o -name '*.loss' -o -name '*.aiff' -o -name '*.aif' \) -printf './%P\n' | sort > playlist.m3u"
ssh docker-de -t "cd /mnt/HC_Volume_34966154/jellifin/media/music/Fav; find . -type f \( -name '*.mp3' -o -name '*.flac' -o -name '*.loss' -o -name '*.aiff' -o -name '*.aif' \) -printf './%P\n' | sort > playlist.m3u"

1
.local/bin/youtube-dl Symbolic link
View File

@@ -0,0 +1 @@
/usr/local/bin/yt-dlp

View File

@@ -1 +0,0 @@
hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000035,"HIDKeyboardModifierMappingDst":0x700000064},{"HIDKeyboardModifierMappingSrc":0x700000064,"HIDKeyboardModifierMappingDst":0x700000035}]}'