aboutsummaryrefslogtreecommitdiff
path: root/nixos/profiles/workstation/scripts
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2026-01-06 22:54:41 +0100
committerMartin Fischer <martin@push-f.com>2026-01-06 23:28:28 +0100
commit1c0fb275f3f302d6abc3ef560a80ceec8a8e6b8c (patch)
treee06201a62fa7fe8fff13d2919fa5b822bd79356f /nixos/profiles/workstation/scripts
parentd788e8e4eea02ba6a7ebdec54aa9120b82d05410 (diff)
refactor: move scripts to cmd50
Diffstat (limited to 'nixos/profiles/workstation/scripts')
-rwxr-xr-xnixos/profiles/workstation/scripts/deploy-dir17
-rw-r--r--nixos/profiles/workstation/scripts/reset-bg4
-rw-r--r--nixos/profiles/workstation/scripts/set-bg5
3 files changed, 0 insertions, 26 deletions
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 <local_dir> <ssh_dest> <remote_dir>"
- 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"