Console Theme Switcher

Submitted scripts and programs
Forum rules
Your own work only.
User avatar
DebianJoe
Frame Buffer
Posts: 1915
Joined: Mon Jul 01, 2013 5:41 am
Location: emacs.d

Re: Console Theme Switcher

Unread post by DebianJoe » Tue Oct 29, 2013 4:39 am

Adding a Zenburn theme as well. Had to research who actually wrote this theme..
|>>BBQ Roaster, Alpha Branch<< | >> clinky << | >> X11 must die << |
Thanks BASIC

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: Console Theme Switcher

Unread post by machinebacon » Tue Oct 29, 2013 4:44 am

pushed some lines, don't know if it worked (around an hour ago)
..gnutella..

User avatar
DebianJoe
Frame Buffer
Posts: 1915
Joined: Mon Jul 01, 2013 5:41 am
Location: emacs.d

Re: Console Theme Switcher

Unread post by DebianJoe » Tue Oct 29, 2013 4:51 am

I had made some of the same comment fixes, so it took a second to merge from cli. All ready to go, I believe. Thanks for the artwork and assistance good sir. ;D

Side note: While playing with some of these on killx this morning, I was trying to figure out if it looked better to go with the color0 or the background on G-Slob's Nature Suede. The wife walks by and says "Wow, that's really pretty."

The moral of the story: everyone loves Slobber themes. ;)
|>>BBQ Roaster, Alpha Branch<< | >> clinky << | >> X11 must die << |
Thanks BASIC

User avatar
DebianJoe
Frame Buffer
Posts: 1915
Joined: Mon Jul 01, 2013 5:41 am
Location: emacs.d

Re: Console Theme Switcher

Unread post by DebianJoe » Tue Oct 29, 2013 9:11 am

Starting to work on porting the emacs "tango dark" theme to the script.
|>>BBQ Roaster, Alpha Branch<< | >> clinky << | >> X11 must die << |
Thanks BASIC

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: Console Theme Switcher

Unread post by machinebacon » Tue Oct 29, 2013 11:03 am

Is solarized (light/dark) already in the making?
..gnutella..

User avatar
DebianJoe
Frame Buffer
Posts: 1915
Joined: Mon Jul 01, 2013 5:41 am
Location: emacs.d

Re: Console Theme Switcher

Unread post by DebianJoe » Tue Oct 29, 2013 11:11 am

I haven't started them yet. Nobody else has said anything either. I don't think so.
|>>BBQ Roaster, Alpha Branch<< | >> clinky << | >> X11 must die << |
Thanks BASIC

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: Console Theme Switcher

Unread post by machinebacon » Tue Oct 29, 2013 11:17 am

Maybe we are lucky and the dev already has them ready...

Code: Select all

$base03:    #002b36;
$base02:    #073642;
$base01:    #586e75;
$base00:    #657b83;
$base0:     #839496;
$base1:     #93a1a1;
$base2:     #eee8d5;
$base3:     #fdf6e3;
$yellow:    #b58900;
$orange:    #cb4b16;
$red:       #dc322f;
$magenta:   #d33682;
$violet:    #6c71c4;
$blue:      #268bd2;
$cyan:      #2aa198;
$green:     #859900;
and

Code: Select all

SOLARIZED HEX     16/8 TERMCOL  XTERM/HEX   L*A*B      RGB         HSB
--------- ------- ---- -------  ----------- ---------- ----------- -----------
base03    #002b36  8/4 brblack  234 #1c1c1c 15 -12 -12   0  43  54 193 100  21
base02    #073642  0/4 black    235 #262626 20 -12 -12   7  54  66 192  90  26
base01    #586e75 10/7 brgreen  240 #585858 45 -07 -07  88 110 117 194  25  46
base00    #657b83 11/7 bryellow 241 #626262 50 -07 -07 101 123 131 195  23  51
base0     #839496 12/6 brblue   244 #808080 60 -06 -03 131 148 150 186  13  59
base1     #93a1a1 14/4 brcyan   245 #8a8a8a 65 -05 -02 147 161 161 180   9  63
base2     #eee8d5  7/7 white    254 #e4e4e4 92 -00  10 238 232 213  44  11  93
base3     #fdf6e3 15/7 brwhite  230 #ffffd7 97  00  10 253 246 227  44  10  99
yellow    #b58900  3/3 yellow   136 #af8700 60  10  65 181 137   0  45 100  71
orange    #cb4b16  9/3 brred    166 #d75f00 50  50  55 203  75  22  18  89  80
red       #dc322f  1/1 red      160 #d70000 50  65  45 220  50  47   1  79  86
magenta   #d33682  5/5 magenta  125 #af005f 50  65 -05 211  54 130 331  74  83
violet    #6c71c4 13/5 brmagenta 61 #5f5faf 50  15 -45 108 113 196 237  45  77
blue      #268bd2  4/4 blue      33 #0087ff 55 -10 -45  38 139 210 205  82  82
cyan      #2aa198  6/6 cyan      37 #00afaf 60 -35 -05  42 161 152 175  74  63
green     #859900  2/2 green     64 #5f8700 60 -20  65 133 153   0  68 100  60
..gnutella..

User avatar
DebianJoe
Frame Buffer
Posts: 1915
Joined: Mon Jul 01, 2013 5:41 am
Location: emacs.d

Re: Console Theme Switcher

Unread post by DebianJoe » Wed Oct 30, 2013 8:17 am

As of the last push, we've got
Gutterslob's AikoFog
Image
Anon Astromouse
Image
Baskerville's CountvonCount
Image
Bacon's Cuppa
Image
Doomicide's Dark Ocean
Image
Baskerville's FarSide
Image
Anon's Insignificato
Image
Baskerville's Ivory Light
Image
Gutterslob's Lumifoo
Image
OK100's Matrix
Image
Wuxmedia's Mono
Image
Gutterslob's Nature Suede
Image
Bacon's Precision
Image
Bacon's Reichwolf
Image
Bacon's Scotch Cut Mixture
Image
Anon Solarized Dark
Image
Anon Solarized Light
Image
Rooster's SOS
Image
Emacs TangoDark
Image
Gutterslob's Visiblue
Image
..and Jani's Zenburn
Image

If there are any themes that need to be included beyond this, or any artists that need to be credited for work (I attribute themes I don't know the author of to anon), then please let me know or put in a pull with the proper credits. Some of the themes could still use some minor tweaking for console usage, but I'm no artist. Still, I hope that this covers the basics.
|>>BBQ Roaster, Alpha Branch<< | >> clinky << | >> X11 must die << |
Thanks BASIC

User avatar
rhowaldt
Dog
Posts: 4565
Joined: Wed Oct 17, 2012 9:01 am
Contact:

Re: Console Theme Switcher

Unread post by rhowaldt » Wed Oct 30, 2013 9:49 am

very, very cool. nice collection.
All statements are true in some sense, false in some sense, meaningless in some sense, true and false in some sense, true and meaningless in some sense, false and meaningless in some sense, and true and false and meaningless in some sense.

User avatar
GekkoP
Emacs Sancho Panza
Posts: 5878
Joined: Tue Sep 03, 2013 7:05 am

Re: Console Theme Switcher

Unread post by GekkoP » Wed Oct 30, 2013 10:03 am

Awesome!

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: Console Theme Switcher

Unread post by machinebacon » Wed Oct 30, 2013 12:03 pm

thank you debbie for posting and janitoring! got a surprise for you...
..gnutella..

User avatar
wuxmedia
Grasshopper
Posts: 6454
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: Console Theme Switcher

Unread post by wuxmedia » Wed Oct 30, 2013 12:51 pm

amazing work Joe!
and baconslob nice sexy themes, Xresources version available, or NoX only ?
"Seek, and Ye shall find"
"Github | Chooons | Site"

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: Console Theme Switcher

Unread post by machinebacon » Wed Oct 30, 2013 1:22 pm

noX only :)

But I can make them for Xresources once I finished "dat surprise"
..gnutella..

User avatar
DebianJoe
Frame Buffer
Posts: 1915
Joined: Mon Jul 01, 2013 5:41 am
Location: emacs.d

Re: Console Theme Switcher

Unread post by DebianJoe » Wed Oct 30, 2013 1:50 pm

machinebacon wrote:thank you debbie for posting and janitoring! got a surprise for you...
Ohhhh. Looking forward to it. I appreciate the help on this one. It was very mundane, but was something that I thought was a good idea.
|>>BBQ Roaster, Alpha Branch<< | >> clinky << | >> X11 must die << |
Thanks BASIC

User avatar
wuxmedia
Grasshopper
Posts: 6454
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: Console Theme Switcher

