mirror of
https://git.ari.lt/ari.lt/ari.lt.git
synced 2025-02-04 17:49:24 +01:00
Improve bash generation in ttytheme
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
parent
7db9a85753
commit
5bf25117b9
1 changed files with 3 additions and 3 deletions
|
@ -62,11 +62,11 @@ export function generate_theme(query = "#theme-output") {
|
||||||
# Installation: Just add these lines to your ~/.bashrc
|
# Installation: Just add these lines to your ~/.bashrc
|
||||||
|
|
||||||
__tty_theme() {
|
__tty_theme() {
|
||||||
[ "$TERM" != 'linux' ] && return # Only run in a TTY
|
[ "$TERM" = 'linux' ] || return # Only run in a TTY
|
||||||
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
for (const key in tty_clrs) {
|
for (let key in tty_clrs) {
|
||||||
let key_rgb = tty_clrs[key].rgb;
|
let key_rgb = tty_clrs[key].rgb;
|
||||||
let key_hex = rgb_to_hex(key_rgb);
|
let key_hex = rgb_to_hex(key_rgb);
|
||||||
let rgb_str = `rgb(${key_rgb.join(", ")})`;
|
let rgb_str = `rgb(${key_rgb.join(", ")})`;
|
||||||
|
@ -148,7 +148,7 @@ function main() {
|
||||||
load_from_localtorage();
|
load_from_localtorage();
|
||||||
let menu = document.getElementById("menu");
|
let menu = document.getElementById("menu");
|
||||||
|
|
||||||
for (const key in tty_clrs) {
|
for (let key in tty_clrs) {
|
||||||
let [r, g, b] = tty_clrs[key].rgb;
|
let [r, g, b] = tty_clrs[key].rgb;
|
||||||
let picker = new_colourpicker(key, [r, g, b]);
|
let picker = new_colourpicker(key, [r, g, b]);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue