Add all of my scripts.
This commit is contained in:
52
scripts/iris.sh
Normal file
52
scripts/iris.sh
Normal file
@@ -0,0 +1,52 @@
|
||||
#!/usr/bin/env bash
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
# Version 2024/01/28 - Changelog: https://gist.github.com/AriRexouium/17dde617d245a6a7e91878974719d42c
|
||||
# Iris Color Library
|
||||
# This script sets all forground & background colors and graphic modifiers to variables.
|
||||
# Based on: https://gist.github.com/fnky/458719343aabd01cfb17a3a4f7296797
|
||||
#
|
||||
# Usage: source ./iris.sh
|
||||
#
|
||||
# License:
|
||||
# This script is licensed under the GNU General Public License v3.0 or later.
|
||||
# For more information, see https://www.gnu.org/licenses/gpl-3.0.html
|
||||
# Copyright (C) 2023 Jarrett Aiken <jarret.aiken@achl.fr> (https://achl.fr)
|
||||
|
||||
ES="\x1B"
|
||||
|
||||
# Foreground Bright
|
||||
FBla="$ES[30m" FBBla="$ES[90m" # Black
|
||||
FRed="$ES[31m" FBRed="$ES[91m" # Red
|
||||
FGre="$ES[32m" FBGre="$ES[92m" # Green
|
||||
FYel="$ES[33m" FBYel="$ES[93m" # Yellow
|
||||
FBlu="$ES[34m" FBBlu="$ES[94m" # Blue
|
||||
FPur="$ES[35m" FBPur="$ES[95m" # Purple
|
||||
FCya="$ES[36m" FBCya="$ES[96m" # Cyan
|
||||
FWhi="$ES[37m" FBWhi="$ES[97m" # White
|
||||
RFor="$ES[39m" # Default Foreground
|
||||
|
||||
# Background Bright
|
||||
BBla="$ES[40m" BBBla="$ES[100m" # Black
|
||||
BRed="$ES[41m" BBRed="$ES[101m" # Red
|
||||
BGre="$ES[42m" BBGre="$ES[102m" # Green
|
||||
BYel="$ES[43m" BBYel="$ES[103m" # Yellow
|
||||
BBlu="$ES[44m" BBBlu="$ES[104m" # Blue
|
||||
BPur="$ES[45m" BBPur="$ES[105m" # Purple
|
||||
BCya="$ES[46m" BBCya="$ES[106m" # Cyan
|
||||
BWhi="$ES[47m" BBWhi="$ES[107m" # White
|
||||
RBac="$ES[49m" # Default Background
|
||||
|
||||
# Graphics Reset
|
||||
SBol="$ES[1m" RBol="$ES[22m" # Bold
|
||||
SDim="$ES[2m" RDim="$ES[22m" # Dim
|
||||
SIta="$ES[3m" RIta="$ES[23m" # Italic
|
||||
SUnd="$ES[4m" RUnd="$ES[24m" # Underline
|
||||
SDun="$ES[21m" RDun="$ES[24m" # Double Underline
|
||||
SBli="$ES[5m" RBli="$ES[25m" # Blinking
|
||||
SInv="$ES[7m" RInv="$ES[27m" # Inverse
|
||||
SHid="$ES[8m" RHid="$ES[28m" # Hidden
|
||||
SStr="$ES[9m" RStr="$ES[29m" # Strikethrough
|
||||
RAll="$ES[0m" # Reset All
|
||||
Reference in New Issue
Block a user