cht電腦資訊Linux
adm Find login register

My two lxpanel (LXDE) improvements

eliu
1 My two lxpanel (LXDE) improvements
Promote 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
2
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
3
Promote 0 Bookmark 02012-09-22quote  
eliu
4
Promote 0 Bookmark 02012-09-23quote  
eliu
5
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
6
Promote 0 Bookmark 02012-09-24quote  
eliu
7
Promote 0 Bookmark 02012-10-16quote  
edited: 1

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