Fix Yazi shell integration and enhance Kitty configuration

**Yazi Integration Fixes:**
- Fixed y() function in .zshrc to prevent shell exit when quitting Yazi
- Updated kitty-yazi.sh script to use AppleScript for proper tab creation
- Script now focuses existing Kitty window and creates new tab instead of new window

**Kitty Configuration Enhancements:**
- Added advanced font rendering with ligature support
- Improved cursor animations and visual effects
- Enhanced tab bar with powerline styling and fade effects
- Added background blur and better transparency handling
- Optimized performance settings (rendering delays, scrolling)
- Added comprehensive keyboard shortcuts for window/tab management
- Improved URL handling and text selection features
- Added notification system for long-running commands

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Thomas Naderer
2025-06-28 23:38:13 +02:00
parent 85ef8dca72
commit e715400806
9 changed files with 401 additions and 29 deletions

21
scripts/kitty-yazi.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
# Check if kitty is running
if pgrep -f "kitty" > /dev/null; then
# Focus kitty and send the command to create a new tab with y function
osascript <<EOF
tell application "kitty"
activate
tell application "System Events"
keystroke "t" using {command down}
delay 0.2
keystroke "y"
keystroke return
end tell
end tell
EOF
exit 0
fi
# If no kitty running, open new instance
open -a kitty

2
scripts/simple-kitty-yazi.sh Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/bash
/opt/homebrew/bin/kitty --single-instance -e /opt/homebrew/bin/yazi

20
scripts/tnmount.sh Executable file
View File

@@ -0,0 +1,20 @@
#!/bin/zsh
# User Configuration
USER="AK127132" # Insert Your AK Number
PASSWORD="enzfcj4bhg!mwr8BUH" # Insert your password
SERVER="140.78.8.107"
SHARE1="TNGROUP/tn-group/ipec"
SHARE2="TNHOME/home/AK127132"
# Mount TNGROUP
echo "Mounting TNGROUP..."
osascript -e "try" -e "mount volume \"smb://$USER:$PASSWORD@$SERVER/$SHARE1\"" -e "end try"
# Mount TNHOME
echo "Mounting TNHOME..."
osascript -e "try" -e "mount volume \"smb://$USER:$PASSWORD@$SERVER/$SHARE2\"" -e "end try"
echo "Mounting complete."

View File

@@ -0,0 +1,14 @@
#!/bin/bash
LEFT_ID="F1A2D185-B386-4CEB-B155-1A44DDB883FD"
DP="/opt/homebrew/bin/displayplacer"
ROTATION=$($DP list displays | awk "/Persistent screen id: $LEFT_ID/{flag=1} flag && /Rotation:/ {print \$2; exit}")
echo "Current rotation is: $ROTATION"
if [ "$ROTATION" = "0" ]; then
$DP "id:$LEFT_ID res:2560x1440 hz:60 color_depth:8 scaling:on origin:(-2560,0) degree:90"
else
$DP "id:$LEFT_ID res:2560x1440 hz:60 color_depth:8 scaling:on origin:(-2560,0) degree:0"
fi

View File

@@ -0,0 +1,14 @@
#!/bin/bash
RIGHT_ID="7A7FAED1-82FF-42D7-8D6F-32E397977EB2"
DP="/opt/homebrew/bin/displayplacer"
ROTATION=$($DP list displays | awk "/Persistent screen id: $RIGHT_ID/{flag=1} flag && /Rotation:/ {print \$2; exit}")
echo "Current rotation is: $ROTATION"
if [ "$ROTATION" = "0" ]; then
$DP "id:$RIGHT_ID res:2560x1440 hz:100 color_depth:8 scaling:on origin:(0,0) degree:90"
else
$DP "id:$RIGHT_ID res:2560x1440 hz:100 color_depth:8 scaling:on origin:(0,0) degree:0"
fi