From 1c0fb275f3f302d6abc3ef560a80ceec8a8e6b8c Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Tue, 6 Jan 2026 22:54:41 +0100 Subject: refactor: move scripts to cmd50 --- nixos/profiles/workstation/scripts/deploy-dir | 17 ----------------- nixos/profiles/workstation/scripts/reset-bg | 4 ---- nixos/profiles/workstation/scripts/set-bg | 5 ----- 3 files changed, 26 deletions(-) delete mode 100755 nixos/profiles/workstation/scripts/deploy-dir delete mode 100644 nixos/profiles/workstation/scripts/reset-bg delete mode 100644 nixos/profiles/workstation/scripts/set-bg (limited to 'nixos/profiles/workstation/scripts') diff --git a/nixos/profiles/workstation/scripts/deploy-dir b/nixos/profiles/workstation/scripts/deploy-dir deleted file mode 100755 index f90a4ae..0000000 --- a/nixos/profiles/workstation/scripts/deploy-dir +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash -# Replaces the contents of a remote directory with the contents of a local directory. - -if [ "$#" -ne 3 ]; then - echo "usage: $0 " - exit 1 -fi -printf -v remote_dir %q $3 - -cd $1 -tar cf - . | ssh $2 "set -xe -TEMP_DIR=\$(mktemp -d) -cd \$TEMP_DIR -tar xvf - -rm -rf $remote_dir -mv \$TEMP_DIR $remote_dir -" diff --git a/nixos/profiles/workstation/scripts/reset-bg b/nixos/profiles/workstation/scripts/reset-bg deleted file mode 100644 index 049954d..0000000 --- a/nixos/profiles/workstation/scripts/reset-bg +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash -# Resets the background color of the current foot terminal to the default. - -echo -en "\033]111\007" diff --git a/nixos/profiles/workstation/scripts/set-bg b/nixos/profiles/workstation/scripts/set-bg deleted file mode 100644 index 2ed0a78..0000000 --- a/nixos/profiles/workstation/scripts/set-bg +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash -# Sets the background color of the current foot terminal to the given hex color. - -rgb_with_slashes=$(echo "$1" | sed -r 's,(..)(..),\1/\2/,') -echo -en "\033]11;rgb:$rgb_with_slashes\007" -- cgit v1.3.1