Unread post by wuxmedia » Wed Oct 30, 2013 2:07 pm

@bacon cool, I have no probs with them being NoX only 8)
as you wish, i like the reichwolf
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
ivanovnegro
Minister of Truth
Posts: 5449
Joined: Wed Oct 17, 2012 11:12 pm

Re: Console Theme Switcher

Unread post by ivanovnegro » Thu Oct 31, 2013 2:00 am

Oh, fuck, awesome, already playing here with a bunch of scripts.

User avatar
GekkoP
Emacs Sancho Panza
Posts: 5878
Joined: Tue Sep 03, 2013 7:05 am

Re: Console Theme Switcher

Unread post by GekkoP » Thu Oct 31, 2013 10:34 am

Testing it here and there. Works like a charm, thanks guys. And you already put in there my fav schemes, so I can't be much of a help. ;)

User avatar
DebianJoe
Frame Buffer
Posts: 1915
Joined: Mon Jul 01, 2013 5:41 am
Location: emacs.d

Re: Console Theme Switcher

Unread post by DebianJoe » Mon Nov 04, 2013 7:32 am

I added Dkeg's Flower Drive-By, Autumn, and Vintage for console because they look great. It's really hard to choose which ones to include. Anyone else have a personal favorite that I should include or should I simply add as many as possible? Having a better front-end (like MB's) is probably going to be a REALLY good idea if this keeps growing at the rate that it currently is.

I am considering simply writing a "pager" kind of ncurses menu, which I brought up elsewhere, which would simply be a call to the script with the correct arguments being passed to the script. I like that it was such a simple implementation to start with, but I'm going to have to start passing the simple "ccolors" as "ccolors | less" to even be able to read all of the possible themes.

Thoughts on the "best" way to handle this?
|>>BBQ Roaster, Alpha Branch<< | >> clinky << | >> X11 must die << |
Thanks BASIC

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: Console Theme Switcher

Unread post by machinebacon » Mon Nov 04, 2013 7:41 am

I would say the best is to have all the 'colors' exported in a file or many files:

Version A) separated with a certain string, so that the front-end (whichever it is) can parse it, and that no color codes need to be added to the ccolors/fbcolors scripts.

Code: Select all

#%Visiblue by gutterslob
....
#EOF
#%mono by wuxmedia
....
#EOF
the frontend would then read the parts between #% and #EOF..., put the #% line as selection into a menu. No idea how complicated this might be.

Version B) Having separated files like "visiblue.ccolor" and "mono.ccolor" to read from, each file starting with the name of the colour scheme to be displayed in the frontend.

I'd rather do the second option because it is modular.

Of course the front-end should be able to take options, so that a GUI is not needed to be shown if the theme name is known and added as option.
..gnutella..

User avatar
DebianJoe
Frame Buffer
Posts: 1915
Joined: Mon Jul 01, 2013 5:41 am
Location: emacs.d

Re: Console Theme Switcher

Unread post by DebianJoe » Mon Nov 04, 2013 8:01 am

...you know, if we were REALLY bad-ass, we'd make it so that there were both console coloring and Xresources coloring options available from the same pager. Such as "Program start > color theme selection > what you want to export the theme to (console, Xterm, URxvt, etc.). We could also look at implementing a section setup for Rho's Palleter. (palatter, pallater), which could generate new themes that could be cross-implemented into console or X if we take into considerations that BG and FG don't exist in console and that normally, ]p0 is generally better with BG than color0.

This would be a pretty massive setup, but I think that the final result would be worth the trouble. I can do Version B where the user can add files, which I'd probably use Python for because it's good at parsing configs without having to be too strict with the formatting. The initial idea was just to have something light and simple for swapping some colors around, but it's getting HUGE very quickly.

I'm open to suggestions, but I'm thinking that this might be a really interesting project. (Before "Unix Philosophy" comes up, we'd have to specify that the project's goal is to 'change colorschemes in <whatever> programs' because we can't possibly cover ALL of the bases.)

Edit: I may be getting carried away, but I'm just brainstorming at this point. I tend to dislike overly complicated programs, so I would still like to make it as simple as possible, but with the creation of a foobar.ccolor file type that is constructed in a simple structure, it would provide the possibility of being exported to other formats relatively easily.
|>>BBQ Roaster, Alpha Branch<< | >> clinky << | >> X11 must die << |
Thanks BASIC

Post Reply