aboutsummaryrefslogtreecommitdiff
path: root/common/scripts/utils/hex2rgb.sh
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2025-09-24 05:45:26 +0200
committersrdusr <trevorgray@srdusr.com>2025-09-24 05:45:26 +0200
commitd96a422496fe3a6b80659a720e63c6abc41b7de9 (patch)
tree20f90abb5ce91875a40027333efbb52877902132 /common/scripts/utils/hex2rgb.sh
parent521215add7da7fef6722c7b5adec839b84d72db0 (diff)
parenta1627ac743289e768b138f1a60753a62e0869cc4 (diff)
downloaddotfiles-d96a422496fe3a6b80659a720e63c6abc41b7de9.tar.gz
dotfiles-d96a422496fe3a6b80659a720e63c6abc41b7de9.zip
Add 'common/scripts/' from commit 'a1627ac743289e768b138f1a60753a62e0869cc4'
git-subtree-dir: common/scripts git-subtree-mainline: 521215add7da7fef6722c7b5adec839b84d72db0 git-subtree-split: a1627ac743289e768b138f1a60753a62e0869cc4
Diffstat (limited to 'common/scripts/utils/hex2rgb.sh')
-rwxr-xr-xcommon/scripts/utils/hex2rgb.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/scripts/utils/hex2rgb.sh b/common/scripts/utils/hex2rgb.sh
new file mode 100755
index 0000000..a8ccc38
--- /dev/null
+++ b/common/scripts/utils/hex2rgb.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+hex="${1}"
+printf "R: %d G: %d B: %d\n" 0x"${hex:0:2}" 0x"${hex:2:2}" 0x"${hex:4:2}"