Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 19 Jul 2019, 10:28
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
How to open Rox Panels at startup/as toggles? [Solved]
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 3 [31 Posts]   Goto page: 1, 2, 3 Next
Author Message
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1601
Location: nyc

PostPosted: Fri 06 Jun 2014, 20:13    Post subject:  How to open Rox Panels at startup/as toggles? [Solved]  

I don't really use the rox panels much, but i probably would if the inconvenience of reloading them at every boot were taken out of the process.

is there a script i can use or an option i'm overlooking?

thanks in advance.


edit: the old subtitle of "rather than clicking a desktop icon, scrolling down, manually loading each one..." switched out for "speed dial frames: access anything with speed and ease" and the main title changed to include reference to the new found toggling ability.

Last edited by Puppus Dogfellow on Thu 12 Jun 2014, 22:43; edited 4 times in total
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 14232
Location: Gatineau (Qc), Canada

PostPosted: Sat 07 Jun 2014, 00:35    Post subject: Re: How Do You Set Rox Panels To Appear At Startup?
Subject description: rather than clicking a desktop icon, scrolling down, manually loading each one...
 

Puppus Dogfellow wrote:
I don't really use the rox panels much, but i probably would if the inconvenience of reloading them at every boot were taken out of the process.

is there a script i can use or an option i'm overlooking?

thanks in advance.


Hi, Puppus.

Put this mini-script in /root/Startup:

Code:
#!/bin/sh
# left.sh
# Purpose: put a rox panel at the left of the screen at startup.
# Can also act as a switch to close and open the panel.
####
ROXCONF="/root/.config/rox.sourceforge.net/ROX-Filer"
[ "`grep left $ROXCONF/panels`" ] && rox -l= || rox -l=left


Make the script executable, of course. You may also want to drag it at the top left of the
screen with a little pill-type icon and give it a key combination such as Ctrl-Alt-KP_Left.
(Control-Alt-KeyPad #4). Then it is always at your fingertips.

The codes for the other sides are:
rox -r=some_name -> panel at the right.
rox -t=some_other_name -> panel on top
rox -b=still_another_name -> panel at the bottom

The simplest way to populate a panel is by dragging a program or directory onto it while
it is opened (on screen). As you can see in the attached, I have put most of the icons in
the usual "Puppy triangle" in the rox panel at the left.

Don't forget to make backups of the panels that you have created. They will be located at
/root/.config/rox.sourceforge.net/ROX-Filer

I hope this helps. BFN.

musher0
capture17529.jpg
 Description   How to make a ubuntu desktop designer jealous!
 Filesize   36.71 KB
 Viewed   1130 Time(s)

capture17529.jpg


_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1601
Location: nyc

PostPosted: Sat 07 Jun 2014, 01:03    Post subject:  

adding the following to startup and changing the permissions gives all four at startup or click:

Code:
#!/bin/sh
rox --right=PANEL
rox --left=PANEL
rox --top=PANEL
rox --bottom=PANEL

------------------------
musher0 wrote:


Put this mini-script in /root/Startup:

Code:
#!/bin/sh
# left.sh
# Purpose: put a rox panel at the left of the screen at startup.
# Can also act as a switch to close and open the panel.
####
ROXCONF="/root/.config/rox.sourceforge.net/ROX-Filer"
[ "`grep left $ROXCONF/panels`" ] && rox -l= || rox -l=left


[...]

The codes for the other sides are:
rox -r=some_name -> panel at the right.
rox -t=some_other_name -> panel on top
rox -b=still_another_name -> panel at the bottom

musher0

thanks musher. i came up with the above and was coming here to see if i could adapt your on-off method from a recent post to this, but now that you're here/have seen this--

1. how do i make this into an on-off switch (it works as an on switch) in this form?
2. what's the advantage to renaming them as in your code rather than what i came up with from looking at #rox -h?

i've noticed the originals still appear if i click on an icon and scroll (they're stuffed to the gills), but the script gives me fresh ones which are true to the most recent modifications. does this mean you could just keep populating scripts like this with different sets of panels?

thanks again and in advance.
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 14232
Location: Gatineau (Qc), Canada

PostPosted: Sat 07 Jun 2014, 09:30    Post subject:  

Answer to your Question 1:

Make sure you start with an emply "panels" file before you activate the switch the first time. Simplest way:
* close any open panel with "right-click on the panel" --> "Remove panel"
* open the panels file in your editor and remove whatever is in it. Save.
* Now go back on your desktop and click on the on/off "pill" icon for the one (1; uno; un) Smile panel. It will now work.

~~~~~~~~
You have four panel commands in your script: yikes!
The four panels have the same name: yikes!

Individualize. One script, only, per panel. That way, you won't get a headache!
~~~~~~~~

Which leads us to your Question 2:
The advantage is that you can have as many panels as you need.

Also please notice the capitals in "PANELS" in rox -h. The word is used as a generic, not as the real name of a panel.

You can have two or three panels for any side if you name them differently.

Say, on the left side,

one for programs, called by
rox -l=left-programs

one for folders, called by
rox -l=left folders

And so on.

I hope this helps.

musher0

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1601
Location: nyc

PostPosted: Sat 07 Jun 2014, 19:07    Post subject:  

so what's the correct syntax to modify
Code:
&& rox -l= || rox -l=left
so that it allows me to close all four panels at once? would it then just become the last line of the script? this is my second set of four and the top will never be bottom nor the left the right, etc. configurations (size, contents, position of icons) are saved and bound to this script. i'd just comment out a line if for some reason i found a particular panel disagreeable. they're set to autohide, so i doubt i'd have much cause to deactivate them once set and tweaked, but i'd like the option to do so with a single click.

would this:

Code:
&& rox -l= || rox -l=left
&& rox -t= || rox -t=top
&& rox -b= || rox -b=bottom
&& rox -r= || rox -r=right


work, or is there a (preferred) way to join those commands, such as one line with commas or semicolons?


thanks in advance, musher0.

i use three narrow bars for the sides that don't have the taskbar, a wider panel for the side that does--i end up duplicating programs, files, and folders just for convenience sake--i'm not really worried about needing more panels than these four, though, as i said, i still have the four i made through the right click a desktop icon method--they're seen as a distinct set even though i've never named any panel individually, possibly because they were simply created at a different time.
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1601
Location: nyc

PostPosted: Sun 08 Jun 2014, 03:51    Post subject:  

musher, thank you for

Code:
#!/bin/sh
ROXCONF="/root/.config/rox.sourceforge.net/ROX-Filer"
[ "`grep left $ROXCONF/panels`" ] && rox -l= || rox -l=left
ROXCONF="/root/.config/rox.sourceforge.net/ROX-Filer"
[ "`grep right $ROXCONF/panels`" ] && rox -r= || rox -r=right
ROXCONF="/root/.config/rox.sourceforge.net/ROX-Filer"
[ "`grep top $ROXCONF/panels`" ] && rox -t= || rox -t=top
ROXCONF="/root/.config/rox.sourceforge.net/ROX-Filer"
[ "`grep bottom $ROXCONF/panels`" ] && rox -b= || rox -b=bottom


--it's what i was after and a third set of panels to work with, one that will likely now be the main set, seeing as how it's at the very least a large yet unobtrusive universal speed dial for programs, files, and folders.

making various combinations of popup panels will be easy with this template. i get how to comment out (a # placed before a line would render the line invisible to the script), but i'm only reasonably sure about how to rename the panel in this code--all i have to change is the text after the last equal sign? in other words, using the last one as an example, "...-b=bott2m[/code]" gives me a panel also set for the bottom, but called "bott2m"?

thanks again/in advance for the code/lesson.

...

helpful tip when using it as a speed dial: dragging the script itself to the panels makes them easier to close--i put it on the jwm menu as well.
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 14232
Location: Gatineau (Qc), Canada

PostPosted: Sun 08 Jun 2014, 10:55    Post subject:  

Hello, Puppus_D.

A note concerning your script above: you only need to define the ROXCONF variable
once, at the top of the script. It will be valid for the other lines of the script as well.
~~~~~~~~~~~~

In the same line of thought, here is a multi-switch script that can open two left-side ROX
panels one after the other and then close the last panel.

The comments are in English and in French. (I will notify on the French side of the forum too.)

I am publishing it for study and adaptation. In other words: study it before you adapt it! Smile

Enjoy.

musher0

~~~~~~~~~~~~

Code:
#!/bin/sh
# $ROXCONF/a-gauche.sh
# (c) Christian L'Écuyer (aka / alias musher0), 8 juin 2014, Gatineau (Qc),
# Canada. Tous droits réservés. / All rights reserved.
####
# Un-comment (remove the "#" signs) the part you need, and comment
# (put "#" signs at the beginning of the line) the part you don't need.
# ////////////////////////
# Dé-commenter la partie dont vous avez besoin (enlever les dièzes), et
# commenter (placer des dièzes au début de la ligne) la partie dont vous
# n'avez pas besoin.
####
# Use this part if you have two or more panels. / Pour 2 panneaux ou plus.
# a) Controlling two or more left-side ROX panels with one script
##
ROXCONF="/root/.config/rox.sourceforge.net/ROX-Filer"
PAN="`awk '{print $1}' $ROXCONF/panels`"
case $PAN in
   gauche)rox -l=gf;;
# Note to anglophones:
# in this case, gf means "gestionnaire de fichiers", not "girl friend"! :)
#
# If the 1st panel is active, activate the 2nd one. /
# Si le 1er panneau est actif, activer le 2e.
#
# You can add more panels here, / Vous pouvez ajouter d'autres panneaux ici
# using the same syntax. //////////// en utilisant la même syntaxe.
#
   gf)rox -l=;;
# If the last panel is active, close it. /
# Si le dernier panneau est actif, le fermer.

   *)rox -l=gauche;;
# Note to anglophones: in this case, "gauche" means "left", not "awkward".
#
# If no panel is active, activate the 1st one. /
# Si aucun panneau n'est actif, activer le 1er.

esac
####
# Use the following part if you have only one ROX panel. / Pour 1 panneau.
# b) Controlling only one left-side ROX panel with one script
# if [ "`grep gauche $ROXCONF/panels`" ] && rox -l= || rox -l=left
# # Note aux francophones: "left" signifie "à gauche".
## 30 ##
a-gauche.sh.zip
Description  Same script as above, zipped. I've put it in /root/.config/rox.sourceforge.net/ROX-Filer.
zip

 Download 
Filename  a-gauche.sh.zip 
Filesize  1.01 KB 
Downloaded  303 Time(s) 
FM-panel_Apps-panel_no-panel.jpg
 Description   A composite of three different snapshots of the left side of my screen after clicking on the
blue vertical left-panel "pill". From left to right: my file management ROX panel (1st click),
my apps panel (2nd click), and no panel (3rd click).
 Filesize   24.96 KB
 Viewed   972 Time(s)

FM-panel_Apps-panel_no-panel.jpg


_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1601
Location: nyc

PostPosted: Sun 08 Jun 2014, 12:36    Post subject:  

thanks again, musher.

Code:
#!/bin/sh
ROXCONF="/root/.config/rox.sourceforge.net/ROX-Filer"
[ "`grep left $ROXCONF/panels`" ] && rox -l= || rox -l=left
[ "`grep right $ROXCONF/panels`" ] && rox -r= || rox -r=right
[ "`grep top $ROXCONF/panels`" ] && rox -t= || rox -t=top
[ "`grep bottom $ROXCONF/panels`" ] && rox -b= || rox -b=bottom

# comment out (place a # before) line(s) to make it a 3, 2, or 1 panel toggle.
# rename the script and the text after "grep" (matching the latter to
# the text after each line's second equals sign) to have alternate
# sets of (1-4) panels as toggles.

is much nicer.

a user could set up popup application suites with versions of this script, maybe setting regions of the desktop as "hotspots" for them (with an invisible icon or similar).

your idea to have them as a rolodex is also interesting.
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 14232
Location: Gatineau (Qc), Canada

PostPosted: Mon 09 Jun 2014, 09:51    Post subject:  

Puppus Dogfellow wrote:
thanks again, musher.

Code:
#!/bin/sh
ROXCONF="/root/.config/rox.sourceforge.net/ROX-Filer"
[ "`grep left $ROXCONF/panels`" ] && rox -l= || rox -l=left
[ "`grep right $ROXCONF/panels`" ] && rox -r= || rox -r=right
[ "`grep top $ROXCONF/panels`" ] && rox -t= || rox -t=top
[ "`grep bottom $ROXCONF/panels`" ] && rox -b= || rox -b=bottom

# comment out (place a # before) line(s) to make it a 3, 2, or 1 panel toggle.
# rename the script and the text after "grep" (matching the latter to
# the text after each line's second equals sign) to have alternate
# sets of (1-4) panels as toggles.

is much nicer.

a user could set up popup application suites with versions of this script, maybe setting regions of the desktop as "hotspots" for them (with an invisible icon or similar).

your idea to have them as a rolodex is also interesting.


Indeed, the above script is easily understandable. The comment couldn't
be clearer.

Do you think you can provide an illustration of a desktop with all 4 ROX
panels enabled? It may be educational Smile to show a picture of "a case of
acute panelitis" Smile to newbies!

BFN.

musher0

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1601
Location: nyc

PostPosted: Mon 09 Jun 2014, 21:55    Post subject:  



musher0 wrote:


[...]

