cht電腦資訊Linux
adm Find login register

My two lxpanel (LXDE) improvements

eliu

joined: 2007-08-09
posted: 11478
promoted: 617
bookmarked: 187
新竹, 台灣
1subject: My two lxpanel (LXDE) improvementsPromote 0 Bookmark 02012-09-14quote  
  • taskall plugin: A plugin that shows all windows(tasks) on a menu. You click the menu item to switch to a window. XFCE & Gnome 2.x also has this kind of plugin.
  • When lxpanel taskbar display the title bar of terminal(xterm, rxvt, gnome-terminal) like user@hostname:~/aaa/bbb/ccc.  When the title has to be truncated, it will be displayed as ...name:~/aaa/bbb/ccc. It is very useful to help selecting the right terminal. To set the correct tile bar in terminal+bash. Please add below to your ~/.bashrc. By default Ubuntu 12.04 has it in your ~/.bashrc
    ~/.bashrc display current directory title bar
    # If this is an xterm set the title to user@host:dir
    case "$TERM" in
    xterm*|rxvt*)
    PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
    ;;
    *)
    ;;
    esac
See the attachment for lxpanel executable & lxpanel source code (lxpanel-0.5.8_taskall.tar.xz)
edited: 2
eliu

joined: 2007-08-09
posted: 11478
promoted: 617
bookmarked: 187
新竹, 台灣
2subject: Promote 0 Bookmark 02012-09-15quote  

to compile it

sudo apt-get install intltool
sudo apt-get install libmenu-cache1-dev
sudo apt-get install libiw-dev
tar xvfJ lxpanel-0.5.8_taskall.tar.xz
cd lxpanel-0.5.8_taskall
./configure --prefix=/usr
make

edited: 3
eliu

joined: 2007-08-09
posted: 11478
promoted: 617
bookmarked: 187
新竹, 台灣
3subject: Promote 0 Bookmark 02012-09-22quote  

New feature:

Press right button on the taskall icon to open a terminal & execute 'top'  to display all processes.

eliu

joined: 2007-08-09
posted: 11478
promoted: 617
bookmarked: 187
新竹, 台灣
4subject: Promote 0 Bookmark 02012-09-23quote  

Update:

Click left button on cpu plugin to invoke 'top'.

eliu

joined: 2007-08-09
posted: 11478
promoted: 617
bookmarked: 187
新竹, 台灣
5subject: Promote 0 Bookmark 02012-09-23quote  

A bug,background &  was missing 

This will cause the freeze of lxpanel。Source & executable of the first article has been updated.


void exec_top()

{
if (system(
"sh -c 'for i in lxterm rxvt-unicode xterm rxvt gnome-terminal konsole;do type $i>/dev/null;"
"if [ $? -eq 0 ];then $i -e top; exit;fi;done' &")) {
printf("failed\n");
}
}

edited: 1
eliu

joined: 2007-08-09
posted: 11478
promoted: 617
bookmarked: 187
新竹, 台灣
6subject: Promote 0 Bookmark 02012-09-24quote  

sudo cp cpu.so /usr/lib/lxpanel/plugins

eliu

joined: 2007-08-09
posted: 11478
promoted: 617
bookmarked: 187
新竹, 台灣
7subject: Promote 0 Bookmark 02012-10-16quote  

Now invoke lxtask if available,  otherwise use 'top' instead.

edited: 1

cht電腦資訊Linux
adm Find login register
views:19611