Intel ® P4 Extreme Edition 3.4 (Gallatin) || DFI ® LanParty PRO875B rev B1
Crucial ® Ballistix Tracer PC4000 1GB || Mountain Mods U2-UFO Opti-1203
XFX 7600GT 560M AGP (PV-T73A-UDF3) || Corsair HX520W Modular PSU
Xubuntu Narwhal. I don't suffer from the Unity Plague, and the memory usage is piddly. Plus, it runs it's own native compositor.
Eventually I gotta find the command in the OS where it spits out the OS install name. Not just the Kernel, the whole name. I've seen the Byobu command terminal use it, I'd like to find out how to make any command line spit it out on call.
Intel ® P4 Extreme Edition 3.4 (Gallatin) || DFI ® LanParty PRO875B rev B1
Crucial ® Ballistix Tracer PC4000 1GB || Mountain Mods U2-UFO Opti-1203
XFX 7600GT 560M AGP (PV-T73A-UDF3) || Corsair HX520W Modular PSU
Nope. Shows Ubuntu and not a lot else. Nice try though Vin. It's a "One Day" thing. As in, I'll figure it out "One Day"...
*EDIT* Though, that has led me to do some quasi-hacking of how it does that so I can do some changes of my own...
*EDIT2* Okay. Easy enough to put into Conky. Simple line to always get the release right no matter what upgrades you use.
Results in:Code:${exec lsb_release -si} ${exec lsb_release -sr} (${exec lsb_release -sc})
On slower machines using an execi 3600 or so might help, but for the most part it works the way it is. You just need to remember to edit the /etc/lsb-release file to change your distributor and codename from time to time when you're using a Ubuntu derivative.Code:Xubuntu 11.04 (Natty Narwhal)
Thanks Vin!
Last edited by 42dorian; May 21st, 2011 at 07:09 AM.
Intel ® P4 Extreme Edition 3.4 (Gallatin) || DFI ® LanParty PRO875B rev B1
Crucial ® Ballistix Tracer PC4000 1GB || Mountain Mods U2-UFO Opti-1203
XFX 7600GT 560M AGP (PV-T73A-UDF3) || Corsair HX520W Modular PSU
I'm gonna rock this for a while...
Code:################################## ## SYSTEM ## ################################## ${voffset 20}${font DroidSans:bold:size=8.25}${color4}SYSTEM${offset 8}${color8}${voffset -2}${hr 2}${font} ${voffset 4}${font OpenLogos:size=10}${color2}u${voffset -4}${font DroidSans:size=8.65}${color3}${offset 5}${pre_exec lsb_release -sd || cat /etc/*release}${font} ${voffset 1}${offset -2}${font OpenLogos:size=12}${color2}Z${voffset -4}${font DroidSans:size=8.65}${color3}${offset 4}${sysname}${offset 5}${kernel}${alignr}${font DroidSans:size=8.45}${machine}${font} ${voffset 2}${font StyleBats:size=10}${color2}A${voffset -1}${font DroidSans:size=8.65}${color3}${offset 5}Intel${offset 3}P4${offset 3}Extreme${offset 3}Edition${alignr}${font DroidSans:size=8.3}${freq_g cpu0}${offset 1}GHz${font} ${voffset 2}${font StyleBats:size=10}${color2}q${voffset -1}${font DroidSans:size=8.65}${color3}${offset 5}System${offset 3}Uptime${alignr}${font DroidSans:size=8.4}${uptime_short}${font}
Here's how it looks...
Who get dah cred?!?!?
Last edited by VinDSL; May 21st, 2011 at 11:01 PM.
Intel ® P4 Extreme Edition 3.4 (Gallatin) || DFI ® LanParty PRO875B rev B1
Crucial ® Ballistix Tracer PC4000 1GB || Mountain Mods U2-UFO Opti-1203
XFX 7600GT 560M AGP (PV-T73A-UDF3) || Corsair HX520W Modular PSU
I dunno Vin. Truthfully, I think you're wasting your time putting the || cat /etc/*release part in. It works without it.
Just... if you're using Xubuntu, Kubuntu, or Edubuntu... really anything that is a derivative of Ubuntu... doing it this way will probably result in it reporting Ubuntu as the system name instead of what it really is. If you want it accurate, you have to keep on your toes and edit the /etc/lsb_release file manually to update the Distributor and Code Name variables it contains. Then there's no need for the || cat section.
Very true! But, at the same time, this code won't work at all unless you've got it. You need another method if you don't have lsb_release. If you've got an idea on how to make that method work, I'm happy to test it! Finding a way that's universal would be very helpful.
Kind of like the weather code we use not working without kaivalagi's weather script installed. This is just the lsb_release method of getting the system distributor,version, and codename as a variable object instead of hard-coding it every time.
Got any ideas on other ways to do it, by chance?
Intel ® P4 Extreme Edition 3.4 (Gallatin) || DFI ® LanParty PRO875B rev B1
Crucial ® Ballistix Tracer PC4000 1GB || Mountain Mods U2-UFO Opti-1203
XFX 7600GT 560M AGP (PV-T73A-UDF3) || Corsair HX520W Modular PSU
Bookmarks