eliu
| 1
My two lxpanel (LXDE) improvements |
0
0 | 2012-09-14 | quote | | |
- 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)
|
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
|
New feature:
Press right button on the taskall icon to open a terminal & execute 'top' to display all processes.
|
Update:
Click left button on cpu plugin to invoke 'top'.
|
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
|
sudo cp cpu.so /usr/lib/lxpanel/plugins
|
Now invoke lxtask if available, otherwise use 'top' instead.
edited: 1
|