Framebuffer colorscheme chooser persistance

Forum rules
We don't support installations in VirtualBox, VMWare, qemu or others. We ignore posts about WINE, PlayOnLinux, Steam and Skype. We don't support btrfs, lvm, UEFI, side-by-side installations with GPT or dualboot with anything newer than Windows XP.
Google your problem first. Check the Wiki. Read the existing threads. It's okay to "hijack" an existing thread, yes! If your problem is not yet covered, open a new thread. To get the quickest possible help, mention the exact release codename in your post (uname -a is a good idea, too). Due to the lack of crystal balls, attach the output of lspci -nnk if you encounter hardware problems.
User avatar
mrneilypops
Bad Advice Dog
Posts: 143
Joined: Wed Oct 17, 2012 9:15 pm
Location: Luxembourg
Contact:

Framebuffer colorscheme chooser persistance

Unread post by mrneilypops » Wed Feb 26, 2014 2:08 pm

I would like to make my choice of framebuffer colour persistant between boots.
I really like Baconator Reichswolf...easy on the eyes!

What would be the recommended way to do this?

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

Re: Framebuffer colorscheme chooser persistance

Unread post by DebianJoe » Wed Feb 26, 2014 2:46 pm

In the script you use to launch the framebuffer term.

Code: Select all

. /path/to/theme
|>>BBQ Roaster, Alpha Branch<< | >> clinky << | >> X11 must die << |
Thanks BASIC

User avatar
mrneilypops
Bad Advice Dog
Posts: 143
Joined: Wed Oct 17, 2012 9:15 pm
Location: Luxembourg
Contact:

Re: Framebuffer colorscheme chooser persistance

Unread post by mrneilypops » Wed Feb 26, 2014 2:54 pm

I should be more specific...sorry.
Using Spring 2014 release there is an option on the login screen to choose a framebuffer colour scheme.
How can I make this choice stick through a reboot?

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

Re: Framebuffer colorscheme chooser persistance

Unread post by wuxmedia » Wed Feb 26, 2014 3:01 pm

What Joe said,
adding that line to the .bashrc or .profile (I guess) - will 'source' the script.
There may already be one in there.

you could add it to the colour chooser script if you wanted, I suppose.
"Seek, and Ye shall find"
"Github | Chooons | Site"

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

Re: Framebuffer colorscheme chooser persistance

Unread post by DebianJoe » Wed Feb 26, 2014 3:08 pm

I may have a different release of Spring than you, because I don't have a cool box that lets me set framebuffer colors.

So, if you have the modular scripts (as per the linuxbbq github), then you only need to source the theme you like. Since you mention one that I don't think has been added to the github, I assume that it's running the older console_colors script. In that case, you want to not only source the file that is being called to set the colors, but provide the argv that will choose the theme you want.

If that does not perfectly suit your needs, you can copy the escapes directly into your .bashrc or .profile as echo'd environment variables.
|>>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: Framebuffer colorscheme chooser persistance

Unread post by DebianJoe » Wed Feb 26, 2014 3:41 pm

Well, I've been not reading release notes since LONG before I got here, which means that quite often I don't have any idea of what MB "intends" for me to do. So, let's just pretend that he/I totally forgot your cool/awesome/ricer script, but we really want his theme in our linux console/framebuffer. Well, I guess I could go looking for it, but much like the time he had my fstab set to mount /dev/sda14...he might be drunk and forgot to add it after buying a huge bag of cocaine. But luckily, I don't need to be bothered with if I don't understand any of it. I DO know what the reichswolf should look like, so....I'll just make that shizzle happen without calling a script from another script.

Somewhere in your .bashrc or .profile or .zshrc, or whatever gets read every time you open a shell. Hack this in:

Code: Select all

echo -en "\e]P0727c79" 
echo -en "\e]P8CAC26E" 
echo -en "\e]P14D4600" 
echo -en "\e]P9757040" 
echo -en "\e]P24E4A1D" 
echo -en "\e]PA5B7425" 
echo -en "\e]P3181D0C" 
echo -en "\e]PB3E5310" 
echo -en "\e]P4414735" 
echo -en "\e]PC181D0C" 
echo -en "\e]P5282E1A" 
echo -en "\e]PD592611" 
echo -en "\e]P61F2423"
echo -en "\e]PE7B4028"
echo -en "\e]P71A2C28"
echo -en "\e]PF101615"
clear
Now, I can let Baconator get back to drinking Crystal with some Asian girls on his yacht while I enjoy his colorscheme in my framebuffer every time it is opened.
|>>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: Framebuffer colorscheme chooser persistance

