Projects and resources (En) > Tips and tricks

This is how I set up feh and stalonetray

(1/6) > >>

kjdixo:
In general I use the following method for setting up my feh and stalonetray.
This method might be overkill, but it has worked for me in Lubuntu, Pclos, WattOS, Slitaz and of course Ubuntu Openbox.
My networking and volume control icons appear in the top left hand corner of the desktop.
Once I have set this up I can then remove tint2 or fbpanel so I have a clear desktop and then use only a right click menu to access programs.

My home folder is k1, ensure you replace k1 with your own username.

First feh:
(a)
A file named .fehbg in k1, which is hidden due to the dot prefix, this file has one line.

--- Code: ---feh --bg-tile '/home/k1/.wallpapers/ptv2.jpg'

--- Fin du code ---
(b)
A folder named .wallpapers in k1, the folder is hidden due to the dot prefix, this folder contains a textured background (95x80 1.6kB .jpg file) called ptv2.jpg.

(c)
A folder named autostart in the folder .config in k1 which is a hidden folder due to the dot prefix.
Folder autostart  may or may not already exist, so add it if it doesn't already exist and then decide on its contents.
Add a desktop configuration file named wallpaper.desktop (edit with geany):

--- Code: ---[Desktop Entry]
Name=Wallpaper
Comment=Uses feh to set tiled wallpaper
Icon=nm-device-wireless
Exec=feh --bg-tile /home/k1/.wallpapers/ptv2.jpg &
Terminal=false
Type=Application
NoDisplay=false

GenericName=

--- Fin du code ---

Now for stalonetray:
(1)
A file named .stalonetrayrc in k1, which is hidden due to the dot prefix, this file has many lines.

--- Code: ---# vim:filetype=config:tw=80:et
#
# This is sample ~/.stalonetrayrc, resembling default configuration.
# Remember: command line parameters take precedence.
#
# Directives introduced in 0.8 are marked with "NEW in 0.8"
#
####################################################################
#
# stalonetray understands following directives
#
####################################################################

# background <color>         # color can be specified as an HTML hex triplet or
                             # as a name from rgb.txt, note that '#' must be quoted
background "#777777"

# decorations <decspec>      # set trays window decorations; possible values for
                             # decspec are: all, title, border, none
decorations none

# display <display name>     # as usual

# dockapp_mode <mode>        # set dockapp mode, which can be either simple (for
                             # e.g. OpenBox, wmaker for WindowMaker, or none
                             # (default). NEW in 0.8.
dockapp_mode none

# fuzzy_edges [<level>]      # enable fuzzy edges and set fuzziness level. level
                             # can be from 0 (disabled) to 3; this setting works
                             # with tinting and/or transparent and/or pixmap
                             # backgrounds
fuzzy_edges 0

# geometry <geometry>        # tray's geometry in standard X notation; width and
                             # height are specified in slot_size multiples
geometry 1x1+0+1

# grow_gravity <gravity>     # one of N, S, E, W, NW, NE, SW, SE; tray will grow
                             # in the direction opposite to one specified by
# grow_gravity; if horizontal or vertical
# direction is not specified, tray will not grow in
# that direction
grow_gravity N

# icon_gravity <gravity>     # icon placement gravity, one of NW, NE, SW, SE
icon_gravity N
# icon_size <int>            # specifies dimensions of typical icon slot
icon_size 32

# log_level <level>          # controls the amount of logging output, level can
                             # be err (default), info, or trace (enabled only
                             # when stalonetray configured with --enable-debug)
                             # NEW in 0.8.
log_level err

# kludges kludge[,kludge]    # enable specific kludges to work around
                             # non-conforming WMs and/or stalonetray bugs.
                             # NEW in 0.8. Argument is a
                             # comma-separated list of
                             # * fix_window_pos - fix tray window position on
                             #     erroneous moves by WM
                             # * force_icon_size - ignore resize events on all
                             #     icons; force their size to be equal to
                             #     icon_size
                             # * use_icon_hints - use icon window hints to
                             #     dtermine icon size

# max_geometry <geometry>    # maximal tray dimensions; 0 in width/height means
                             # no limit
max_geometry 0x0

# no_shrink [<bool>]         # disables shrink-back mode
no_shrink false

# parent_bg [<bool>]         # whether to use pseudo-transparency
                             # (looks better when reparented into smth like FvwmButtons)
parent_bg false

# pixmap_bg <path_to_xpm>    # use pixmap from specified xpm file for (tiled) background
# pixmap_bg /home/user/.stalonetraybg.xpm

# scrollbars <mode>          # enable/disable scrollbars; mode is either
                             # vertical, horizontal, all or none (default)
                             # NEW in 0.8.
scrollbars none

# scrollbars-size <size>     # scrollbars step in pixels; default is slot_size / 4
# scrollbars-step 8

# scrollbars-step <step>     # scrollbars step in pixels; default is slot_size / 2
# scrollbars-step 32

# slot_size <int>            # specifies size of icon slot, defaults to
                             # icon_size NEW in 0.8.

# skip_taskbar [<bool>]      # hide tray`s window from the taskbar
skip_taskbar true

# sticky [<bool>]            # make a tray`s window sticky across the
                             # desktops/pages
sticky true

# tint_color <color>         # set tinting color
tint_color white

# tint_level <level>         # set tinting level; level ranges from 0 (disabled)
                             # to 255
tint_level 0

# transparent [<bool>]       # whether to use root-transparency (background
                             # image must be set with Esetroot or compatible utility)
transparent true

# vertical [<bool>]          # whether to use vertical layout (horisontal layout
                             # is used by default)
vertical true

# window_layer <layer>       # set the EWMH-compatible window layer; one of:
                             # bootom, normal, top
window_layer normal

# window_strut <mode>        # enable/disable window struts for tray window (to
                             # avoid converting of tray window by maximized
                             # windows); mode defines to which screen border tray
                             # will be attached; it can be either top, bottom,
                             # left, right, none or auto (default)
window_strut auto

# window_type <type>         # set the EWMH-compatible window type; one of:
                             # desktop, dock, normal, toolbar, utility
window_type dock

# xsync [<bool>]             # whether to operate on X server synchronously (SLOOOOW)
xsync false

--- Fin du code ---
(2)
In the existing folder named autostart [in the folder .config (which is a hidden folder due to the dot prefix) in k1],
add a desktop configuration file named stalonetray.desktop (edit with geany):

--- Code: ---[Desktop Entry]
Name=Stalonetray
Comment=Small system tray
Icon=nm-device-wireless
Exec=stalonetray &
Terminal=false
Type=Application
NoDisplay=false

GenericName=

--- Fin du code ---
Restart and it should work.

Edit:
Of course  :) don't forget to install feh and stalonetray

melodie:
Hi,

Thanks for your efforts. However I will ask even more efforts! ^^

I would like to ask you to first add a pic to show how it looks and also to use the quotes and code tags in your post, this way:

all quotes should be in quote tags and all code, command lines, content of configuration files should be included in code tags. Could you do that to ease the reading, please ?


kjdixo:
Sorry ... understood.
It is such a long time since I posted anything technical and I was in a hurry.
I simply forgot about the code boxes with scroll bars.
I will do the code tags right now as I am online with my Lubuntu desktop computer.
Then I will go to my Ubuntu Openbox - Netbook computer and do a screenshot.


kjdixo:
Here are 3 (mtPaint) screenshots from my Netbook.




kjdixo:
The menu is a 3 stage multiple menu.xml.
There are 3 menus : menu1.xml, menu2.xml, menu3.xml and they are selected in sequence by clicking the icon at the top of the menu.
I described the method in the following topic on the LXDE.org Forum (1 year ago):
EDIT THE OPENBOX RIGHT CLICK MENU IN LXDE and ADD ICONS
The .xml code for my Ubuntu Openbox (Netbook) menus will appear here soon (in code tags).

Navigation

[0] Index des messages

[#] Page suivante

Utiliser la version classique