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.
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.
- mrneilypops
- Bad Advice Dog
- Posts: 143
- Joined: Wed Oct 17, 2012 9:15 pm
- Location: Luxembourg
- Contact:
Framebuffer colorscheme chooser persistance
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?
I really like Baconator Reichswolf...easy on the eyes!
What would be the recommended way to do this?
Re: Framebuffer colorscheme chooser persistance
In the script you use to launch the framebuffer term.
Code: Select all
. /path/to/theme
- mrneilypops
- Bad Advice Dog
- Posts: 143
- Joined: Wed Oct 17, 2012 9:15 pm
- Location: Luxembourg
- Contact:
Re: Framebuffer colorscheme chooser persistance
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?
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?
- wuxmedia
- Grasshopper
- Posts: 6454
- Joined: Wed Oct 17, 2012 11:32 am
- Location: Back in Blighty
- Contact:
Re: Framebuffer colorscheme chooser persistance
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.
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.
Re: Framebuffer colorscheme chooser persistance
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.
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.
Re: Framebuffer colorscheme chooser persistance
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:
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.
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
-
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
- Contact:
- mrneilypops
- Bad Advice Dog
- Posts: 143
- Joined: Wed Oct 17, 2012 9:15 pm
- Location: Luxembourg
- Contact:
Re: Framebuffer colorscheme chooser persistance
@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?
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?
-
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
- Contact:
- mrneilypops
- Bad Advice Dog
- Posts: 143
- Joined: Wed Oct 17, 2012 9:15 pm
- Location: Luxembourg
- Contact:
Re: Framebuffer colorscheme chooser persistance
@machinebacon
Super cool...thanks!
Super cool...thanks!
-
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
- Contact:
Re: Framebuffer colorscheme chooser persistance
@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
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.
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
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..
Re: Framebuffer colorscheme chooser persistance
It is there now, I added it about 20 minutes before I responded to this.machinebacon wrote: WARNING: Do not mention "thanks, but Reichswolf is not in the list!!" because else I lose my shit.
- ChefIronBelly
- Approved BBQer
- Posts: 1044
- Joined: Mon Jan 13, 2014 6:01 am
- Location: Michigan
Re: Framebuffer colorscheme chooser persistance
Seriously thanks for all the work.
(1/1) Installing: LinuxBBQ...................................[69%]==============[/]
-
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
- Contact:
Re: Framebuffer colorscheme chooser persistance
@Joe: Thank you! I'll add some more from console_colors as time allows. Lot of copy-pasting :)
..gnutella..
- mrneilypops
- Bad Advice Dog
- Posts: 143
- Joined: Wed Oct 17, 2012 9:15 pm
- Location: Luxembourg
- Contact:
Re: Framebuffer colorscheme chooser persistance
You Guys Rock!