You are not logged in.

#1 2008-03-19 13:52:04

canistra
Member
Registered: 2007-11-03
Posts: 66

Share your Openbox Desktop ! :)

This theme has the purpose of helping people to configure their openbox desktop by analizing other openbox config files.

What should you post:

Screenshot

The Name of The Openbox and GTK Theme

The name of the running applications like trayer / awn e.t.c.

PyPanel/PerlPanel/fbpanel/tint or any other panels configuration file

~/.config/openbox/autostart.sh file

~/.config/openbox/menu.xml file

Conky config

Offline

#2 2008-03-19 14:20:48

dyscoria
Member
Registered: 2008-01-10
Posts: 1,007

Re: Share your Openbox Desktop ! :)

This could be done within the existing screenshot thread in all honesty. It's just that most people tend to post it up without an explanation of what DE/WM it is and other information. Just need some changing of habits.

It works well at the moment with people posting up conky configs etc only when requested, rather than by default. If you really want menu.xml and panel config files being shared, i would reccommend http://pastebin.com/


flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)

Offline

#3 2008-03-20 17:31:00

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: Share your Openbox Desktop ! :)

I think this is a good idea...after all, we do have dedicated xmonad and wmii threads.  Wading through the fluff in the archived screenshots threads for specific material can be a hassle. I'm just getting my openbox installation configured again after using xmonad for a few months. I'll post my configs and whatnot when they're ready.

On a side note, I was saddened to see that tint (ttm) has been abandoned. I personally don't use a taskbar, but it was a great tool so I hope someone picks it up.


thayer williams ~ cinderwick.ca

Offline

#4 2008-03-20 18:12:31

canistra
Member
Registered: 2007-11-03
Posts: 66

Re: Share your Openbox Desktop ! :)

200803202004231024x768skz3.th.png

OpenBox Theme: Nova-Arch
GTK Theme: Gaia

Running Apps: Trayer, Pidgin, Amarok, Transmission

Panel: PyPanel - Config:

#------------------------------------------------------------------------------
#
#                         PyPanel v2.4 Configuration
#
# This configuration file is a Python script that will be executed when
# PyPanel is started.  In order for PyPanel to start properly, make sure that
# this file contains proper Python formatting and no syntax errors.
#------------------------------------------------------------------------------
VERSION         = 2.4           # Config file version

#------------------------------------------------------------------------------
# Colors: Format is hex triplet - 0xrrggbb
#------------------------------------------------------------------------------
BG_COLOR        = "0xffffff"    # Panel background and tinting color
TASK_COLOR      = "0xffffff"    # Normal task name color 
FOCUSED_COLOR   = "0xffffff"    # Focused task name color
SHADED_COLOR    = "0xffffff"    # Shaded task name color 
MINIMIZED_COLOR = "0xffffff"    # Minimized task name color 
DESKTOP_COLOR   = "0xffffff"    # Desktop name color
CLOCK_COLOR     = "0xffffff"    # Clock text color
LINE_COLOR      = "0x606060"    # Vertical line color
SHADE           = 0

# Text Shadow Colors
TASK_SHADOW_COLOR      = "0xffffff"
FOCUSED_SHADOW_COLOR   = "0xffffff"
SHADED_SHADOW_COLOR    = "0xffffff"
MINIMIZED_SHADOW_COLOR = "0xffffff" 
DESKTOP_SHADOW_COLOR   = "0xffffff"
CLOCK_SHADOW_COLOR     = "0xffffff"

#------------------------------------------------------------------------------
# Panel Spacing and Location Options: Measured in pixels
#------------------------------------------------------------------------------
P_LOCATION      = 1             # Panel placement: 0 = top, 1 = bottom
P_WIDTH         = 0             # Panel width: 0 = Use full screen width
P_START         = 0             # Starting X coordinate of the panel
P_SPACER        = 6             # Spacing between panel objects
P_HEIGHT        = 24            # Panel height

#------------------------------------------------------------------------------
# Icon Size Options: Measured in pixels
#------------------------------------------------------------------------------
I_HEIGHT        = 16            # Panel application icon height
I_WIDTH         = 16            # Panel application icon Width 
APPL_I_HEIGHT   = 24            # Application launcher icon height
APPL_I_WIDTH    = 24            # Application launcher icon width
TRAY_I_HEIGHT   = 24            # System tray icon height (usually 16 or 24)
TRAY_I_WIDTH    = 24            # System tray icon width  (usually 16 or 24)
                                # If TRAY_I_WIDTH is set to 0, then the
                                # width specified by the tray app will be used
                                
#------------------------------------------------------------------------------
# Panel Clock Format: 'man strftime' for detailed formatting options and help
#------------------------------------------------------------------------------
CLOCK_FORMAT    = "%Y-%m-%d %H:%M"    # Ex: 2004-09-25 17:45 

#------------------------------------------------------------------------------
# Clock Delay: Seconds between each clock update during periods of inactivity
#------------------------------------------------------------------------------
CLOCK_DELAY     = 20

#------------------------------------------------------------------------------
# Hidden Application List: Apps listed here will not be display on the panel
# The application name is its WM_CLASS name, use 'xprop' to find WM_CLASS
# Ex: ["xmms", "xine", "gDesklets"]
#------------------------------------------------------------------------------
HIDE_LIST       = []            
                   
#------------------------------------------------------------------------------
# Hidden Panel Size: Size of the panel when it's hidden/minimized
#------------------------------------------------------------------------------
HIDDEN_SIZE     = 2

#------------------------------------------------------------------------------
# Panel Text Font: This option takes either a traditional or Xft font string 
# Ex: "-schumacher-clean-medium-r-normal-*-12-*-*-*-*-*-*-*"
#     "aquafont-8" 
#------------------------------------------------------------------------------
FONT            = "bitstream vera sans-8"

#------------------------------------------------------------------------------
# Show All Applications: Show apps from all desktops or just the current
# 0: Disabled - Only applications on the current desktop will be displayed
# 1: Enabled  - Selected apps are moved to the current desktop
# 2: Enabled  - Current desktop is changed to the selected apps desktop
#------------------------------------------------------------------------------
SHOWALL         = 0             # 0, 1 or 2 - see descriptions above

#------------------------------------------------------------------------------
# Show Minimized/Iconified Applications: Show only minimized apps or all apps
# 0: Disabled - Show all applications on the panel
# 1: Enabled  - Show only minimized apps on the panel
#------------------------------------------------------------------------------
SHOWMINIMIZED   = 0

#------------------------------------------------------------------------------
# Application Icon List: List of custom icons for specific applications
# The application name is its WM_CLASS name, use 'xprop' to find WM_CLASS
#
# The "default" entry is used for applications with no icon.  If left "",
# PyPanel will use the default icon distributed with the source.
#
# Add entries using the following format -
#     "<application name>" : "<full path to icon>",
#------------------------------------------------------------------------------
ICON_LIST       = {
                   "default" : "",
                   "example" : "/usr/share/imlib2/data/images/audio.png",
                  }
                  