Unread post by machinebacon » Wed Feb 26, 2014 4:01 pm

yes, it's in the making :)
..gnutella..

User avatar
mrneilypops
Bad Advice Dog
Posts: 143
Joined: Wed Oct 17, 2012 9:15 pm
Location: Luxembourg
Contact:

Re: Framebuffer colorscheme chooser persistance

Unread post by mrneilypops » Wed Feb 26, 2014 4:19 pm

@DebianJoe
Thanks for the tips.

What I would like to be able to do is;
->Choose a framebuffer colorscheme from login menu.
->This theme becomes the default framebuffer theme through reboot until I decide to change it from the login menu.

Would this be feasible?

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

Re: Framebuffer colorscheme chooser persistance

Unread post by machinebacon » Wed Feb 26, 2014 5:21 pm

yes, it's in the making.
..gnutella..

User avatar
mrneilypops
Bad Advice Dog
Posts: 143
Joined: Wed Oct 17, 2012 9:15 pm
Location: Luxembourg
Contact:

Re: Framebuffer colorscheme chooser persistance

Unread post by mrneilypops » Wed Feb 26, 2014 5:35 pm

@machinebacon
Super cool...thanks!

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

Re: Framebuffer colorscheme chooser persistance

Unread post by machinebacon » Wed Feb 26, 2014 5:57 pm

@joe: for the sake of completeness, the nice thing that fires up in everything-but-not-spring is the '/usr/local/bin/bbqlogin' with the menu point /usr/local/bin/fbcolors

Of course the selected theme does not stick after a reboot.

Long story short:

1) git clone https://github.com/linuxbbq/xcolors
2) sudo nano /usr/local/bin/fbuffer

Code: Select all

#!/bin/bash
ls ~/xcolors/fb_colors/
echo "Which theme to use (without extension)?"
read THEME
TMPFILE=/tmp/fb_store
touch $TMPFILE
cp .bashrc .bashrc_backup
. ~/xcolors/fb_colors/$THEME
clear
env-info
sed '/fb_colors/d' < ~/.bashrc > $TMPFILE
mv $TMPFILE ~/.bashrc
echo ". ~/xcolors/fb_colors/$THEME && clear" >> ~/.bashrc
3) sudo chmod a+x /usr/local/bin/fbuffer

that's all. Of course this will fuck up your terminal in X - that's why there is a "clear" behind it.

WARNING: Do not mention "thanks, but Reichswolf is not in the list!!" because else I lose my shit.
..gnutella..

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

Re: Framebuffer colorscheme chooser persistance

Unread post by DebianJoe » Wed Feb 26, 2014 6:10 pm

machinebacon wrote: WARNING: Do not mention "thanks, but Reichswolf is not in the list!!" because else I lose my shit.
It is there now, I added it about 20 minutes before I responded to this.
|>>BBQ Roaster, Alpha Branch<< | >> clinky << | >> X11 must die << |
Thanks BASIC

User avatar
ChefIronBelly
Approved BBQer
Posts: 1044
Joined: Mon Jan 13, 2014 6:01 am
Location: Michigan

Re: Framebuffer colorscheme chooser persistance

Unread post by ChefIronBelly » Wed Feb 26, 2014 6:15 pm

Seriously thanks for all the work.
(1/1) Installing: LinuxBBQ...................................[69%]==============[/]

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

Re: Framebuffer colorscheme chooser persistance

Unread post by machinebacon » Wed Feb 26, 2014 6:26 pm

@Joe: Thank you! I'll add some more from console_colors as time allows. Lot of copy-pasting :)
..gnutella..

User avatar
mrneilypops
Bad Advice Dog
Posts: 143
Joined: Wed Oct 17, 2012 9:15 pm
Location: Luxembourg
Contact:

Re: Framebuffer colorscheme chooser persistance

Unread post by mrneilypops » Wed Feb 26, 2014 6:53 pm

You Guys Rock!

Post Reply