Topic: HOWTO: Lightest XFCE

XFCE is generally light out from the box but it can be a lot more light, to have most of its functionality we need only these 3 processes running:

 VSZ   RSS   COMMAND
14080  9300  xfwm4
23448 12020  xfce4-panel
19836  9512  xfce4-menu-plugin

mandatory ports: [thanks to  lvlamb ]
/usr/ports/x11-wm/xfce4-wm
/usr/ports/x11-wm/xfce4-panel
/usr/ports/x11-wm/xfce4-desktop
# to get xfce4-menu-plugin
/usr/ports/x11-fm/thunar # to have nice and light file manager
/usr/ports/graphics/feh # to have wallpaper and nice ultra light/fast image viewer.

to start XFCE with only these processes we will use this ~/.xinitrc:

xfce4-panel & pid=$!
{
  xfwm4 --compositor=off --daemon && killall -9 xfce-mcs-manager &
  random_wallpaper.sh ~/gfx/wallpapers &
}
wait $pid

my random_wallpaper.sh script:

#! /bin/sh

walls="${1}"
count=`ls ${walls} | wc -l`
random=`( time ps aux ; date +"%S" ; w ) 2>&1 | cksum | awk '{print substr($0, 0, 5)}'`
choosen=`expr ${random} % ${count} + 1`
feh --bg-scale ${walls}/`ls ${walls} | sed -n ${choosen}p`

In XFCE generally all settings like current theme icon theme and so are handled by xfce-mcs-manager but we kill it and use pure old ~/.gtkrc-2.0 for that:

gtk-icon-theme-name = "Tango-Blue-Materia"
gtk-theme-name      = "Luminance"
gtk-font-name       = "Sans 10"

here are links for that themes if You like them:
gtk-icon-theme-name: http://vermaden.proplayer.pl/tmp/xfce-icons.tar.gz
gtk-theme-name: http://vermaden.proplayer.pl/tmp/xfce-theme.tar.gz

icons dir: ~/.icons/Tango-Blue-Materia
theme dir: ~/.themes/Luminance

to end work with XFCE You can traditionally hit CTRL + ALT + BACKSPACE or hit EXIT on XFCE panel.

the END RESULT looks like that:
http://vermaden.proplayer.pl/gfx/screen … -light.png

Have Fun. wink

Last edited by vermaden (2007-02-19 17:15:26)

"religions, worst damnation of mankind"
[color=Blue]Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for

Re: HOWTO: Lightest XFCE

How much RAM does it use idle in comparison to the out of the box xfce?

And nice screeny smile

Running FreeBSD on amd64 (athlon64 3000+, 512mb RAM, 160gb HD, Asus motherboard, 450w PSU and ATI radeon 9700)

Re: HOWTO: Lightest XFCE

default xfce processes:

 VSZ    RSS   COMMAND
31432  13484  xfdesktop
29632  10884  xfce4-session
27920  11604  xfce4-panel
14308   9124  xfwm4
29864  10112  xfce-mcs-manager
26924  10744  xfce4-menu-plugin
-------------------------------
160080 65952 TOTAL

light xfce processes:

 VSZ   RSS   COMMAND
14080  9300  xfwm4
23448 12020  xfce4-panel
19836  9512  xfce4-menu-plugin
------------------------------
57364 30832

As You can see 3 x less VSZ and 2 x less RSS and also less CPU usage.

"religions, worst damnation of mankind"
[color=Blue]Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for

Re: HOWTO: Lightest XFCE

You can ignore the VSZ numbers. Those indicate the total process size, including shared libraries. These shared libraries are only loaded once though. You can assume that all those xfce programs use the same libraries, which are thus counted several times in the VSZ numbers.

Re: HOWTO: Lightest XFCE

Yes, ps/top numbers cannot be treat exacly what they are saying, there are some tools on Linux to show exacly amount of memory used by graphical processes with shared memory, but I havent found them avialable for FreeBSD.

"religions, worst damnation of mankind"
[color=Blue]Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for

Re: HOWTO: Lightest XFCE

mandatory ports: [thanks to  lvlamb ]

Mandatory or half mandatory and half advised ?

<wintellect> NetBSD users are smart enough to accept that there's no 3D support tongue

Re: HOWTO: Lightest XFCE

sigh, I miss XFCE hmm.

Re: HOWTO: Lightest XFCE

what are you using now asem?

[ quote=lucas ]who wants to use sco unix?

if i were faced with either sco unix or linux, i'd shoot myself in the face[ /quote ]

Re: HOWTO: Lightest XFCE

OS X smile.

10

Re: HOWTO: Lightest XFCE

yeh same, but thats on my mac.

On my linux box & netbsd box I run XFCE still.

Actually, i just got SLiM working on my linux box the other night... the best way to make XFCE even lighter by replacing XDM all together.

Might work it NetBSD next, its a 300kb install big_smile

[ quote=lucas ]who wants to use sco unix?

if i were faced with either sco unix or linux, i'd shoot myself in the face[ /quote ]

Re: HOWTO: Lightest XFCE

my only BSD box is my OpenBSD router/firewall/server. I currently have no BSDs with X installed so I kinda miss messing around with WMs.