Openbox/Fbpanel, How to set it all up.
System uptime not active. Terminal command also gives double read-out, however, this gives single readout:stu90 wrote:Hi DaveS,
I had a look in /sbin i don't have any pfbpanel in there on lucid 260?
Could you check to make sure system uptime is not active in the pfbpanel gui - also what happens when you put this command in the terminal, do you get a double readout?
cat /proc/acpi/thermal_zone/*/temperature
cheers.
Code: Select all
cat /proc/acpi/thermal_zone/TZ00/temperature
Hacked that into script at line 1488 and it shows single display. Dont know if this would be true for all computers though.
Guess with regard to pfbpanel being in /sbin/ as well as /usr/sbin, must be something I did in relation to installing the previous upgrade from mrd.
- Attachments
-
- hack.png
- (7.57 KiB) Downloaded 2923 times
Spup Frugal HD and USB
Root forever!
Root forever!
Hi again DaveS,
Forget about my post above, it works in the terminal but for some reason not in the script.
Instead try:
awk 'NR==1 {print $2}' /proc/acpi/thermal_zone/*/temperature
Forget about my post above, it works in the terminal but for some reason not in the script.
Instead try:
awk 'NR==1 {print $2}' /proc/acpi/thermal_zone/*/temperature
Code: Select all
Command = "echo \$(awk 'NR==1 {print \$2}' /proc/acpi/thermal_zone/*/temperature )ºC" >> $DEFAULT
Working fine nowstu90 wrote:Hi again DaveS,
Forget about my post above, it works in the terminal but for some reason not in the script.
Instead try:
awk 'NR==1 {print $2}' /proc/acpi/thermal_zone/*/temperatureCode: Select all
Command = "echo \$(awk 'NR==1 {print \$2}' /proc/acpi/thermal_zone/*/temperature )ºC" >> $DEFAULT
Spup Frugal HD and USB
Root forever!
Root forever!
Transparency is not working correctly. I get transparency, but with about a 10% tint darker than the background.stu90 wrote:Hi again DaveS,
Forget about my post above, it works in the terminal but for some reason not in the script.
Instead try:
awk 'NR==1 {print $2}' /proc/acpi/thermal_zone/*/temperatureCode: Select all
Command = "echo \$(awk 'NR==1 {print \$2}' /proc/acpi/thermal_zone/*/temperature )ºC" >> $DEFAULT
I had to change line 1000 to tintcolor #ffffff to get it to work. This is the same as the original.
Spup Frugal HD and USB
Root forever!
Root forever!
Swap fbpanel menu for openbox menu
This is a quick guide for swamping the fbpanel menu for openbox right click menu - tested in Lucid puppy.
Step 1.
First download then install the xdotool-2.20110530.1-3.pet at the bottom of this post.
Step 2.
Now we need to edit the openbox rc.xml file to make a new key binding.
Navigate to /root/.config/openbox/rc.xml and open the file as text ( right mouse click open as text)
This is the code we need to add at around line 157:
After you have added this code it should now look like this:
Step 3.
Now we need to add a new Launcher for the Fbpanel in the Fbpanel configuration GUI.
Menu > Desktop > Desktop Settings > Fbpanel configuration
First.
Go to the Plugins tab - in the Show Menu option set it to False
Second.
Still in the Fbpanel configuration GUI - In the Launchbar tab we need to set the Use Launch bar for programs option to True
Then in the Enter Executable then Tool tip entry box we need to exter the comand:
Lastly we need to set an icon for the new Fbpanel Launcher in the Select Icon entry. ( note icons have to be located in /usr/share/fbpanel/images )
I suggest entering the standard Fbpanel menu icon for this guide.
/usr/share/fbpanel/images/start-button.png
Your Launchbar tab in Fbpanel configuration GUI should now look like this:
While still in the Fbpanel configuration GUI go back to the Main tab an click Ok to save your new Fbpanel settings.
If all has gone well your Fbpanel should restart and when you click on the menu icon instead of opening the Fbpanel menu it should open your openbox right click menu.
Note. As we added a new key binding above you can also now open the openbox menu by pressing the keys Ctril+Alt+q
This is a quick guide for swamping the fbpanel menu for openbox right click menu - tested in Lucid puppy.
Step 1.
First download then install the xdotool-2.20110530.1-3.pet at the bottom of this post.
Step 2.
Now we need to edit the openbox rc.xml file to make a new key binding.
Navigate to /root/.config/openbox/rc.xml and open the file as text ( right mouse click open as text)
This is the code we need to add at around line 157:
Code: Select all
<keybind key="A-C-q">
<action name="ShowMenu">
<menu>root-menu</menu>
</action>
</keybind>
Step 3.
Now we need to add a new Launcher for the Fbpanel in the Fbpanel configuration GUI.
Menu > Desktop > Desktop Settings > Fbpanel configuration
First.
Go to the Plugins tab - in the Show Menu option set it to False
Second.
Still in the Fbpanel configuration GUI - In the Launchbar tab we need to set the Use Launch bar for programs option to True
Then in the Enter Executable then Tool tip entry box we need to exter the comand:
Code: Select all
xdotool key ctrl+alt+q:menu
I suggest entering the standard Fbpanel menu icon for this guide.
/usr/share/fbpanel/images/start-button.png
Your Launchbar tab in Fbpanel configuration GUI should now look like this:
While still in the Fbpanel configuration GUI go back to the Main tab an click Ok to save your new Fbpanel settings.
If all has gone well your Fbpanel should restart and when you click on the menu icon instead of opening the Fbpanel menu it should open your openbox right click menu.
Note. As we added a new key binding above you can also now open the openbox menu by pressing the keys Ctril+Alt+q
It is tricky. You can change the colour of the clock font using pupclockset. To change the other font colours, you have to edit /usr/sbin/pfbpanel. Lets take a look at Uptime. In /usr/sbin/pfbpanel you will find this section of code around line 1420:magerlab wrote:very usefull and nice additions to fbpanel:)
the only thing i need is to change white font to black. can this be done anyhow?
Code: Select all
if [ "`cat $CONFIG | grep UTYES | cut -f 2 -d '='`" = true ]; then
echo Plugin \{ >> $DEFAULT
echo type = space >> $DEFAULT
echo config \{ >> $DEFAULT
echo size = 6 >> $DEFAULT
echo \} >> $DEFAULT
echo \} >> $DEFAULT
col="#ffffff"
echo Plugin \{ >> $DEFAULT
echo type = genmon >> $DEFAULT
echo config \{ >> $DEFAULT
echo Command = "echo \$(uptime |grep "," | tr ',' ' ' | awk '{print \$3 }')" >> $DEFAULT
echo PollingTime = 8 >> $DEFAULT
echo TextSize = large >> $DEFAULT
echo TextColor = $col >> $DEFAULT
echo \} >> $DEFAULT
echo \} >> $DEFAULT
fi
Change this colour code to whatever you want, save and exit, refresh fbpanel and you should have what you want.
You can do the same for the other plug-ins wherever a colour is expressed. If no colour key is shown, it means that particular plug-in does not accept the colour parameter.
Sorry it is so awkward.
Spup Frugal HD and USB
Root forever!
Root forever!
Set wallpaper with openbox pipemenu.
Here is a mini guide and the scripts needed to add a pipe menu to openbox that will display all .jpg and .png images in a directory as a menu entry and then apply which ever is selected as a desktop wallpaper.
First download the two scripts at the bottom of this post - then right click > rename and delete the fake .gz extension for both scripts.
Now right click on each script > properties and tick the three boxes under the Exec column - this makes the scripts executable.
If you open this script as text near the top you will see
setwalle script:
This is the script that sets the background wallpaper - move this to /usr/bin
wallp.sh script:
This is the script that generates the openbox pipe menu - move this to /etc/xdg/openbox/scripts
(if you don't have a scripts directory there create one then put wallp.sh inside it.)
If you open this script as text near the top is:
WALLDIR="/usr/share/backgrounds"
This is the directory the script looks in for wallpapers - if your wallpapers are stored in a different directory delete the path between to two quote marks and enter the path to you own wallpaper directory.
WALLDIR="/path/to/my/wallpapers"
This next part can be quite tricky as we now need to add to the main openbox menu the new wallpaper pipe menu.
/etc/xdg/openbox/menu_top.xml
/etc/xdg/openbox/menu_bottom.xml
/etc/xdg/openbox/menu.xml
These are the three files you could add the new pipe menu to - i have added mine to /etc/xdg/openbox/menu_top.xml
Navigate to this file and open as text - then paste the code above on the line above this one:
<menu id="root-menu" label="Puppy Linux">
Now save the file and open a terminal window and enter the command fixmenus
If all has gone well you should now have a new menu that lists all your wallpapers and when you click on one it should be applied as you desktop wallpaper.
First download the two scripts at the bottom of this post - then right click > rename and delete the fake .gz extension for both scripts.
Now right click on each script > properties and tick the three boxes under the Exec column - this makes the scripts executable.
If you open this script as text near the top you will see
setwalle script:
This is the script that sets the background wallpaper - move this to /usr/bin
wallp.sh script:
This is the script that generates the openbox pipe menu - move this to /etc/xdg/openbox/scripts
(if you don't have a scripts directory there create one then put wallp.sh inside it.)
If you open this script as text near the top is:
WALLDIR="/usr/share/backgrounds"
This is the directory the script looks in for wallpapers - if your wallpapers are stored in a different directory delete the path between to two quote marks and enter the path to you own wallpaper directory.
WALLDIR="/path/to/my/wallpapers"
This next part can be quite tricky as we now need to add to the main openbox menu the new wallpaper pipe menu.
Code: Select all
<menu execute="/etc/xdg/openbox/scripts/wallp.sh" id="wallp-menu" label="Wallpapers"/>
/etc/xdg/openbox/menu_bottom.xml
/etc/xdg/openbox/menu.xml
These are the three files you could add the new pipe menu to - i have added mine to /etc/xdg/openbox/menu_top.xml
Navigate to this file and open as text - then paste the code above on the line above this one:
<menu id="root-menu" label="Puppy Linux">
Now save the file and open a terminal window and enter the command fixmenus
If all has gone well you should now have a new menu that lists all your wallpapers and when you click on one it should be applied as you desktop wallpaper.
- Attachments
-
- setwalle.gz
- delete fake .gz and move to /usr/bin
- (1.03 KiB) Downloaded 602 times
-
- wallp.sh.gz
- delete fake .gz and move to /etc/xdg/openbox/scripts
- (549 Bytes) Downloaded 590 times
This is an Openbox pipe menu to open ROX Filer Bookmarks.
# Name this file bookmarks.sh by removing the .zip extension.
# Place in ~/.config/openbox. Make executable.
# Add the following line to ~/.config/openbox/menu.xml:
# Then click on Reconfigure in the Openbox menu.
# Name this file bookmarks.sh by removing the .zip extension.
# Place in ~/.config/openbox. Make executable.
# Add the following line to ~/.config/openbox/menu.xml:
Code: Select all
<menu id="Bookmarks" label="Bookmarks" execute="~/.config/openbox/bookmarks.sh"/>
- Attachments
-
- bookmarks.sh.zip
- (706 Bytes) Downloaded 627 times
-
- menu.jpg
- (20.09 KiB) Downloaded 1428 times
- Sky Aisling
- Posts: 1368
- Joined: Sat 27 Jun 2009, 23:02
- Location: Port Townsend, WA. USA
Openbox/Fbpanel, How to set it all up.
Hello,
Looks like there's not much activity on this thread, but, I'll try anyway.
Can Openbox be put on Puppy 571?
Machine has:
1.5GB RAM
75GB HDD
PAE
Precise Puppy 571 as full install on HDD.
I've downloaded the .pets from the first post of this thread.
Openbox shows in desktop settings menu, but, does not activate.
Openbox does not show as a menu item when doing a right click on desktop to show desktop menu. (On Lupu 528, Openbox shows below the *shutdown* option on the desktop menu.)
Download and installation appeared to go without issue.
Thank you in advance for any suggestions.
Edit:It appears that a windows manager switcher is needed. The only windows manager that is evident in the system is JWM.
Looks like there's not much activity on this thread, but, I'll try anyway.
Can Openbox be put on Puppy 571?
Machine has:
1.5GB RAM
75GB HDD
PAE
Precise Puppy 571 as full install on HDD.
I've downloaded the .pets from the first post of this thread.
Openbox shows in desktop settings menu, but, does not activate.
Openbox does not show as a menu item when doing a right click on desktop to show desktop menu. (On Lupu 528, Openbox shows below the *shutdown* option on the desktop menu.)
Download and installation appeared to go without issue.
Thank you in advance for any suggestions.
Edit:It appears that a windows manager switcher is needed. The only windows manager that is evident in the system is JWM.
Hmm... or maybe try "xwin openbox"...I think?
BTW, vicmz's fantastic OpenboxPlus 1.6.1 pet includes a wm switcher, IIRC (as well as Tint2) - and works beautifully in Precise 5.7.1... if you're OK with LxPanel instead of Fbpanel, that is.
http://murga-linux.com/puppy/viewtopic.php?t=86206
Bob
BTW, vicmz's fantastic OpenboxPlus 1.6.1 pet includes a wm switcher, IIRC (as well as Tint2) - and works beautifully in Precise 5.7.1... if you're OK with LxPanel instead of Fbpanel, that is.
http://murga-linux.com/puppy/viewtopic.php?t=86206
Bob