Last active
December 4, 2015 00:09
-
-
Save ShadowKyogre/e4672b7708191fd8ae71 to your computer and use it in GitHub Desktop.
termite -> fbterm escape codes. Could be extended to also handle porting Xdefaults too.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for num in {0..15};do | |
color="$(grep "^color${num}\s\+" "${1:-${HOME}/.config/termite/config}"|grep -o "[0-9a-f]\{3,6\}$")" | |
rhex="${color:0:2}" | |
ghex="${color:2:2}" | |
bhex="${color:4:2}" | |
r="$((0x${rhex}))" | |
g="$((0x${ghex}))" | |
b="$((0x${bhex}))" | |
echo "echo -ne \"\e[3;${num};${r};${g};${b}}\"" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# http://web.archive.org/web/20150225020624/http://phraktured.net/linux-console-colors.html | |
for num in {0..15};do | |
color="$(grep "^color${num}\s\+" "${1:-${HOME}/.config/termite/config}"|grep -o "[0-9a-f]\{3,6\}$")" | |
hexnum="$(printf "%x" "${num}")" | |
echo "echo -ne \"\e]P${hexnum}${color}\"" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment