rewrapped linux shell
This commit is contained in:
parent
cb2adf53a8
commit
db2b7b713b
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/usr/bin/zsh
|
||||||
|
|
||||||
TARGET="$HOME/.config/wryn/tty-colorscheme"
|
TARGET="$HOME/.config/wryn/tty-colorscheme"
|
||||||
[ ! -f $TARGET ] && TARGET="$DOTWRYN/config/kitty/theme.conf"
|
[ ! -f $TARGET ] && TARGET="$DOTWRYN/config/kitty/theme.conf"
|
||||||
@ -7,23 +7,24 @@ GET_COLOR_FROM_KITTY_THEME() {
|
|||||||
grep "$1" $TARGET | awk '{print $2}' | sed 's/ //g; s/#//g' | tr '[:lower:]' '[:upper:]'
|
grep "$1" $TARGET | awk '{print $2}' | sed 's/ //g; s/#//g' | tr '[:lower:]' '[:upper:]'
|
||||||
}
|
}
|
||||||
|
|
||||||
/bin/echo -e "\
|
[[ "$TERM" =~ ^linux$ ]] && {
|
||||||
\e]P0$(GET_COLOR_FROM_KITTY_THEME '^background ')
|
/bin/echo -e "\
|
||||||
\e]P1$(GET_COLOR_FROM_KITTY_THEME '^color1 ')
|
\e]P0$(GET_COLOR_FROM_KITTY_THEME '^background ')
|
||||||
\e]P2$(GET_COLOR_FROM_KITTY_THEME '^color2 ')
|
\e]P1$(GET_COLOR_FROM_KITTY_THEME '^color1 ')
|
||||||
\e]P3$(GET_COLOR_FROM_KITTY_THEME '^color3 ')
|
\e]P2$(GET_COLOR_FROM_KITTY_THEME '^color2 ')
|
||||||
\e]P4$(GET_COLOR_FROM_KITTY_THEME '^color4 ')
|
\e]P3$(GET_COLOR_FROM_KITTY_THEME '^color3 ')
|
||||||
\e]P5$(GET_COLOR_FROM_KITTY_THEME '^color5 ')
|
\e]P4$(GET_COLOR_FROM_KITTY_THEME '^color4 ')
|
||||||
\e]P6$(GET_COLOR_FROM_KITTY_THEME '^color6 ')
|
\e]P5$(GET_COLOR_FROM_KITTY_THEME '^color5 ')
|
||||||
\e]P7$(GET_COLOR_FROM_KITTY_THEME '^foreground ')
|
\e]P6$(GET_COLOR_FROM_KITTY_THEME '^color6 ')
|
||||||
\e]P8$(GET_COLOR_FROM_KITTY_THEME '^color9 ')
|
\e]P7$(GET_COLOR_FROM_KITTY_THEME '^foreground ')
|
||||||
\e]P9$(GET_COLOR_FROM_KITTY_THEME '^color10 ')
|
\e]P8$(GET_COLOR_FROM_KITTY_THEME '^color9 ')
|
||||||
\e]PA$(GET_COLOR_FROM_KITTY_THEME '^color11 ')
|
\e]P9$(GET_COLOR_FROM_KITTY_THEME '^color10 ')
|
||||||
\e]PB$(GET_COLOR_FROM_KITTY_THEME '^color12 ')
|
\e]PA$(GET_COLOR_FROM_KITTY_THEME '^color11 ')
|
||||||
\e]PC$(GET_COLOR_FROM_KITTY_THEME '^color13 ')
|
\e]PB$(GET_COLOR_FROM_KITTY_THEME '^color12 ')
|
||||||
\e]PD$(GET_COLOR_FROM_KITTY_THEME '^color14 ')
|
\e]PC$(GET_COLOR_FROM_KITTY_THEME '^color13 ')
|
||||||
\e]PE$(GET_COLOR_FROM_KITTY_THEME '^color7 ')
|
\e]PD$(GET_COLOR_FROM_KITTY_THEME '^color14 ')
|
||||||
\e]PF$(GET_COLOR_FROM_KITTY_THEME '^color15 ')
|
\e]PE$(GET_COLOR_FROM_KITTY_THEME '^color7 ')
|
||||||
"
|
\e]PF$(GET_COLOR_FROM_KITTY_THEME '^color15 ')
|
||||||
|
"
|
||||||
[[ "$TERM" = "linux" ]] && clear
|
clear
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user