#------------------------------------------------------------------------------
# Application Launch List: Ordered list of icons and applications for the
#                          application launcher.
# 
# Add entries using the following format -
#     ("<executable>", "<full path to icon>")
#------------------------------------------------------------------------------
LAUNCH_LIST     = [
                   ("/home/uzusan/firefox/firefox", "/home/uzusan/.icons/glass-icons/scalable/apps/firefox-icon.png"),
                   ("evolution", "/home/uzusan/.icons/glass-icons/scalable/apps/thunderbird.png"),
                   ("/home/uzusan/.scripts/urxvt.sh", "/home/uzusan/.icons/glass-icons/scalable/apps/gnome-terminal.png"),
                   ("thunar", "/home/uzusan/.icons/glass-icons/scalable/apps/my-computer.png"),
                   ("amarok", "/usr/share/app-install/icons/amarok.png"),

                  ]

#------------------------------------------------------------------------------
# Background Alpha/Shade Level: 0 (Fully Translucent) -> 255 (Fully Opaque)
# BG_COLOR is used for tinting
#------------------------------------------------------------------------------


#------------------------------------------------------------------------------
# Misc. Options: 1 = Enabled/Yes, 0 = Disabled/No
#------------------------------------------------------------------------------
ABOVE           = 1             # Panel is always above other apps
APPICONS        = 0             # Show application icons
AUTOHIDE        = 0             # Autohide uses the CLOCK_DELAY timer above
SHADOWS         = 0             # Show text shadows
SHOWLINES       = 0             # Show object seperation lines
SHOWBORDER      = 0             # Show a border around the panel

#------------------------------------------------------------------------------
# Desktop Names: Configure the names of your desktops
# If the option is [], PyPanel will attempt to use the desktop name specified
# by the XServer, if that fails it will use the desktop number as its name
# Ex. ["One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight"]
#------------------------------------------------------------------------------
DESKTOP_NAMES   = []

#------------------------------------------------------------------------------
# Panel Layout:       -----------------------------------
#                     [  1  ][  2  ][  3  ][  4  ][  5  ]
#                     -----------------------------------
#
# The panel layout is split into 5 sections numbered 1, 2, 3, 4 or 5 as shown
# in the diagram above.  Each of the following objects can be enabled by
# assigning it a section number or disabled by assigning it 0:
#------------------------------------------------------------------------------
DESKTOP         = 0             # Desktop name section
TASKS           = 1             # Task names section 
TRAY            = 0             # System tray section
CLOCK           = 0             # Clock section
LAUNCHER        = 0             # Application launcher section

#------------------------------------------------------------------------------
#                       Button Event Function Definitions
#------------------------------------------------------------------------------
# Left click   - button 1 
# Middle click - button 2
# Right click  - button 3
# Wheel up     - button 4
# Wheel down   - button 5 
#
# changeDesktop(x)
# - Change Desktop: Increase or decrease the current desktop by 'x' amount
# 
# toggleShade(task)
# - Shade or Unshade an application
#
# toggleHidden()
# - Minimize the panel to the top or bottom depending on its start location
#
# toggleMinimize(task, traise=1)
# - Minimize or Unminimize an application and optionally raise it
#
# taskRaise(task, focus=1)
# - Raise an application to the top of the window list and optionally focus it 
#
# taskLower(task, focus=0)
# - Lower an app to the bottom of the window list and optionally focus it
#
# taskFocus(task)
# - Give focus to the selected application, if it has focus then minimize it
#
# showDesktop()
# - Toggle between hiding and unhiding ALL applications
#------------------------------------------------------------------------------

#----------------------------------
def desktopButtonEvent(pp, button):
#----------------------------------
    """ Button event handler for the panel's desktop object """
        
    if button == 1:
        pp.changeDesktop(-1)
    elif button == 2:
        pp.changeDesktop(2)
    elif button == 3:
        pp.changeDesktop(1)
    elif button == 4:
        pp.changeDesktop(1)
    elif button == 5:
        pp.changeDesktop(-1)
        
#--------------------------------
def clockButtonEvent(pp, button):
#--------------------------------
    """ Button event handler for the panel's clock object """
    
    if button == 1:
        os.system("xclock &")
    elif button == 2:
        pass
    elif button == 3:
        pp.toggleHidden()  
    elif button == 4:
        pp.showDesktop()
    elif button == 5:
        pp.showDesktop()
        
#--------------------------------
def panelButtonEvent(pp, button):
#--------------------------------
    """ Button event handler for the panel with no active tasks """
    
    if button == 1:
        pass
    elif button == 2:
        pass
    elif button == 3:
        pass
    elif button == 4:
        pass
    elif button == 5:
        pass
        
#-------------------------------------
def taskButtonEvent(pp, button, task):
#-------------------------------------
    """ Button event handler for the panel's tasks """
    
    if button == 1:
        pp.taskFocus(task)
    elif button == 2:
        # Destroy the application
        task.obj.destroy()
    elif button == 3:
        # Ex. - XMMS doesn't shade, so we want to minimize it instead and
        #       still use button 3 to shade other applications
        #       task.tclass is the tasks class name (WM_CLASS)
        if "xmms" in task.tclass:
            pp.toggleMinimize(task)
        else:
            pp.toggleShade(task)
    elif button == 4:
        pp.taskRaise(task, focus=1)
    elif button == 5:
        pp.taskLower(task, focus=0)

~/.config/openbox/autostart.sh

# Run the system-wide support stuff
. $GLOBALAUTOSTART

# Programs to launch at startup
feh --bg-scale /home/canistra/Pictures/No_More_Rain_by_sherisse.png &
gnome-mount &
gnome-volume-manager &

# Programs that will run after Openbox has started
(sleep 2 && pypanel) &
(sleep 2 && conky) &
(sleep 2 && trayer --expand true --widthtype request --transparent true --alpha 255 --edge top --align right --SetDockType false) &

~/.config/openbox/menu.xml

