Ubuntu :: Put Icon In The System Tray And Run Bash Command When Clicked?

Jul 29, 2010

I am trying to find a way to put an icon in the system tray and run a bash command every time I click on the icon.

Purpose: I want to set up a system tray icon that will hide/unhide the desktop when clicked, much as would the standard desktop panel plugin for the various panel apps like lxpanel, gnome panel, etc.

Why don't I just use a panel app?

I am using a very reduced install of Ubuntu Lucid oriented towards first time PC users on very old hardware, using Openbox as the window manager and Tint2 with lxlauncher instead of a panel, the latter both compiled from latest source for some slight customization. Tint2 is a taskbar that also features a built in clock applet and system tray which I have chosen after examining basically all other alternatives and chosen for its light footprint and customization. It gives me everything I need except a single click hide/show-desktop feature or a halt/reboot/logout menu. lxlauncher is a very lightweight alternative to the Ubuntu Netbook Remix netbook-launcher (and/or netbook-launcher-efl) package that conforms to the freedesk specifications and occupies all free deskspace other than tint2, under all other windows. I used the freedesk specs to set up a "shutdown" menu category and created shutdown.desktop reboot.desktop and logout.desktop files in the category to add that feature, using dbus commands for the first two and 'openbox --exit' for the latter.

I set the openbox config to open all app windows maximized with no decoration, so each app takes up the whole screen other than tint2 and can only be closed by right clicking on its icon in tint2 or by its file->Quit menu.

This gives me a kind of OLPC for grown ups with no computer experience. In other words, for people who don't know what a desktop or window is. This is similar to the Ubuntu Netbook Remix except that in UNR they superimpose the window decorations over the gnome panel so you can still close the window.

However, the one problem here is that to see lxlauncher when one has several apps running, one has to click on each app in tint2 to minimize it. I would like to add a system tray icon to make this possible with one click without adding too much more overhead to the existing setup.

Here is a screen cap of the desktop:

BTW, I will use wmctrl to test the desktop visibility state and toggle it using this bash command: test 'wmctrl -m | grep ON' && wmctrl -k on || wmctrl -k off

how to get an icon in the system tray and run the above command when clicked will be appreciated

P.S. I've looked at 'zenity --notification --listen' but running a command when the icon is clicked in this case is a pending feature for the app and not yet implemented. My last resort will be to learn C and try that.

View 2 Replies


ADVERTISEMENT

Ubuntu :: TrueCrypt System Tray Icon?

May 17, 2010

Is anyone else getting a non-transparent icon in the system tray when TrueCrypt 6.3a loads on Ubuntu 10.04 with the default theme? Annoying white bars on the top and bottom of the icon. This didn't occur with the same version of TrueCrypt on previous versions of Ubuntu. Any way to resolve it? It looks out of place...

View 5 Replies View Related

Ubuntu :: Remove The Skype Icon From System Tray?

Jul 25, 2010

I installed Skype only because it is necessary to Pidgin to handle the Skype service/protocol. I use Pidgin for many protocols included the IRC, so I don't need Skype icon in the system tray at all. Honestly I hate Skype, but unfortunately it seems that all the world use it. how to take off that terrible icon/indicator/applet from the systray. I searched in all system to find a configuration file, I opened few named Skype using vi to avoid to damage them, but I have not found nothing interesting for my scope. PS: don't tell me how I will switch on or off Skype, because a plug-in of Pidgin do it w/o user interaction.

View 3 Replies View Related

Ubuntu :: System Tray Icon Order Changes After Reboot?

Dec 3, 2010

Ubuntu 10.10, fairly fresh install. The order of the icons in the system tray changes each time I reboot. It's worked fine since install a few weeks ago until today when I booted and the wireless wouldn't connect. I rebooted and they came up in a different order so I rebooted again and the order changed yet again. Maybe I should just keep rebooting until I find an order I'm happy with then never switch my machine off.I've attached a printscreen to show what I mean.

View 9 Replies View Related

OpenSUSE :: Gnome NetworkManager Icon Gone From System Tray?

May 19, 2011

OpenSuSE 11.4 --- 2.6.37.6-0.5-desktop #1 SMP PREEMPT 2011-04-25 21:48:33 +0200 i686 i686 i386 GNU/Linux So recently in the last couple of days my NetworkManager Icon has disappeared from the "System Tray" on the Taskbar, even after a reboot. I have tried doing: Alt+F2 then typing "nm-applet" and nothing happens. Also tried in the terminal typing "nm-applet" and I get:

Code:

# nm-applet

An instance of nm-applet is already running. I am connected to the internet so I know it is working but how do I get the icon back? I would like to be able to switch between connection types (i.e. wlan0 or eth0 etc...) but can't do it without it (well easily anyway, probably could switch through the terminal but I would rather not). Also, on another note I remember earlier in the week reading a post that someone had the same problem, and they told him to Alt-F2 and type "nm-applet", which did work for me once but now it is not.

***And I do remember accidentally deleting something involving NetworkManager from the "Startup Applications" app. Can't remember exactly what it said but I do remember it had the word "-disable" at the end of the command. --> If anyone has NetworkManager icon in their system tray could you please look at your "Startup Applications" and tell me what the one for NetworkManager's command says?

View 9 Replies View Related

Debian Configuration :: Klipper Icon Has Disappeared From The System Tray

Jul 2, 2010

I'm running squeeze. The klipper icon has disappeared from the system tray and I can't figure out how to restore it. The service is running. Stopping and starting it has no effect. Changing the display options for the system tray has no effect. I can bring the klipper dialog up with Ctrl-Alt-V but there are no options available regarding the system tray.

It's obviously a user configuration issue since if I login as root the klipper icon is displayed. I tried to copy the klipper configuration file contents from root to user, but that also had no effect, except to alter some non-relevant options. I haven't been able to locate any other configuration files that might be relevant. This seems to be a not uncommon problem with klipper, but the causes seem to differ. I haven't found any solutions vi Google.

View 4 Replies View Related

Software :: Skype Icon Not Created In System Tray (taskbar)?

Jan 17, 2011

I'm running Kubuntu Meerkat. If I set skype to start minimized automatically, it seems that it's running but there's no way to get to it. It shows up in the process list but there's no icon for it in the taskbar or anywhere else on the screen. Even worse, I can't just kill and restart it; if I kill it, it just comes back. If I issue the skype command from the K menu or from a command line, I get a complaint that another instance is already running.

View 2 Replies View Related

Debian Configuration :: Click On Icon In System Tray Keeps On Telling Networkmanager Disabled

Apr 11, 2010

It was working until a recent update. I have the icon in my system tray. Networkmanager is running. I have tried to reboot the computer and restart the network manager. All switches that could turn the network off is on. Every time I click on the icon in the system tray it tell me the networkmanager is disabled.

View 11 Replies View Related

Ubuntu :: When Click On Networking Icon In System Tray - Says Networking Disabled

Jul 13, 2010

I do have internet cause I am using it on W7. The only thing that I have done different is I left the pc on over night so I guess it went to suspend for the first time. Then I powered off. After turning the pc back on and logging in I have no internet. Not even with the Ethernet plugged directly in. There is supposed to be a little blue light on when it sees the wireless and that is off. When I click on the networking icon in the system tray it says networking disabled. It shows no wireless. When I plug directly in I still get nothing. I'm using 10.04

View 2 Replies View Related

Fedora :: Gnome-shell Message Tray Icon Always Show A Same Icon?

Jun 23, 2011

It always shows a same icon, for every application which shows message tray icon. I just did some shell extension work after fresh installation of F15, nothing related on message tray. Don't know how to change it back.Dose anyone knows how to customize message tray icon for gnome-shell?

View 2 Replies View Related

Ubuntu :: What's The Command To Initiate The Gnome System Tray For When It Fails To Load

May 14, 2010

what the command is for the System Tray, so thought I'd ask here. Note I am not asking how to put a system tray on the panel - I know I can add a notification area, but when I reboot there will be 2 of them, so this is not what I want.

I just need to be able to initialise it when it fails to load. Since my upgrade to Lucid, this has happened a couple of times, so expect it will happen again soon enough.

View 8 Replies View Related

OpenSUSE Network :: Network Icon Missing In System Tray (KDE)

Apr 20, 2011

In the LiveCD there is an Icon. You can see it left of this pic.

This Icon is missing in a FULL INSTALL of openSuSE, how can I make it shown up.

I have KDE Desktop.

View 7 Replies View Related

OpenSUSE Network :: 11.2 Install - When Exit YaST The Network Doest Show Up - No Icon In The System Tray And Doesn't Even Try To Connect

Jan 16, 2010

I am relatively new at Linux and am having some problems with an install of openSUSE 11.2. I installed 11.2 on my Thinkpad X31 dual boot with WinXP. It seems to work very well except the network. I looked up swerdna's instructions on setting network cards up. I used YaST to try and set the system up as described in swerdna's instructions. Everything looks fine my network card and wireless card show up in the overview settings screen and everything sets up fine. But when I exit YaST the network doest show up no icon in the system tray and it doesn't even try to connect.

