From 2fd5a1196d3a7828c89a7e068c4d4b934ac8dc3f Mon Sep 17 00:00:00 2001 From: "s0wlz (Matthias Puchstein)" Date: Sun, 17 May 2026 17:36:23 +0200 Subject: [PATCH] nu: add rewatch command to sys.nu --- .gemini/settings.json | 10 ---------- dot_config/autostart/OpenCloud.desktop | 11 +++++++++++ dot_config/nushell/sys.nu | 11 +++++++++++ dot_gemini/themes/apex-aeon.json | 24 ------------------------ dot_gemini/themes/apex-neon.json | 24 ------------------------ 5 files changed, 22 insertions(+), 58 deletions(-) delete mode 100644 .gemini/settings.json create mode 100644 dot_config/autostart/OpenCloud.desktop delete mode 100644 dot_gemini/themes/apex-aeon.json delete mode 100644 dot_gemini/themes/apex-neon.json diff --git a/.gemini/settings.json b/.gemini/settings.json deleted file mode 100644 index 7ca6cb9..0000000 --- a/.gemini/settings.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "hooksConfig": { - "disabled": [ - "security-gate", - "slm-memory-sync", - "dynamic-context", - "slm-observe" - ] - } -} \ No newline at end of file diff --git a/dot_config/autostart/OpenCloud.desktop b/dot_config/autostart/OpenCloud.desktop new file mode 100644 index 0000000..e8a6ca2 --- /dev/null +++ b/dot_config/autostart/OpenCloud.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Name=OpenCloud Desktop +GenericName=File Synchronizer +Exec=/usr/bin/opencloud +Terminal=false +Icon=opencloud +Categories=Network +Type=Application +StartupNotify=false +X-GNOME-Autostart-enabled=true +X-GNOME-Autostart-Delay=10 \ No newline at end of file diff --git a/dot_config/nushell/sys.nu b/dot_config/nushell/sys.nu index 8b31573..00334ce 100644 --- a/dot_config/nushell/sys.nu +++ b/dot_config/nushell/sys.nu @@ -14,6 +14,17 @@ def ports [] { | sort-by port } +# Repeatedly clears and reruns a closure — nu-native watch replacement +def rewatch [interval: duration, cmd: closure] { + loop { + clear + let dim = $env.config.color_config.hints + print $"(ansi --escape $dim)(date now | format date '%H:%M:%S')(ansi reset)" + do $cmd + sleep $interval + } +} + # Environment variables as a filterable sorted table def envs [query?: string] { $env | transpose key value diff --git a/dot_gemini/themes/apex-aeon.json b/dot_gemini/themes/apex-aeon.json deleted file mode 100644 index a1d3e92..0000000 --- a/dot_gemini/themes/apex-aeon.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "Apex Aeon", - "type": "custom", - "Background": "#f5f5f5", - "Foreground": "#0a0a0a", - "LightBlue": "#33bccc", - "AccentBlue": "#007a88", - "AccentPurple": "#7a3cff", - "AccentCyan": "#33bccc", - "AccentGreen": "#00b377", - "AccentYellow": "#d18f00", - "AccentRed": "#ff0044", - "Comment": "#737373", - "Gray": "#a0a0a0", - "DiffAdded": "#00b377", - "DiffRemoved": "#ff0044", - "DiffModified": "#d18f00", - "text": { - "primary": "#0a0a0a", - "secondary": "#737373", - "accent": "#007a88", - "response": "#0a0a0a" - } -} \ No newline at end of file diff --git a/dot_gemini/themes/apex-neon.json b/dot_gemini/themes/apex-neon.json deleted file mode 100644 index db11b47..0000000 --- a/dot_gemini/themes/apex-neon.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "Apex Neon", - "type": "custom", - "Background": "#050505", - "Foreground": "#ededed", - "LightBlue": "#5af3ff", - "AccentBlue": "#00eaff", - "AccentPurple": "#9d00ff", - "AccentCyan": "#5af3ff", - "AccentGreen": "#00ff99", - "AccentYellow": "#ffb700", - "AccentRed": "#ff0044", - "Comment": "#737373", - "Gray": "#404040", - "DiffAdded": "#00ff99", - "DiffRemoved": "#ff0044", - "DiffModified": "#ffb700", - "text": { - "primary": "#ededed", - "secondary": "#737373", - "accent": "#00eaff", - "response": "#ededed" - } -} \ No newline at end of file