<?xml version="1.0" encoding="utf-8"?>
<openbox_menu>
    <menu id="root-menu" label="OpenBox 3">
        <item label="Aterm">
            <action name="Execute">
                <execute>
                    aterm -e
                </execute>
            </action>
        </item>
        <item label="Netscape">
            <action name="Execute">
                <execute>
                    /opt/netscape/navigator/navigator
                </execute>
            </action>
        </item>
        <item label="PcManFM">
            <action name="Execute">
                <execute>
                    pcmanfm
                </execute>
            </action>
        </item>
        <item label="Mousepad">
            <action name="Execute">
                <execute>
                    mousepad
                </execute>
            </action>
        </item>
        <item label="Run">
            <action name="Execute">
                <execute>
                    gmrun
                </execute>
            </action>
        </item>
        <separator/>
        <menu id="root-menu-852035" label="Network">
            <item label="FireFox">
                <action name="Execute">
                    <execute>
                        firefox
                    </execute>
                </action>
            </item>
            <item label="Netscape">
                <action name="Execute">
                    <execute>
                        /opt/netscape/navigator/navigator
                    </execute>
                </action>
            </item>
            <item label="Opera">
                <action name="Execute">
                    <execute>
                        opera
                    </execute>
                </action>
            </item>
            <item label="Pidgin">
                <action name="Execute">
                    <execute>
                        pidgin
                    </execute>
                </action>
            </item>
            <item label="Transmission">
                <action name="Execute">
                    <execute>
                        transmission
                    </execute>
                </action>
            </item>
            <item label="uTorrent">
                <action name="Execute">
                    <execute>
                        alltray -i /home/canistra/.utorrent/main.png utorrent
                    </execute>
                </action>
            </item>
        </menu>
        <menu id="root-menu-512810" label="Multimedia">
            <item label="Amarok">
                <action name="Execute">
                    <execute>
                        /opt/kde/bin/amarokapp
                    </execute>
                </action>
            </item>
            <item label="Totem">
                <action name="Execute">
                    <execute>
                        totem
                    </execute>
                </action>
            </item>
            <item label="Gimp">
                <action name="Execute">
                    <execute>
                        gimp
                    </execute>
                </action>
            </item>
            <item label="Nero">
                <action name="Execute">
                    <execute>
                        nero
                    </execute>
                </action>
            </item>
            <item label="Picasa">
                <action name="Execute">
                    <execute>
                        picasa
                    </execute>
                </action>
            </item>
        </menu>
        <menu id="root-menu-243111" label="Office">
            <item label="AbiWord">
                <action name="Execute">
                    <execute>
                        abiword
                    </execute>
                </action>
            </item>
            <item label="Gnumeric">
                <action name="Execute">
                    <execute>
                        gnumeric
                    </execute>
                </action>
            </item>
            <item label="Calculator">
                <action name="Execute">
                    <execute>
                        galculator
                    </execute>
                </action>
            </item>
        </menu>
        <menu id="root-menu-863229" label="Games">
            <item label="Counter-Strike">
                <action name="Execute">
                    <execute>
                        wine "/mnt/d/Games/Counter-Strike/hl.exe" -nomaster -game cstrike -console
                    </execute>
                </action>
            </item>
            <item label="SuperTux">
                <action name="Execute">
                    <execute>
                        supertux2
                    </execute>
                </action>
            </item>
        </menu>
        <menu id="root-menu-74345" label="Sytem Tools">
            <item label="VirtualBox">
                <action name="Execute">
                    <execute>
                        virtualbox
                    </execute>
                </action>
            </item>
            <item label="Lazarus">
                <action name="Execute">
                    <execute>
                        lazarus
                    </execute>
                </action>
            </item>
        </menu>
        <separator/>
        <menu id="40" label="OpenBox">
            <menu id="client-list-menu"/>
            <item label="Reconfigure">
                <action name="Reconfigure"/>
            </item>
            <item label="Change GTK Theme">
                <action name="Execute">
                    <execute>
                        gtk-chtheme
                    </execute>
                </action>
            </item>
            <item label="ObMenu">
                <action name="Execute">
                    <execute>
                        obmenu
                    </execute>
                </action>
            </item>
            <item label="ObConf">
                <action name="Execute">
                    <execute>
                        obconf
                    </execute>
                </action>
            </item>
            <separator/>
            <item label="Exit">
                <action name="Exit"/>
            </item>
        </menu>
        <separator/>
        <menu id="root-menu-31419" label="ShutDown">
            <item label="ShutDown">
                <action name="Execute">
                    <execute>
                        poweroff
                    </execute>
                </action>
            </item>
            <item label="Reboot">
                <action name="Execute">
                    <execute>
                        reboot
                    </execute>
                </action>
            </item>
        </menu>
    </menu>
</openbox_menu>

Conky Config:

use_xft yes
xftfont Sans:size=8

xftalpha 0.9
update_interval 3.0
total_run_times 0
double_buffer yes

own_window yes
own_window_transparent yes
own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
stippled_borders 0
border_margin 1
border_width 1
default_color 0b093a
default_outline_color a6b38d

alignment top_left
#gap_x 40
#gap_y 29
gap_x 5
gap_y 5

no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale no

#use_spacer no
#maximum_width 1000
#minimum_width 890

TEXT
${font Sans:bold:size=8}time:$font $time ${font Sans:bold:size=8}uptime:$font $uptime ${font Sans:bold:size=8}cpu: $font${cpu}% ${font Sans:bold:size=8}mem: $font $memperc% ${font Sans:bold:size=8}down: ${font}${downspeed eth0} Kb/s ${font Sans:bold:size=8}up:$font ${upspeed eth0} Kb/s ${font Sans:bold:size=8}hdd:$font${alignr}${fs_free /mnt/d} ${font Sans:bold:size=8}mail:$font ${execi 300 python ~/scripts/gmail.py} ${font Sans:bold:size=8}upd:$font ${execi 800 perl /home/canistra/scripts/conky-updates.pl} ${font Sans:bold:size=8}weather:$font ${execi 1800 weatherget -f ~/scripts/.conkyweatherrc --station-id=MDXX0001 --metric }C

Last edited by canistra (2008-03-20 18:14:38)

Offline

#5 2008-03-20 18:57:10

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Share your Openbox Desktop ! :)

thayer wrote:

I think this is a good idea...after all, we do have dedicated xmonad and wmii threads.  Wading through the fluff in the archived screenshots threads for specific material can be a hassle. I'm just getting my openbox installation configured again after using xmonad for a few months. I'll post my configs and whatnot when they're ready.

Indeed smile. Order! tongue

On a side note, I was saddened to see that tint (ttm) has been abandoned. I personally don't use a taskbar, but it was a great tool so I hope someone picks it up.

I am an avid fan and hope to pick up C soon so I can try to fiddle with it (I'd love to be able to put it at the top of a screen, it only seems to be able to run at the bottom now).

Anyways, here is my stuff - screenie first of course.
203445-ob-conky-t-th.png

What you see? Openbox, several conky instances, tint, and one of Openbox pipe menu's that cannot get enough praise smile. The clock/bar/tray layout is a bit hackish, I have centered tint, but if you have too many apps open on one page, that means they'll be overlapped by the clock and the tray at the edges (I use my four virtual desktops so I don't have this problem). The Openbox theme is a modified 'Dyne' theme. The font used by the clock and the calendar is Dungeon.

Download links:
Openbox configuration
Openbox menu
Openbox startup
Conky report bar
Conky calendar (parses when)
Conky clock
Tint configuration
Openbox theme (custom
Dungeon font
Noalwins weather pipe menu script (shown in the screenshot, this version also outputs the degree symbol ° after the temperatures, and has already been localised in Dutch, original in this thread)
Pipe menu script that mimics mount/umount functionality for removable devics (requires fixed device entries!)
Pipe menu to start SSH sessions

I think that is quite extensive tongue. I also use an RSS parser pipe menu (in C, can be found on the Openbox pipe menu page).

Hope you enjoy it like I do!

Last edited by B (2008-03-20 19:01:42)


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#6 2008-03-20 20:05:40

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Share your Openbox Desktop ! :)

openbox_config-thumb.png

Info about gtk/openbox themes in the screenshot.  The openbox theme is a bit tweaked.

The apps in the screenshot are:
- thunar
- urxvt
- conky (top)
- stalonetray (bottom-left; glipper-old running)

~/.config/openbox/autostart.sh file

#!/bin/bash
xsetroot -solid black &
#nitrogen --restore &
eval `cat ~/.fehbg`
nvidia-settings -l&
#nvidia-settings -a InitialPixmapPlacement=2&
gsynaptics-init&
#xcompmgr&
if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
eval `dbus-launch --sh-syntax --exit-with-session`
fi

export OOO_FORCE_DESKTOP="gnome"
thunar --daemon &
urxvtd -o -q -f&
#trackerd &
conky &
#(sleep 3 && stalonetray) &
stalonetray&
#sonata --hidden&
glipper-old&
battery_warning.sh&

~/.config/openbox/menu.xml file

<?xml version="1.0" encoding="utf-8"?>
<openbox_menu xmlns="http://openbox.org/3.4/menu">
    
<menu id="accesories-apps-menu" label="Accesories">
    <item label="Calculator">
        <action name="Execute"><command>galculator</command></action>
    </item>
    <item label="gVim">
        <action name="Execute"><command>gvim</command></action>
    </item>
    <item label="Tracker">
        <action name="Execute"><command>tracker-search-tool</command></action>
    </item>
    <item label="Vim">
        <action name="Execute"><command>urxvtc -bg black -fn xft:Terminus:size=12 --geometry 130x40 -e vim</command></action>
    </item>
</menu>

<menu id="graphics-apps-menu" label="Graphics">
    <item label="Agave">
        <action name="Execute"><command>agave</command></action>
    </item>
    <item label="gcolor2">
        <action name="Execute"><command>gcolor2</command></action>
    </item>
    <item label="Mirage">
        <action name="Execute"><command>mirage</command></action>
    </item>
    <item label="The Gimp">
        <action name="Execute"><command>gimp</command></action>
    </item>
</menu>

<menu id="multimedia-apps-menu" label="Multimedia">
    <item label="EasyTAG">
        <action name="Execute"><command>easytag</command></action>
    </item>
    <item label="gMplayer">
        <action name="Execute"><command>gmplayer</command></action>
    </item>
    <item label="Rubbyripper">
        <action name="Execute"><command>rrip_gui</command></action>
    </item>
    <item label="Sonata">
        <action name="Execute"><command>sonata</command></action>
    </item>
</menu>

<menu id="network-apps-menu" label="Network">
    <item label="Moblock">
        <action name="Execute"><command>moblock.sh</command></action>
    </item>
    <item label="Skype">
        <action name="Execute"><command>skype</command></action>
    </item>
    <item label="VPN Client">
        <action name="Execute"><command>vpn.sh</command></action>
    </item>
</menu>

<menu id="office-apps-menu" label="Office">
    <item label="Acrobat Reader">
        <action name="Execute"><command>acroread</command></action>
    </item>
    <item label="OpenOffice">
        <action name="Execute"><command>soffice</command></action>
    </item>
</menu>

<menu id="system-apps-menu" label="System">
    <item label="Glipper">
        <action name="Execute"><command>glipper-old</command></action>
    </item>
    <item label="Xterm">
        <action name="Execute"><command>xterm</command></action>
    </item>
    <item label="uXterm">
        <action name="Execute"><command>uxterm</command></action>
    </item>
</menu>

<menu id="apps-menu" label="Applications">
    <menu id="accesories-apps-menu" />
    <menu id="graphics-apps-menu" />
    <menu id="multimedia-apps-menu" />
    <menu id="network-apps-menu" />
    <menu id="office-apps-menu" />
    <menu id="system-apps-menu" />
</menu>

<menu id="config-menu" label="Config">
    <item label="Change GTK Theme">
        <action name="Execute"><command>gtk-chtheme</command></action>
    </item>
    <item label="OB Config">
        <action name="Execute"><command>obconf</command></action>
    </item>
    <item label="Nvidia Settings">
        <action name="Execute"><command>nvidia-settings</command></action>
    </item>
    <item label="Touchpad Settings">
        <action name="Execute"><command>gsynaptics</command></action>
    </item>
    <item label="Tracker Preferences">
        <action name="Execute"><command>tracker-preferences</command></action>
    </item>
    <item label="Wallpapers">
        <action name="Execute"><command>feh -FZ /home/filip/wallpapers</command></action>
    </item>
    <item label="Reconfigure">
        <action name="Reconfigure"/>
    </item>
</menu>

<menu id="exit-menu" label="Exit">
    <item label="Log out">
        <action name="Exit"/>
    </item>
    <item label="Reboot">
        <action name="Execute"><command>restart.sh</command></action>
    </item>
    <item label="Suspend">
        <action name="Execute"><command>suspend_zenity.sh</command></action>
    </item>
    <item label="Hibernate">
        <action name="Execute"><command>hibernate_zenity.sh</command></action>
    </item>
    <item label="Shutdown">
        <action name="Execute"><command>shutdown.sh</command></action>
    </item>
</menu>
    
<menu id="root-menu" label="OpenBox 3">
    <separator label=":: major_tom" />
        <item label="Urxvt">
            <action name="Execute"><command>urxvtc</command></action>
        </item>
        <item label="Firefox">
            <action name="Execute"><command>firefox</command></action>
        </item>
        <item label="Screen">
            <action name="Execute"><command>screen.sh</command></action>
        </item>
        <item label="Thunar">
            <action name="Execute"><command>Thunar</command></action>
        </item>
    
        <menu id="apps-menu"/>
        <menu id="config-menu"/>
        <menu id="client-list-menu"/>
        <menu id="exit-menu"/>
</menu>

</openbox_menu>

~/.conkyrc -- sorry, it's a bit messy wink

# conky configuration

# set to yes if you want Conky to be forked in the background
background no

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
#xftfont Liberation Mono:pixelsize=11
#xftfont terminus:pixelsize=8
xftfont standard 07_56:size=6

# Text alpha when using Xft
xftalpha 0.8

# Print everything to console?

# out_to_console no

# Update interval in seconds
update_interval 3.0

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)

own_window yes
own_window_transparent no
own_window_type desktop
own_window_hints below,undecorated,sticky,skip_taskbar
#own_window_colour 222222

#own_window_type desktop

#own_window_hints below

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 1276
maximum_width 1276

# Draw shades?
draw_shades no 

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
#stippled_borders 0

# border margins
#border_margin 5

# border width
border_width 1

# Default colors and also border colors
default_color dddddd
default_border_color white
default_shade_color black
default_outline_color black


# Text alignment, other possible values are commented

#alignment top_left

alignment top_right

#alignment bottom_left

#alignment bottom_right

# Gap between borders of screen and text

# same thing as passing -x at command line
gap_x 0
gap_y 2

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average

# set to 1 to disable averaging
cpu_avg_samples 2

# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT

override_utf8_locale yes

use_spacer yes
TEXT
 ${color #979797}RAM: ${color }$mem / $memmax   ::   ${color #979797}ROOT: ${color }${fs_free /} free   ::   ${color #979797}HOME: ${color }${fs_free /home} free   ::   ${color #979797}TEMP: ${color }${execi 5 cat /proc/acpi/thermal_zone/THRM/temperature | awk {'print $2 "°C"'}}   ::   ${color #979797}CPU: ${color }$cpu% / ${freq_g}GHz / ${execi 5 cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor}   ::   ${color #979797}BAT: ${color }${battery BAT1}  ${alignr 4}${color     #979797}MAIL: ${color}${execi 300 python /home/filip/scripts/gmail.py}   ::   ${color }${color}${time %A}, ${time %e %B}   ${color #979797}${font standard 07_63:size=6}${time %H:%M}

~/.stalonetrayrc

transparent true
geometry 124x24+0-0
icon_gravity NW
window_layer bottom
sticky true

And here are links to some scripts I use:
- battery_warning.sh -- called from autostart.sh, basically checks the battery state every two minutes and displays a notification if battery level is under 10%; the laptop hibernates automatically when battery is at less than 2% (courtesy of laptop-mode-tools)
- freq.sh -- it's bound to a key combination, it lets me cycle through available cpufreq governors (current governor used is displayed via conky)
- hibernate_zenity.sh -- called from the menu and using a keybinding -- rather than hibernating immediately after the option is chosen it displays a dialog (using zenity) to ask for confirmation first; I use analogous scripts for suspend/reboot/shutdown as well.

Some of my favorite actions that can be added to rc.xml:

    <keybind key="A-F12">
      <action name="ToggleFullscreen"/>
    </keybind>
    <keybind key="A-F11">
      <action name="ToggleMaximizeFull"/>
      <action name="ToggleDecorations"/>
    </keybind>

- A-F12 toggles fullscreening of applications (very useful)
- A-F11 similar effect but respects screen margins (so conky is still visible) and doesn't monopolize the screen completely

Phew... that's a long post.

Offline

#7 2008-03-20 20:17:03

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: Share your Openbox Desktop ! :)

Screenshot:
http://xs225.xs.to/xs225/08124/03.20.2008-shot616.png

Themes:
In screenshot

Running:
Sonata, Thunar, URxvt, Openbox Menu, Pypanel

~/.pypanelrc (using real transparency with devilspie)

VERSION = 2.4

BG_COLOR    = "0x333333"
TASK_COLOR      = "0xece9e2"
FOCUSED_COLOR   = "0xa9c76c"
SHADED_COLOR    = "0xece9e2"
MINIMIZED_COLOR = "0xece9e2"
DESKTOP_COLOR   = "0xece9e2"
CLOCK_COLOR    = "0xece9e2"
LINE_COLOR    = "0xece9e2"

TASK_SHADOW_COLOR    = "0xFFFFFF"
FOCUSED_SHADOW_COLOR    = "0xFFFFFF"
SHADED_SHADOW_COLOR    = "0xFFFFFF"
MINIMIZED_SHADOW_COLOR    = "0xFFFFFF" 
DESKTOP_SHADOW_COLOR    = "0xFFFFFF"
CLOCK_SHADOW_COLOR    = "0xFFFFFF"

P_LOCATION    = 1        # panel placement: 0 = top, 1 = bottom
P_WIDTH        = 0        # panel width: 0 = full screen width
P_START        = 5        # starting X coordinate of the panel
P_SPACER    = 15        # spacing between panel objects
P_HEIGHT    = 20
P_L_BUFF        = 2
P_R_BUFF        = 2
P_T_BUFF        = 4
P_B_BUFF        = 4

I_HEIGHT    = 16        # application icon height
I_WIDTH        = 16        # application icon Width 
APPL_I_HEIGHT    = 16        # application launcher icon height
APPL_I_WIDTH    = 16        # application launcher icon width
TRAY_I_HEIGHT    = 16        # system tray icon height
TRAY_I_WIDTH    = 16        # system tray icon width

CLOCK_FORMAT    = "%m.%d.%Y // %I.%M"
CLOCK_DELAY    = 20

HIDE_LIST    = ["netwmpager"]
HIDDEN_SIZE     = 2

FONT        = "Myraid Pro:size=8"

SHOWALL        = 0        # show windows from all desktops
SHOWMINIMIZED    = 0        # only show minimized windows
SHADE        = 1000

ABOVE        = 1        # panel is always above other apps
APPICONS    = 0        # show application icons
AUTOHIDE    = 0        # autohide uses the CLOCK_DELAY timer above
SHADOWS        = 0        # show text shadows
SHOWLINES    = 0        # show object seperation lines
SHOWBORDER    = 1        # show a border around the panel

DESKTOP_NAMES    = []

# Order

DESKTOP        = 1
TASKS        = 2
CLOCK        = 5
TRAY        = 4
LAUNCHER    = 0

def desktopButtonEvent(pp, button):
    pass

def taskButtonEvent(pp, button, task):
    if button == 1:
        pp.taskFocus(task)
    elif button == 2:
        task.obj.destroy()
    elif button == 3:
        pp.toggleShade(task)
    elif button == 4:
        pp.taskRaise(task, focus=1)
    elif button == 5:
        pp.taskLower(task, focus=0)

def clockButtonEvent(pp, button):
    pp.showDesktop()

def panelButtonEvent(pp, button):
    pass

I use ~/.xinitrc

#!/bin/sh
#
# ~~/.xinitrc
#
# Executed by startx (run your window manager from here)
#
# exec ion
# exec wmaker
# exec startkde
# exec icewm
# exec blackbox
# exec gnome-session
# exec startfluxbox
# exec startxfce4
# exec openbox
exec nitrogen --restore &
exec xscreensaver &
exec xbindkeys &
export OOO_FORCE_DESKTOP=gnome &
exec xcompmgr -cC -t-3 -l-5 -r5 -I0.02 -O0.03 -D4 -fF &
exec pypanel  &
exec syndaemon -t -d -i1 &
(sleep 6 && exec devilspie) &
exec openbox

~/.config/openbox/menu.xml

<?xml version="1.0" encoding="utf-8"?>
<openbox_menu xmlns="http://openbox.org/3.4/menu">
    <menu id="root-menu" label="Openbox 3">
  <separator label="Reasons" />
        <item label="Internet">
            <action name="Execute">
                <execute>
                    firefox3
                </execute>
            </action>
        </item>
        <item label="Music">
            <action name="Execute">
                <execute>
                    sonata
                </execute>
            </action>
        </item>
        <item label="Terminal">
            <action name="Execute">
                <execute>
                    urxvt
                </execute>
            </action>
        </item>
        <separator/>
<menu id="root-menu-971013" label="Applications">
  <separator label="Applications" />
            <item label="GIMP">
                <action name="Execute">
                    <execute>
                        gimp
                    </execute>
                </action>
            </item>
            <item label="Pidgin">
                <action name="Execute">
                    <execute>
                        pidgin
                    </execute>
                </action>
            </item>
            <item label="Openoffice Word">
                <action name="Execute">
                    <execute>
                        /opt/openoffice/program/swriter
                    </execute>
                </action>
            </item>
            <item label="Thunar">
                <action name="Execute">
                    <execute>
                        thunar
                    </execute>
                </action>
            </item>
        </menu>
        <menu id="root-menu-67754" label="Openbox">
  <separator label="Openbox" />
            <item label="Nitrogen">
                <action name="Execute">
                    <execute>
                        nitrogen /storage/images/backgrounds
                    </execute>
                </action>
            </item>
            <item label="Obconf">
                <action name="Execute">
                    <execute>
                        obconf
                    </execute>
                </action>
            </item>
            <item label="Obmenu">
                <action name="Execute">
                    <execute>
                        obmenu
                    </execute>
                </action>
            </item>
            <item label="Reconfigure">
                <action name="Reconfigure"/>
            </item>
        </menu>
        <separator/>
<menu id="Gmail" label="Gmail" execute="~/.config/openbox/scripts/gmail.py"/>
<menu id="mpd" label="MPD" execute="python ~/.scripts/mpd.py" />
<menu id="Python2" label="System-Info" execute="sh ~/.scripts/sysinfo.sh"/>
  <menu id="pipe-weather" label="Puyallup (WA)" execute="python ~/.config/openbox/scripts/gweather.py Puyallup" />
        <separator/>
        <item label="Exit">
            <action name="Exit"/>
        </item>
    </menu>
</openbox_menu>

Offline

#8 2008-03-20 20:52:43

blu3ness
Member
From: Edmonton, Canada
Registered: 2007-12-28
Posts: 169

Re: Share your Openbox Desktop ! :)

beautiful work Reasons, cheers tongue


Archlinux on Compaq Presario v5000 laptop smile

Offline

#9 2008-03-20 21:44:44

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Share your Openbox Desktop ! :)

Very nice indeed smile. I never looked into xcompmgr but the shadows are awesome smile.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#10 2008-03-20 22:18:07

cawill
Member
From: United Kingdom
Registered: 2007-12-12
Posts: 63

Re: Share your Openbox Desktop ! :)

Reason's nice desktop, what do you use to get the terminal with no window decorations?

I'm new to openbox smile

Offline

#11 2008-03-20 22:23:02

dyscoria
Member
Registered: 2008-01-10
Posts: 1,007

Re: Share your Openbox Desktop ! :)

cawill wrote:

Reason's nice desktop, what do you use to get the terminal with no window decorations?

IIRC you can edit the ".config/openbox/rc.xml" (or wherever rc.xml is located) to include the following in the applications section:

<applications>
  <application name="urxvt">
    <decor>no</decor>
  </application>
</applications>

Last edited by dyscoria (2008-03-20 22:24:32)


flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)

Offline

#12 2008-03-20 22:26:15

cawill
Member
From: United Kingdom
Registered: 2007-12-12
Posts: 63

Re: Share your Openbox Desktop ! :)

Thanks dyscoria that helps.

Anyone know a tray / system dock similar to trayer that supports transparancy fully? , for example with certain icons in the system tray I get a white or blackground.

Will post a screenshot if no one gets what i mean.

Offline

#13 2008-03-20 22:28:38

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: Share your Openbox Desktop ! :)

cawill wrote:

Reason's nice desktop, what do you use to get the terminal with no window decorations?

I'm new to openbox smile

That is in my ~/.Xdefaults file here.

Xft*dpi:                96
Xft*antialias:          true
Xft*hinting:            full

URxvt.termName: rxvt
URxvt.transparent: true
URxvt.inheritPixmap: False
URxvt.imLocale: pl_PL.UTF-8
URxvt.scrollBar: false
URxvt.saveLines: 5000
URxvt.urlLauncher:      firefox3
URxvt.cursorBlink: true
URxvt.geometry: 85x21
URxvt.fading: 15%
URxvt.shading: 75
urxvt.font:             xft:DejaVu Sans Mono:pixelsize=8
urxvt.boldFont:         xft:DejaVu Sans Mono:bold:pixelsize=9
!URxvt*background:      [80]#ece9e2
!URxvt.foreground: [80]#3d352a
urxvt.depth: 32
urxvt.background: rgba:0000/0000/0000/aaaa
urxvt.foreground: rgba:ffff/ffff/ffff/aaaa
URxvt.tintColor: #d9d7d1
URxvt.borderLess: true
!URxvt.InternalBorder: .5
URxvt.externalBorder: .5
URxvt.borderColor: #acacac

*foreground:     rgba:0000/0000/0000/dddd
*background:     rgb:10/10/10
!black
*color0:         rgb:20/20/20
*color8:         rgb:75/77/73
!red
*color1:         rgb:cc/00/00  
*color9:         rgb:ef/29/29
!green
*color2:         rgb:4e/9a/06
*color10:        rgb:8a/e2/34
!brown/yellow
*color3:         rgb:c4/a0/00
*color11:        rgb:fc/e9/4f
!blue
*color4:         rgb:34/65/a4
*color12:        rgb:72/9f/cf
!magenta
*color5:         rgb:75/50/7b
*color13:        rgb:ad/7f/a8
!cyan
*color6:         rgb:06/98/9a
*color14:        rgb:34/e2/e2
!white
*color7:         rgb:d3/d7/cf
*color15:        rgb:ee/ee/ec

Offline

#14 2008-03-20 23:09:40

dunc4n
Member
Registered: 2008-03-10
Posts: 19

Re: Share your Openbox Desktop ! :)

Wow! You guys really make me want to try openbox. Very nice. Maybe when I learn a little more.:/

Offline

#15 2008-03-20 23:14:14

BC
Member
Registered: 2008-01-29
Posts: 83

Re: Share your Openbox Desktop ! :)

cawill wrote:

Thanks dyscoria that helps.

Anyone know a tray / system dock similar to trayer that supports transparancy fully? , for example with certain icons in the system tray I get a white or blackground.

Will post a screenshot if no one gets what i mean.

What you seem to be describing is an icon with a non-transparent background.  So short of changing the icon itself, it's always going to have a white background (for example).

Offline

#16 2008-03-20 23:39:09

cawill
Member
From: United Kingdom
Registered: 2007-12-12
Posts: 63

Re: Share your Openbox Desktop ! :)

BC wrote:
cawill wrote:

Thanks dyscoria that helps.

Anyone know a tray / system dock similar to trayer that supports transparancy fully? , for example with certain icons in the system tray I get a white or blackground.

Will post a screenshot if no one gets what i mean.

What you seem to be describing is an icon with a non-transparent background.  So short of changing the icon itself, it's always going to have a white background (for example).

Yes but the icon for cryptkeeper for example in trayer has a blackground but in other dock apps, like gnome-panel dock it has a transparent background, how could I fix this?

Offline

#17 2008-03-20 23:47:53

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: Share your Openbox Desktop ! :)

cawill wrote:
BC wrote:
cawill wrote:

Thanks dyscoria that helps.

Anyone know a tray / system dock similar to trayer that supports transparancy fully? , for example with certain icons in the system tray I get a white or blackground.

Will post a screenshot if no one gets what i mean.

What you seem to be describing is an icon with a non-transparent background.  So short of changing the icon itself, it's always going to have a white background (for example).

Yes but the icon for cryptkeeper for example in trayer has a blackground but in other dock apps, like gnome-panel dock it has a transparent background, how could I fix this?

Check your gtk theme for any panel bg's.

Offline

#18 2008-03-21 08:47:03

cawill
Member
From: United Kingdom
Registered: 2007-12-12
Posts: 63

Re: Share your Openbox Desktop ! :)

Reasons wrote:
cawill wrote:
BC wrote:

What you seem to be describing is an icon with a non-transparent background.  So short of changing the icon itself, it's always going to have a white background (for example).

Yes but the icon for cryptkeeper for example in trayer has a blackground but in other dock apps, like gnome-panel dock it has a transparent background, how could I fix this?

Check your gtk theme for any panel bg's.

Thanks, that worked.

EDIT: Sorry for all the questions, but do you get real transparency with devilspie & xcompmgr?

Last edited by cawill (2008-03-21 09:12:05)

Offline

#19 2008-03-21 09:28:50

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,912
Website

Re: Share your Openbox Desktop ! :)

Wow at last a proper Openbox post :-)

links to configs [pastebin etc!] would help reduce clutter, tips well stick 'em in wiki

I am watching!!!!


Mr Green

Offline

#20 2008-03-21 12:05:34

w0rmtux
Member
Registered: 2007-06-14
Posts: 3

Re: Share your Openbox Desktop ! :)

@Reasons:
can you past here your devilspie config? thanks


Sorry for my english smile

Offline

#21 2008-03-21 13:04:47

ep2011
Member
Registered: 2008-02-28
Posts: 66

Re: Share your Openbox Desktop ! :)

Reasons, can you also please post/link for the system info pipe menu? I've been looking for something similar to that to replace conky smile

Offline

#22 2008-03-21 14:10:04

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: Share your Openbox Desktop ! :)

cawill wrote:
Reasons wrote:
cawill wrote:

Yes but the icon for cryptkeeper for example in trayer has a blackground but in other dock apps, like gnome-panel dock it has a transparent background, how could I fix this?

Check your gtk theme for any panel bg's.

Thanks, that worked.

EDIT: Sorry for all the questions, but do you get real transparency with devilspie & xcompmgr?

Yes I do. Urxvt and pypanel both. My ~/.devilspie/pypanel.ds. You'll need transset-df

(if

(matches (window_class) "PyPanel")
(begin
  (spawn_async (str "transset-df -i " (window_xid) " .82" ) )
)
)

System info

######## This is a script made
######## by 'yettenet'.
########
######## SysInfo script for OpenBox
######## v0.1
########
######## The author does not take
######## any responsibility for
######## what it might do to your
######## computer, though it's
######## improbable to do any harm.
########
######## You may share the script with
######## everyone and modify it for your
######## liking, as long as you
######## GIVE CREDIT.
########
######## To add it to Openbox, copy it to
######## your Openbox/scripts folder, which usually is at
######## ~/.config/openbox/scripts
########
######## edit your menu.xml file, which usually is at
######## ~/.config/openbox/menu.xml
######## and add the following line (in case you have the usual paths - if not, edit the path as needed):
########
########<menu execute="~/.config/openbox/scripts/sysinfo_v01-by_yettenet.script" id="sysinfo-menu" label="SysInfo"/>
########
######## Below you will find the settings
######## (the script still needs to be tested)  

########  settings

MountPoint1=$(echo /vista)
MountPoint2=$(echo /dev/sda5)
MountPoint3=$(echo /home)
MountPoint4=$(echo /var)
MountPoint5=$(echo /storage)
#NetworkDevice1=$(echo eth0)
#NetworkDevice2=$(echo eth1)  #Uncomment some lines to make it work!

######## /settings


Signal=$(cat /sys/class/net/wlan0/wireless/link)
User=$(whoami)
Host=$(uname -n)
System=$(uname -s)
Release=$(uname -r)
Arch=$(uname -m)

SizeMountPoint1=$(df | grep "$MountPoint1" | cut -c1-20,51-55)
SizeMountPoint2=$(df | grep "$MountPoint2" | cut -c1-20,51-55)
SizeMountPoint3=$(df | grep "$MountPoint3" | cut -c1-20,51-55)
SizeMountPoint4=$(df | grep "$MountPoint4" | cut -c1-20,51-55)
SizeMountPoint5=$(df | grep "$MountPoint5" | cut -c1-20,51-55)

#NetDev1ip=$(/sbin/ifconfig "$NetworkDevice1" | grep "inet addr:" | sed "s/.*inet addr://" | sed "s/Bcast.*//")
#NetDev1down=$(/sbin/ifconfig "$NetworkDevice1" | grep bytes | sed 's/.*RX bytes:[0-9]* (//'  | sed 's/iB).*TX.*//' | sed 's/b).*TX.*//' | sed 's/).*TX.*//')
#NetDev1up=$(/sbin/ifconfig "$NetworkDevice1" | grep bytes | sed 's/.*TX bytes:[0-9]* (//' | sed 's/iB)//' |sed 's/b).*//' | sed 's/).*//')