I did go into hardware to see if it was identifying my hardware and my network card shows up as "Thinkpad R40" and the wireless shows up as Cisco Aironet Wireless 802.11b. As far as I know this is correct. I have tried three other distro's and this one has gotten the closest to working so far.

View 8 Replies View Related

OpenSUSE :: Command Option: Launch An Application Minimized & Add To System Tray

Nov 30, 2010

1. Is there a command option to launch an application minimized?

i.e. in terminal

firefox -minimized [URL]

That opens firefox but does not minimize...

2. Also, is there a command option to add the application to the system tray?

View 3 Replies View Related

OpenSUSE Hardware :: USB Stick Does Not Open When Icon Clicked

Dec 21, 2009

I installed 11.2 Gnome 32 bit version and I notice that when I insert a USB stick (8G) that it either will not open, or it takes several minutes; on another distro, the same stick is instantly recognised, and a window opens immediately; I went back and booted up the liveCD; I notice now the liveCD does this too; (I now see a window has opened from the USB stick after about 3mins); is there some way I can investigate; or describe this behaviour of the system ?

View 3 Replies View Related

Ubuntu Networking :: Network Manager Was Unmanaged. Got That Message When Clicked The Icon At The Right-bottom Bar?

May 8, 2010

language-pack-en, language-pack-en-base, language-pack-kde-en, language-pack-kde-en-base, libsoup2.4-1, libsoup-gnome2.4-1, pm-utils today on my laptop. Some hours later, I had to force the computer to shut down by pressing the power button, since it got totally lagged when I started it after an automatic sleep due to no power left. I started it, logged in and saw that the network manager was unmanaged. I got that message when I clicked the icon at the right-bottom bar.

So, I tried with "ifconfig" in a Terminal, as root.Therefor, I did "sudo ifconfig eth1 up", and the same with eth0. The network manager did not work anyways. I killed it using "sudo killall -9 knetworkmanager" and started it with "knetworkmanager" from the Terminal. The icon got removed and it appeared again, but nothing changed - it said "network manager disables", as before.I logged off and select "Restart X server" from the login screen. I logged in again and tried. Didn't work. When I restarted my computer I saw that eth0 and eth1 was down again. I took them up and then I checked the hardware settings. I saw that I could use either KNetworkManager, Fake Net or Wicd. I tried to locate if I had Wicd or Fake Net installed, but I hadn't.

Neither the wireless or the wired connection works now. I'd like to know how to fix the Network Manager, or whatever is wrong. Also, I'd like to know if I can install Wicd using a CD or something. Maybe Wicd works better, I have no idea. I'm using Kubuntu 10.04, the final release.

View 4 Replies View Related

Ubuntu :: Wireless Tray Icon Is Turning A Wireless Icon?

May 25, 2010

I have Ubuntu 10.04 installed on a laptop of mine, and also a desktop. On this laptop, it's a clean install and I'm having a weird issue with the panel on the top of thescreen.ometimes when I start up the computer and login, I get two noticeable quirks. Instead of having the wireless icon in the tray next to the volume, I have two volume controls next to each other.The one icon, that takes place of the wireless icon, is not functional.The other volume icon functions as normal.

The other quirk is that my power button, used for choosing to logout, shutdown,etc,isappears. Instead, it shows two of my username next to each other (one is the legitimate one that lets you set your away status and such). And in place of the power button, is another username menu, but it is cut off by the edge of the screen and doesn't function.Has anybody had this problem before? Is there some kind of package I can update or reinstall to try fixing this? Sometimes the power button will be fine, but the volume icon will still double up.

View 4 Replies View Related

Ubuntu :: Mail Tray Icon Gone?

Jun 28, 2010

I accidentally removed the mail tray icon (tha onle that looks like an envelope) and i haven't found how to put it back. Does anyone know how to? I haven't been able to find how.

View 2 Replies View Related

Fedora Installation :: Clicked Network Icon On The Right Top Corner Of The Screen, Only Two Option Came Out:Wired - Cable UnpluggedNetwork Setting?

Jun 6, 2011

just installed Fedora 15 on my laptop Samsung RF511Everything works perfectly fine but It seems that I cannot connect to the internet.When I clicked Network icon on the right top corner of the screen, only two option came out:Wired - cable unpluggedNetwork setting.How do I solve this problem. Since the laptop is not connected to the internet, I cannot use command yum.P.S. Samsung RF511 using Broadcom.

Another question, My laptop has two graphic cards. Intel and Nvidia Optimus.Can Fedora 15 use the Nvidia card?Please tell me step by step or send me a link tutorial for beginner to setup my internet since I am very new at linux.

View 5 Replies View Related

Ubuntu Networking :: Clicked Delete Should Have Clicked Cancel

Aug 14, 2010

This morning a box that listed my wireless router came up. I usually click cancel and every thing is okay. Early this morning I clicked Delet. and now I have no wireless. In fact when I click on the wireless icon none of the neighbors routers show up.

View 1 Replies View Related

Ubuntu :: Change Tasque Tray Icon?

Mar 2, 2010

Ive searched all over on where the tray icon is. Id like to change it on my system to the RTM cow icon. Anyone know where the tasque icon for the tray might reside?

View 4 Replies View Related

Ubuntu :: Possible To Change The Tray Icon For Skype?

Apr 22, 2010

I'm here to ask if it is possible to change the tray icon for skype. It looks bad next to the rest of the tray icons.on this?Oh PS: the page I was looking at didn't have any solution to my problem

View 3 Replies View Related

Ubuntu :: PS3 Media Server Tray Icon Looks Odd?

Jul 2, 2010

I have done a fair bit of Googling first but with no success...I am using PS3Media server to stream audio, video etc to my PlayStation. It works very well indeed on the PS3 end, but I have a slight annoyance that is messing with the nice look and feel of my Ubuntu desktop: The PS3 Media Server icon seems to have a grey background, whereas my panels all have dark transparency, this makes it stand out a mile.Is there any way of altering this icon? I was looking in the ..../pms-linux-1.10.5 folder but couldn't find much there.

View 2 Replies View Related

Ubuntu :: How To Hide Parcellite Icon On Tray Bar

Oct 13, 2010

I'm using Parcellite right now since whenever I copy something from Firefox and close it before pasting, whatever I copied is gone. Parcellite fixes this, but I don't want it to be on my tray all the time. How can I hide it?

View 2 Replies View Related

Ubuntu :: Thunderbird 3 New Mail Notification Tray Icon?

Apr 29, 2010

I'm using Ubuntu Lucid 64bit. Thunderbird 2 had an add-on for new mail icon notification in the tray, but I haven't yet found a working replacement for Thunderbird 3.

View 9 Replies View Related

Ubuntu :: Where Are Panel Tray Icon Image Files

Jul 19, 2011

I'm on Ubuntu 10.04 Lucid. I need to find the icon image files used by the Gnome panel tray apps, specifically, Banshee (see attached screenshot). It's not in /usr/share/pixmaps, as that banshee icon is used for the panflute launch button, not the Banshee tray icon. I imagine it would be where all the other tray icons are (volume, battery, etc). I'm looking for it so I can try editing it to fix the white background.

View 2 Replies View Related

Ubuntu :: Teamviewer On Startup - Starts With Only An Icon In The Tray

Jul 6, 2011

I use Team Viewer a lot. In Windows, if you have it set to start with Windows, it starts with only an icon in the tray. On my daughters Acer netbook running Edubuntu Natty, when I set it to start with the computer it opens the full program. My question is how do I set it so it still starts but without being intrusive? Hidden...

View 2 Replies View Related

Debian :: Insync Tray Icon Missing?

Mar 24, 2016

I have probllem with Insync (google drive synchronisation).I instaled insync and insync-nautilus, synchronisation was started, but I haven't icon in tray ( upper right corner of the screen ).My system that Debian 8.3 32Bit.

View 1 Replies View Related

Debian Multimedia :: Only One Tray Icon Per Application?

Jul 30, 2015

I have a multi-platform QT4 application and I'm trying to make it run on Debian 7.x. In this app I'm creating 2 QSystemTrayIcon 's and when I run this application on Debian 7.8 with Gnome 3 disabled both tray icons show up nicely in the notification area in the top-right panel. However when I have Gnome 3 enabled nothing shows up in the top-right panel and the tray icon shows up in the (hidden) bottom panel, but the problem is only the first one of my 2 tray icons shows up - the other one is lost.

I'd like to ask, whether it is by design so, that on Gnome 3+Debian 7.8 there can be only one tray icon per application? Or is it some issue with Qt? I tried also Ubuntu 14.04 with Gnome 3 and there both tray icons showed up nicely in the top-right panel.

View 0 Replies View Related

Debian Multimedia :: No Tray Icon In Rhythmbox

Jul 22, 2009

There doesn`t seem to be a tray icon for Rhythmbox. The only way to minimize it seems to be to the taskbar. I have used Rhythmbox. I am using a fully updated Debian Testing with Rhythmbox 0.12.3.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved