summaryrefslogtreecommitdiff
path: root/nixos/profiles/workstation/scripts/set-bg
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/profiles/workstation/scripts/set-bg')
-rw-r--r--nixos/profiles/workstation/scripts/set-bg2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/profiles/workstation/scripts/set-bg b/nixos/profiles/workstation/scripts/set-bg
index e78afdc..2ed0a78 100644
--- a/nixos/profiles/workstation/scripts/set-bg
+++ b/nixos/profiles/workstation/scripts/set-bg
@@ -1,3 +1,5 @@
#!/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"