Эх сурвалжийг харах

dev: automated commit - 2026-03-01 20:25:37

Mariano Z. 3 долоо хоног өмнө
parent
commit
5ae9e98992

BIN
aws/.aws/config


+ 10 - 0
config/.config/env

@@ -27,5 +27,15 @@ export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc-2.0"
 export WGETRC="$XDG_CONFIG_HOME/wgetrc"
 export JAVA_HOME="/usr/lib/jvm/default"
 
+export AWS_SHARED_CREDENTIALS_FILE="${XDG_CONFIG_HOME}/aws/credentials"
+export AWS_CONFIG_FILE="${XDG_CONFIG_HOME}/aws/config"
+export CARGO_HOME="${XDG_DATA_HOME}/cargo"
+export HISTFILE="${XDG_DATA_HOME}/bash/history"
+export GNUPGHOME="${XDG_DATA_HOME}/gnupg"
+export GTK2_RC_FILES="${XDG_CONFIG_HOME}/gtk-2.0/gtkrc"
+export _JAVA_OPTIONS="-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME"/java"
+export _JAVA_OPTIONS="-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME"/java"
+export npm_config_cache="${XDG_CACHE_HOME}/npm"
+
 # PATH additions
 export PATH="$HOME/.local/bin:$PATH"

+ 1 - 1
niri/.config/niri/config.d/binds.kdl

@@ -6,7 +6,7 @@ binds {
     Mod+Shift+T { spawn-sh "~/.local/bin/niri-dev-launcher --no-cache ~/Dev"; }
     Mod+U { spawn-sh "~/.local/bin/nscratch -id 'uy.com.mzunino' -s 'alacritty --class=uy.com.mzunino'"; }
     Mod+D hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; }
-    Mod+N { spawn-sh "~/.local/bin/niri-launch-or-focus --class sdm-connect alacritty -e ~/.local/bin/sdm-ui"; }
+    Mod+N { spawn-sh "~/.local/bin/niri-launch-or-focus --class sdm-connect alacritty -e /home/mzunino/.local/share/go/bin/sdm-tui "; }
     Mod+E { spawn-sh "~/.local/bin/niri-launch-or-focus thunar"; }
     Mod+Shift+N { spawn-sh "~/.local/bin/dotedit"; }
     Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; }

+ 1 - 1
niri/.config/niri/config.d/startup.kdl

@@ -1,4 +1,4 @@
-spawn-sh-at-startup "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1"
+// spawn-sh-at-startup "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1"
 spawn-sh-at-startup "easyeffects --gapplication-service"
 // spawn-at-startup "nm-applet"
 

+ 1 - 1
niri/.config/niri/config.d/window-rules.kdl

@@ -34,7 +34,7 @@ window-rule {
 }
 
 window-rule {
-    match app-id=r#"^thunderbird$"#
+    match app-id=r#"^org\.mozilla\.Thunderbird$"#
     open-on-workspace "Social"
 }
 

BIN
ssh/.ssh/config


+ 29 - 0
zsh/.config/zsh/functions/dev.zsh

@@ -149,6 +149,35 @@ function sb {
   echo "SilverBullet is running (PID: $sb_pid) on port $port"
 }
 
