From aeffb66466bc2187e94b79f46fef203830ab7efe Mon Sep 17 00:00:00 2001 From: Mathias Scheider Date: Thu, 2 Apr 2026 22:37:41 +0200 Subject: [PATCH] update --- Linux/! fmt.md | 1 + Linux/! locate.md | 1 + Linux/! stow.md | 1 + Linux/Hyprland/Stow mit Logik.md | 140 ------------------ Linux/Linux.md | 15 -- git/! Git Cheat Sheet.md | 1 + {etc => privat}/Navidrome Rescan.md | 0 {etc => privat}/fstab - Bsp buntes_monster.md | 0 8 files changed, 4 insertions(+), 155 deletions(-) create mode 100644 Linux/! fmt.md create mode 100644 Linux/! locate.md create mode 100644 Linux/! stow.md delete mode 100644 Linux/Hyprland/Stow mit Logik.md delete mode 100644 Linux/Linux.md create mode 100644 git/! Git Cheat Sheet.md rename {etc => privat}/Navidrome Rescan.md (100%) rename {etc => privat}/fstab - Bsp buntes_monster.md (100%) diff --git a/Linux/! fmt.md b/Linux/! fmt.md new file mode 100644 index 0000000..f33c5bc --- /dev/null +++ b/Linux/! fmt.md @@ -0,0 +1 @@ +#❗ \ No newline at end of file diff --git a/Linux/! locate.md b/Linux/! locate.md new file mode 100644 index 0000000..f33c5bc --- /dev/null +++ b/Linux/! locate.md @@ -0,0 +1 @@ +#❗ \ No newline at end of file diff --git a/Linux/! stow.md b/Linux/! stow.md new file mode 100644 index 0000000..f33c5bc --- /dev/null +++ b/Linux/! stow.md @@ -0,0 +1 @@ +#❗ \ No newline at end of file diff --git a/Linux/Hyprland/Stow mit Logik.md b/Linux/Hyprland/Stow mit Logik.md deleted file mode 100644 index ec403b7..0000000 --- a/Linux/Hyprland/Stow mit Logik.md +++ /dev/null @@ -1,140 +0,0 @@ -Kurz gesagt: **Nein – GNU Stow führt keine Skripte aus.** -Und das ist auch Absicht 🙂 - -GNU Stow macht **nur eine Sache**: - -> Es erzeugt und entfernt Symlinks. - -Keine Hooks. -Keine Post-Deploy-Skripte. -Keine Automatik. - ---- - -# 🧠 Warum ist das so? - -Stow ist bewusst: - -* minimalistisch -* deterministisch -* side-effect-frei - -Dadurch bleibt dein Setup transparent und reproduzierbar. - ---- - -# ✅ Aber: Man kann es kombinieren - -Wenn du beim „Deploy“ zusätzlich Dinge tun willst (z. B. Monitor-Symlink setzen, Pakete installieren, Cache leeren, etc.), gibt es saubere Lösungen: - ---- - -# 🔹 Lösung 1: Bootstrap-Script (empfohlen) - -Du schreibst dir ein Script wie: - -```bash -#!/bin/bash -set -e - -cd ~/dotfiles - -echo "→ Stowing configs" -stow hypr -stow waybar -stow zsh - -echo "→ Setting monitor config" -ln -sf desktop.conf hypr/.config/hypr/monitors/current.conf - -echo "→ Reloading Hyprland" -hyprctl reload -``` - -Dann einfach: - -```bash -./install.sh -``` - -💡 Das ist die professionellste Lösung. - ---- - -# 🔹 Lösung 2: Hostname-basierte Logik im Script - -```bash -HOST=$(hostname) - -if [[ "$HOST" == "desktop" ]]; then - ln -sf desktop.conf hypr/.config/hypr/monitors/current.conf -elif [[ "$HOST" == "laptop" ]]; then - ln -sf laptop.conf hypr/.config/hypr/monitors/current.conf -fi -``` - -Dann musst du nichts manuell wählen. - ---- - -# 🔹 Lösung 3: Makefile (sehr elegant) - -Beispiel: - -```make -install: - stow hypr - stow waybar - ./scripts/select-monitor.sh -``` - -Dann: - -```bash -make install -``` - -Sehr beliebt in Dotfile-Repos. - ---- - -# 🔹 Lösung 4: „echte“ Dotfile-Manager - -Wenn du wirklich Logik + Templates willst: - -* chezmoi -* yadm - -Diese können: - -* Hostname erkennen -* Variablen verwenden -* Templates generieren -* Skripte ausführen - -Aber sie sind komplexer als Stow. - ---- - -# 🎯 Empfehlung für dich (Hyprland + mehrere Systeme) - -Da du: - -* Monitor-Configs pro System brauchst -* wahrscheinlich Arch nutzt -* modular arbeiten willst - -👉 **Stow + Bootstrap-Script** ist die perfekte Balance. - ---- - -# 💬 Kurzantwort auf deine Frage - -| Frage | Antwort | -| ------------------------ | ----------------- | -| Führt Stow Skripte aus? | ❌ Nein | -| Kann man es kombinieren? | ✅ Ja | -| Beste Praxis? | Stow + install.sh | - ---- - diff --git a/Linux/Linux.md b/Linux/Linux.md deleted file mode 100644 index ba2c658..0000000 --- a/Linux/Linux.md +++ /dev/null @@ -1,15 +0,0 @@ -[[Linux Musikprogramme]] -[[Softlinks 1]] -[[Synchronisation & Backup 1]] - -# Konsolen Know-How -[[Linux Konsole Zeichen löschen]] -[[Paketinstallation aus tar.gz]] -[[Disable KVM for VirtualBox]] -[[Linux Terminal Shortcut]] -[[Drives & Mounts 1]] -[[Computerkram/find]] -[[Link-Verknüpfung in Linux]] - - - diff --git a/git/! Git Cheat Sheet.md b/git/! Git Cheat Sheet.md new file mode 100644 index 0000000..f33c5bc --- /dev/null +++ b/git/! Git Cheat Sheet.md @@ -0,0 +1 @@ +#❗ \ No newline at end of file diff --git a/etc/Navidrome Rescan.md b/privat/Navidrome Rescan.md similarity index 100% rename from etc/Navidrome Rescan.md rename to privat/Navidrome Rescan.md diff --git a/etc/fstab - Bsp buntes_monster.md b/privat/fstab - Bsp buntes_monster.md similarity index 100% rename from etc/fstab - Bsp buntes_monster.md rename to privat/fstab - Bsp buntes_monster.md