Search:  
Gentoo Wiki

TIP_Show_and_Hide_the_ROX-panel

A small script to show and hide the ROX-panel. This is very useful if you like me use ROX together with ie. Fluxbox and don't use the pinboard and don't like to have the panel displayed all the time but like to juse use it sometimes for ie. dragging files to some kind of handlers from the ROX-Filer.


Instructions:

Make a new dir where you store your ROX applications, ~/Choices/apps/ROX/ in my case and name it ShowHidePanel.

Make a new file, name it AppRun and put the following there:

#!/bin/sh

APP_DIR=`dirname "$0"` export APP_DIR

if [ -f "/tmp/ROX_PANEL_VISIBLE" ]
then
  rm "/tmp/ROX_PANEL_VISIBLE"
  exec rox --left=
else  
  touch "/tmp/ROX_PANEL_VISIBLE"
  exec rox --left=PANEL
fi

Also put a file named AppInfo.xml there where you put:

<?xml version="1.0"?> 
<AppInfo>
  <Summary>Show/Hide ROX-panel</Summary>
  <About>
    <Purpose>Show and Hide the ROX-panel</Purpose>
    <Version>0.0.1</Version>
    <Authors>Nimo</Authors>
    <License>GNU General Public License</License>
    <Homepage></Homepage>
  </About>
</AppInfo>

Run the script and let the panel come up, if you also want a button on the panel to hide the panel just drag the dir to the panel.

Now it's time to make some smart way of calling the script, you can for example bind it to some key. And you can also make it come up automatically when you insert an USB memory stick.

Retrieved from "http://www.gentoo-wiki.info/TIP_Show_and_Hide_the_ROX-panel"

Last modified: Fri, 05 Sep 2008 08:31:00 +0000 Hits: 4,556