+function unchonke() {
+  if [[ -z "$1" ]]; then
+    echo "usage: unchonke <path>"
+    return 1
+  fi
+
+  local target="$1"
+
+  if [[ ! -d "$target" ]]; then
+    echo "unchonke: '$target' is not a directory"
+    return 1
+  fi
+
+  echo "🐖 Removing node_modules under: $target"
+  find "$target" -type d -name node_modules -prune -print -exec rm -rf {} +
+
+  echo
+  echo "🧹 Optimizing git repositories..."
+
+  # Find git repos (directories containing .git)
+  find "$target" -type d -name ".git" | while read -r gitdir; do
+    local repo="${gitdir:h}"   # zsh dirname shortcut
+    echo "  → $repo"
+    git -C "$repo" gc --prune=now --aggressive >/dev/null 2>&1
+  done
+
+  echo
+  echo "✨ All chonk removed. Repos refreshed."
+}
 
 _package_manager_completion() {
   local -a commands

+ 0 - 136
zsh/.config/zsh/maintenance.zsh

@@ -1,136 +0,0 @@
-#!/usr/bin/env zsh
-# Configuration
-MAINTENANCE_SCRIPT="$HOME/.local/bin/maintenance.sh"
-TIMESTAMP_FILE="$HOME/.local/share/arch_maintenance_timestamp"
-DISABLED_FILE="$HOME/.local/share/arch_maintenance_disabled"
-INTERVAL=14  # Increased from 7 to 14 days
-QUIET_MODE=${MAINTENANCE_QUIET:-false}  # Set MAINTENANCE_QUIET=true to disable
-
-if [ ! -f "$MAINTENANCE_SCRIPT" ]; then
-    echo "Maintenance script not found at $MAINTENANCE_SCRIPT"
-    return 0
-fi
-
-# Check if maintenance is disabled
-if [ -f "$DISABLED_FILE" ] || [ "$QUIET_MODE" = "true" ]; then
-    return 0
-fi
-
-# Only run in interactive shells (not scripts)
-if [[ ! -o interactive ]]; then
-    return 0
-fi
-
-if [ -f "$TIMESTAMP_FILE" ]; then
-    LAST_RUN=$(cat $TIMESTAMP_FILE)
-    CURRENT_TIME=$(date +%s)
-    DAYS_DIFF=$(( (CURRENT_TIME - LAST_RUN) / 86400 ))
-    # Return immediately if maintenance not due
-    [ $DAYS_DIFF -lt $INTERVAL ] && return 0
-else
-    # Create timestamp file if missing (first run)
-    echo $(($(date +%s) - ${INTERVAL}*86400 - 1)) > $TIMESTAMP_FILE
-    DAYS_DIFF=$INTERVAL  # Set for first run
-fi
-
-# Simple output functions that work with or without gum
-print_styled() {
-    if command -v gum &> /dev/null; then
-        gum style "$@"
-    else
-        echo "$1"
-    fi
-}
-
-ask_confirm() {
-    if command -v gum &> /dev/null; then
-        gum confirm "$1"
-    else
-        echo "$1 (y/n)"
-        read -k 1 REPLY
-        echo ""
-        [[ $REPLY =~ ^[Yy]$ ]]
-    fi
-}
-
-# Function to run maintenance script
-run_maintenance() {
-    print_styled "Running system maintenance script..."
-    if sudo $MAINTENANCE_SCRIPT; then
-        date +%s > $TIMESTAMP_FILE
-        print_styled "✓ Maintenance completed successfully."
-    else
-        print_styled "✗ Maintenance script failed. Please check the output and run it manually."
-    fi
-}
-
-# Function to snooze for 7 more days
-snooze_maintenance() {
-    SNOOZE_TIME=$(($(date +%s) - (${INTERVAL} - 7) * 86400))
-    echo $SNOOZE_TIME > $TIMESTAMP_FILE
-    print_styled "⏰ Maintenance reminder snoozed for 7 more days."
-}
-
-# Function to disable maintenance permanently
-disable_maintenance() {
-    touch "$DISABLED_FILE"
-    print_styled "🔕 Maintenance reminders disabled permanently."
-    print_styled "To re-enable: rm $DISABLED_FILE"
-    print_styled "To run manually: sudo $MAINTENANCE_SCRIPT"
-}
-
-# Display maintenance notification
-echo ""
-print_styled "⚠️  It's been $DAYS_DIFF days since your last system maintenance"
-
-# Enhanced confirmation with four options
-if command -v gum &> /dev/null; then
-    CHOICE=$(gum choose "Run maintenance now" "Skip this time" "Don't ask for 7 more days" "Disable permanently")
-    case "$CHOICE" in
-        "Run maintenance now")
-            run_maintenance
-            ;;
-        "Skip this time")
-            print_styled "Maintenance skipped. You'll be reminded next time you start your shell."
-            print_styled "To run manually: sudo $MAINTENANCE_SCRIPT"
-            ;;
-        "Don't ask for 7 more days")
-            snooze_maintenance
-            ;;
-        "Disable permanently")
-            disable_maintenance
-            ;;
-    esac
-else
-    # Fallback for systems without gum
-    echo "Choose an option:"
-    echo "1) Run maintenance now"
-    echo "2) Skip this time"
-    echo "3) Don't ask for 7 more days"
-    echo "4) Disable permanently"
-    echo -n "Enter your choice (1-4): "
-    read -k 1 CHOICE
-    echo ""
-
-    case "$CHOICE" in
-        1)
-            run_maintenance
-            ;;
-        2)
-            print_styled "Maintenance skipped. You'll be reminded next time you start your shell."
-            print_styled "To run manually: sudo $MAINTENANCE_SCRIPT"
-            ;;
-        3)
-            snooze_maintenance
-            ;;
-        4)
-            disable_maintenance
-            ;;
-        *)
-            print_styled "Invalid choice. Maintenance skipped."
-            print_styled "To run manually: sudo $MAINTENANCE_SCRIPT"
-            ;;
-    esac
-fi
-
-return 0