Do you think you can provide an illustration of a desktop with all 4 ROX
panels enabled? It may be educational Smile to show a picture of "a case of
acute panelitis" Smile to newbies!

BFN.

musher0


here's one i just started to show comparative panel widths. keeping the name of a file gives it more space, and you can play around with icon size and occupiable space to suit your tastes. it can run scripts (the panel toggle script itself is at the upper right, along with three other scripts, one the rox bookmark speed dial cheat sheet Mochi came up with, ...), including "launch this website with this browser" type stuff--folder speed dial, file+preferred application speed dial--whatever you want.

taking it further, you can make four or so versions of the script, give them an icon, make the set a slot and roll out on the jwm menu (or is that still just a pipe...).

to move around an icon, middle click or you will end up just duplicating it. you load up the panel by dragging items to it. you're not limited to the screen space as it auto scrolls past the physical border, but it will only place icons towards the middle when the ends fill up. you can drag desktop items or folder items to the panel and off the panel as if it were just an extension of the desktop--it follows those rules i.e. it's a link to a directory, not the directory itself--deleting it deletes the link, not the folder and its contents.
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 5583
Location: Republic of Novo Zelande

PostPosted: Tue 10 Jun 2014, 03:25    Post subject:  

<chuckle> Man thats funny - you've really gotta keep that cat off the keyboard Smile

I've never seen any puppy quite like it. Breaking new ground that's for sure.
Dunno what you had for breakfast but I want some.
Laughing
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 14232
Location: Gatineau (Qc), Canada

PostPosted: Tue 10 Jun 2014, 10:38    Post subject:  

@greengeek.

Forget the cat, can't you see Puppus is entering a Mondrian phase! Very Happy
(Great artist, Mondrian, great artist!) Very Happy


_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)

Last edited by musher0 on Tue 10 Jun 2014, 10:46; edited 2 times in total
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 14232
Location: Gatineau (Qc), Canada

PostPosted: Tue 10 Jun 2014, 10:43    Post subject:  

@Puppus,

(Sorry for the Mondrian comparison!) Smile

What's that black "belt" at the bottom of you screen? That's not a ROX panel, is it?

Thanks in advance.

À+

musher0

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1601
Location: nyc

PostPosted: Tue 10 Jun 2014, 12:09    Post subject:  

greengeek wrote:
<chuckle> Man thats funny - you've really gotta keep that cat off the keyboard Smile

I've never seen any puppy quite like it. Breaking new ground that's for sure.
Dunno what you had for breakfast but I want some.
Laughing


no cat, just some primate who can't seem to leave well enough alone.
Rolling Eyes



musher0 wrote:
@Puppus,

(Sorry for the Mondrian comparison!) Smile

What's that black "belt" at the bottom of you screen? That's not a ROX panel, is it?

Thanks in advance.

À+

musher0


i'll take the mondrian comparison--quite fond of ol' Piet myself. (covered by the top rox panel (knew i should've dragged it to one) is my applications folder, the icon of which is a clay sculpture of a Munchish contorted face painted over with Mondrian lines and blocks--i think the original was supposed to be some sort of play on Abstract Expressionism.
Wink
)

As to the black bar across the bottom, you mean the JWM taskbar? the buttons are all custom, the xload thing is missing, and it's packed with minimized windows, but i think it's still pretty identifiable. anyway, is that what you're asking about? it's running a slightly modified tema aurora theme. (just the pop up backing color is changed on this one, i think. i usually change that from yellow to light blue-green and make the active window's icon more visible with purple and flatness, an unnecessary step on this particular computer because my head's practically against the screen when using it).
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1601
Location: nyc

PostPosted: Thu 12 Jun 2014, 22:40    Post subject:  



6 panel toggle sets as a menu item in JWM; a before and after shot of a fresh toggle set with its default setting intact except for the identifying/activating/deactivating P5 that can be seen on two of the panels. panels will expand to fit 96 pixel icons and shrink to accommodate 16 pixel choices--the largest current icon determines the the upper limit (i think the smallest dot-icons actually shrink it to less than 16, but 96 is the upper limit--long titles can make it exceed this in width, though; you can have some pretty enormous buttons and/or some pretty miniscule ones.

details on how to do this here

(scroll down in that thread for updated version).

every time a panel script (/desktop icon/menu item/panel icon) is clicked, it covers the previous panel set. any script clicked twice in a row closes all the panels. dragging the Puppy Panel Pack folder to a panel in each set provides an easy way to switch between them.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 3 [31 Posts]   Goto page: 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0767s ][ Queries: 13 (0.0109s) ][ GZIP on ]