#NetDev2ip=$(/sbin/ifconfig "$NetworkDevice1" | grep "inet addr:" | sed "s/.*inet addr://" | sed "s/Bcast.*//")
#NetDev2down=$(/sbin/ifconfig "$NetworkDevice1" | grep bytes | sed 's/.*RX bytes:[0-9]* (//'  | sed 's/iB).*TX.*//' | sed 's/b).*TX.*//' | sed 's/).*TX.*//')
#NetDev2up=$(/sbin/ifconfig "$NetworkDevice1" | grep bytes | sed 's/.*TX bytes:[0-9]* (//' | sed 's/iB)//' |sed 's/b).*//' | sed 's/).*//')

DateDate=$(date '+Date: %m.%d.%Y (%a)')
DateWeek=$(date '+Week: %W')
 DateDay=$(date '+ Day: %j')
DateTime=$(date '+Time: %I:%M [%Z]')
UpTime=$(uptime | sed 's/.* up //' | sed 's/[0-9]* us.*//' | sed 's/ day, /d/' | sed 's/ days, /d /' | sed 's/:/h /' | sed 's/ min//'|  sed 's/,/m/' | sed 's/  / /') 

MemTotal=$(echo "scale = 2; ("$(cat /proc/meminfo | grep MemTotal: | awk '{print $2}' | sed 's/k//')" /1024)" | bc)
 MemFree=$(echo "scale = 2; ("$(cat /proc/meminfo | grep MemFree: | awk '{print $2}' | sed 's/k//')" /1024) + ("$(cat /proc/meminfo | grep grep -m 1 Cached: | awk '{print $2}' | sed 's/k//')" /1024)" | bc)
 MemUsed=$(echo "scale = 2; ("$(cat /proc/meminfo | grep MemTotal: | awk '{print $2}' | sed 's/k//')" /1024) - (("$(cat /proc/meminfo | grep MemFree: | awk '{print $2}' | sed 's/k//')" /1024) + ("$(cat /proc/meminfo | grep -m 1 Cached: | awk '{print $2}' | sed 's/k//')" /1024))" | bc)

SwpTotal=$(echo "scale = 2; ("$(cat /proc/meminfo | grep SwapTotal: | awk '{print $2}' | sed 's/k//')" /1024)" | bc)
 SwpFree=$(echo "scale = 2; ("$(cat /proc/meminfo | grep SwapFree: | awk '{print $2}' | sed 's/k//')" /1024)" | bc)
 SwpUsed=$(echo "scale = 2; ("$(cat /proc/meminfo | grep SwapTotal: | awk '{print $2}' | sed 's/k//')" /1024) - ("$(cat /proc/meminfo | grep SwapFree: | awk '{print $2}' | sed 's/k//')" /1024)" | bc)

MemUsedPercent=$(echo "scale = 2; (("$(cat /proc/meminfo | grep MemTotal: | awk '{print $2}' | sed 's/k//')" /1024) - (("$(cat /proc/meminfo | grep MemFree: | awk '{print $2}' | sed 's/k//')" /1024) + ("$(cat /proc/meminfo | grep -m 1 Cached: | awk '{print $2}' | sed 's/k//')" /1024))) / ("$(cat /proc/meminfo | grep MemTotal: | awk '{print $2}' | sed 's/k//')" /1024) *100" | bc)
SwpUsedPercent=$(echo "scale = 2; (("$(cat /proc/meminfo | grep SwapTotal: | awk '{print $2}' | sed 's/k//')" /1024) - ("$(cat /proc/meminfo | grep SwapFree: | awk '{print $2}' | sed 's/k//')" /1024)) / ("$(cat /proc/meminfo | grep SwapTotal: | awk '{print $2}' | sed 's/k//')" /1024) *100" | bc)

CPUmodel=$(cat /proc/cpuinfo | grep "model name" | sed 's/.*: //')
CPUfreq=$(cat /proc/cpuinfo | grep -m 1 "cpu MHz" | sed 's/.*: //' | cut -c1-4)
CPUcache=$(cat /proc/cpuinfo | grep -m 1 "cache size" | sed 's/.*: //')


echo "<openbox_pipe_menu>"
echo "<separator label = \"Mountpoint ~ Space Used\"/>"
echo "<item label=\"$SizeMountPoint1\"/>"
echo "<item label=\"$SizeMountPoint2\"/>"
echo "<item label=\"$SizeMountPoint3\"/>"
echo "<item label=\"$SizeMountPoint4\"/>"
echo "<item label=\"$SizeMountPoint5\"/>"

echo "<separator label=\"Hardware ~ Use\"/>"
echo "<item label=\"RAM used: $MemUsedPercent%\"/>"
echo "<item label=\"Swap used: $SwpUsedPercent%\"/>"
echo "<item label=\"Cpu-Freq: $CPUfreq MHz\"/>"
echo "<item label=\"Signal: $Signal%\"/>"

#echo "<separator label = \"Network ~ "$NetworkDevice2"  \"/>"
#echo "<item label=\""$NetworkDevice1" ~         ip: $NetDev2ip\"/>"
#echo "<item label=\""$NetworkDevice1" ~ downloaded: "$NetDev2down"iB\"/>"
#echo "<item label=\""$NetworkDevice1" ~   uploaded: "$NetDev2up"iB\"/>"

echo "<separator label = \"Date ~ Time\"/>"
echo "<item label=\"$DateDate\"/>"
echo "<item label=\"$DateTime\"/>"
echo "<item label=\"Uptime: $UpTime\"/>"

echo "</openbox_pipe_menu>"

If you want to get fancy, look at my mousebind section for the part about transset-df. I have it set so that scroll with ctrl pressed on the title bar changes transparency. wink

Last edited by Reasons (2008-03-21 14:19:13)

Offline

#23 2008-03-21 14:36:08

w0rmtux
Member
Registered: 2007-06-14
Posts: 3

Re: Share your Openbox Desktop ! :)

Thanks for the quick reply smile
I'm using openbox for the second time right now (i've always used fluxbox as wm)
It's great but i've another question, does xcompmgr slow down openbox? in my box it feels "heavy"


Sorry for my english smile

Offline

#24 2008-03-21 14:41:36

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: Share your Openbox Desktop ! :)

Well I am using pretty new hardware but when I used it on my older computer I didn't really feel a difference.

Offline

#25 2008-03-21 15:37:01

blu3ness
Member
From: Edmonton, Canada
Registered: 2007-12-28
Posts: 169

Re: Share your Openbox Desktop ! :)

xcomp uses compositing. If you ended up with some driver that isn't as optimized in that regard (i.e. the newest catalysts), you are going to have a resource-hog. Nonetheless, it's bearable, but not really mandatory. It all comes down to your personal preference in my opinion.


Archlinux on Compaq Presario v5000 laptop smile

Offline

Board footer

Powered by FluxBB