How can I change the background color of the unity launcher?

This question has received: 8 Votes.

I really dislike the slight dark-purple tint to the side-launcher bar and shell surrounding the menu after pressing the meta key. How can I set this to another color?

enter image description here

There are configure options available for Unity here but there is no option for this, so I am looking for pointers in the code where this can be set.

Tue Nov 22 17:02:17 AST 2011
Answer #: 1
This answer has received: 2 Votes.

(This is an incomplete answer that needs improvement and investigation, but should provide someone who knows C++ with enough detail to find the real answer)

By default the Launcher uses a light gray semi-transparent color. When you hit invoke the dash, the entire thing takes on a blurred look based on the averages of your wallpaper colors. I asked Marco Trevisan where this can be modified, but it’s in a bunch of places.

However, for the launcher when it’s just sitting there you need to look in Launcher.cpp:

First grab the code:

bzr branch lp:unity

Then look in unity/plugins/unityshell/src/Launcher.cpp for the _background_color variable and adjust accordingly.

Tue Dec 13 19:48:18 AST 2011
Answer #: 2
This answer has received: 1 Votes.

My trick (has to be re-done every restart / log in):
* MyUnity (program) -> Dash -> Blur ON (or, at your own risk: ccsm -> unity plugin -> experimental -> blur -> static)
* prepare a bitmap (image) of your desired color and desktop size
* log out
* don’t invoke the dash!
* open the prepared image in the default viewer, go full screen mode and press the WinKey

From now on the Dash will be almost the color you wanted to be.

Sat Jan 28 20:53:24 AST 2012
Answer #: 3
This answer has received: 1 Votes.
Sat Jan 28 21:04:33 AST 2012
This question and its answers are found at: How can I change the background color of the unity launcher?

LibreOffice problem integrating with Unity

This question has received: 8 Votes.

I have started noticing this problem a while back. Opening spreadsheets directly from Nautilus sometimes has different behaviors in Unity. This means that sometimes I see the icon pop in the launcher like in the image below:

icon shows up ok

Other times I have the default LibreOffice icon, even though I have a spreadsheet (LibreOffice Calc) open:

default Icon for spreadsheet

And finally the worst case is when I don’t get any icon at all even though I have the spreadsheet open:

enter image description here

In this final case I don’t even have the close/minimize/maximize window in the top left corner. I can only close it with ALT+F4.

Any idea why Unity would behave like this?

I don’t see a special pattern for this occurrences. Happens apparently random for both .ods and .xls files.

Wed Nov 30 19:13:04 AST 2011
Answer #: 1
This answer has received: 2 Votes.

I had the same issue. After I installed the lo-menubar (see synaptic) i haven’t seen this issue (to be sure I will need to test longer). I’m wondering if you have the same experience.

Wed Nov 30 22:47:41 AST 2011
Answer #: 2
This answer has received: 2 Votes.

In Ubuntu 12.04 lo-menubar actually causes problems and removing it after upgrading from 11.10 has lead to the unity integration working much better.

Tue Aug 07 15:24:11 AST 2012
This question and its answers are found at: LibreOffice problem integrating with Unity

How to remap a key combination to a single key?

This question has received: 11 Votes.

I’m using Ubuntu on a Samsung Chromebook. As some of you may know, the keyboard used in ChromeOS based netbooks is a bit awkward: amongst other things, it doesn’t have a Del key*. If I were going to use this netbook to its original purpose, browsing, I guess it wouldn’t be a problem, but I need to program with it, and I miss a lot of keys, specially the Delete one, but also Page Up, Page Down, home and End.

So I’ve been looking for a way to remap Alt+Backspace to Page Up, Alt+left arrow to Home, Alt+down to Page Down, and so on…

I have found a lot of explanations on how to remap one key, but I don’t know how I can remap a key combination to a single key. Has anyone tried to do something like this?

Thanks a lot.

*I mean, the key that deletes a character to the right. We call it “Supr” in Spain, I am not sure how it’s in english-speaking countries.

Wed Dec 07 13:42:22 AST 2011
Answer #: 1
This answer has received: 5 Votes.

You can use xbindkeys to grab the keys and xvkbd to send keys.

Create a file .xbindkeysrc in your home directory and paste this text:

"xvkbd -xsendevent -text '\[Delete]'"
  Alt + BackSpace

"xvkbd -xsendevent -text '\[Home]'"
  Alt + Left

"xvkbd -xsendevent -text '\[Page_Down]'"
  Alt + Down

Then start xbindkeys and it should work. Probably you want to map more keys, then after you edited the .xbindkeysrc you can run pkill -HUP xbindkeys to send a HUP signal to xbindkeys (or kill xbindkeys and start it again).

To see the key names that xbindkeys sees, you can run xbindkeys -mk (man xbindkeys has more info).

To see the key names that xvkbd knows, have a look in /usr/include/X11/keysymdef.h (maybe someone else knows a better method?).

xbindkeys only runs until your X session ends, so you probably want to put it in your startup (auto-start) programs.

Sat Dec 17 14:32:15 AST 2011
This question and its answers are found at: How to remap a key combination to a single key?

Gnome-terminal doesn’t refresh

This question has received: 9 Votes.

Gnome-terminal works just fine when I am running Unity, but when I run Gnome shell, terminals don’t work properly and have to be constantly refreshed. This is particularly annoying when using “vi” to edit text files. In the old, old days, I saw problems like this when the “.profile” file didn’t have the correct setting for TERM. But I thought that modern distributions had pretty much solved this issue.

In anyone else seeing this behavior? Hard to believe that it’s only me with this problem.

For what it’s worth, I have this issue on every one of my four Ubuntu 11.10 installations, so I know it’s not a hardware issue.

Wed Dec 21 21:13:20 AST 2011
Answer #: 1
This answer has received: 7 Votes.

This has been reported as a bug: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-180/+bug/303224

A possible fix is presented in that bug report. I can confirm that it helps in my case. The fix is to install compizconfig-settings-manager and then run ccsm. Use advanced search to change the following settings, then log out and log back in.

  • Texture filter: best
  • Lighting: checked
  • Detect refresh rate: unchecked
  • Refresh rate 200
  • Sync to vblank: unchecked
Tue Mar 06 15:59:56 AST 2012
Answer #: 2
This answer has received: 0 Votes.
Mon Jan 09 16:32:34 AST 2012
Answer #: 3
This answer has received: -1 Votes.

Try guake if you use terminal a lot. It’s dead handy 🙂

Tue Mar 06 14:55:03 AST 2012
This question and its answers are found at: Gnome-terminal doesn’t refresh

Where is the Adobe flash player Settings Manager?

This question has received: 9 Votes.

I want to allow midomi website to access my microphone. The only way I know is to access this link http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager06.html . However, that link does not give me a way to save the setting I made, so to no avail.

I wonder if I can find the setting manager on my local Ubuntu system? Thanks and regards!

Tue Dec 27 13:29:59 AST 2011
Tim
Answer #: 1
This answer has received: 3 Votes.

If you run:

me@ubuntu:~$ dpkg -l | grep flash
ii  adobe-flash-properties-gtk             11.1.102.55-0oneiric1                      GTK+ control panel for Adobe Flash Player plugin version 11
ii  adobe-flashplugin                      11.1.102.55-0oneiric1                      Adobe Flash Player plugin version 11

you will get list of all your ‘flash’ packages. This way you will find the exact package name: adobe-flash-properties-gtk.

Now, you can find binaries in the adobe-flash-properties-gtk package, by:

dpkg -L adobe-flash-properties-gtk | grep bin
/usr/bin
/usr/bin/flash-player-properties

So, the answer is: flash-player-properties command from the adobe-flash-properties-gtk package.

Tue Dec 27 16:03:19 AST 2011
Answer #: 2
This answer has received: 1 Votes.

The settings should be autosaved as you change them.

If you want a local version, install adobe-flash-properties-gtk from the partner repository, though it also doesn’t have a ‘Save’ button.

Tue Dec 27 14:45:18 AST 2011
Answer #: 3
This answer has received: 0 Votes.

This is how I got it to work (miraculously).

First, using the web-based flash settings, add the “www.midomi.com” URL to:

  • Global Security Settings
  • Website Privacy Settings

You can see what I mean by seeing this guys instructions here.

Once you’re done doing this, open the midomi website in a new window. It is very important that you do this, otherwise the settings may not apply.


Now here is the part where it gets weirdly interesting.

On the midomi website, just record anything for about 5-10 seconds. It will then take you to a link where it will say “Nothing found”. On this page, look for a link called “Test your microphone” (URL might look like this)

After clicking on this link, it will take you to a sort of test area. Here you can specify which mic you would like to use. After choosing the appropriate mic, you should be able to record something.

This might help anyone trying to connect an external device as a mic (midomi seems to always choose your internal device by default).

Sun Aug 31 20:07:19 AST 2014
Joe
This question and its answers are found at: Where is the Adobe flash player Settings Manager?

How do I copy the whole history of the clipboard to a text file?

This question has received: 8 Votes.

I would like to paste my whole clipboard history consisting of words copied (Ctrl+C/by selection) during my reading sessions. I installed programs like Glippy and ClipIt but I couldn’t figure out how to paste all the words, if ever exists such an option in these programs, I copy to a simple text file at once, not one word at a time. Can someone help me out?

Thank you!

Tue Jan 17 10:28:19 AST 2012
Answer #: 1
This answer has received: 1 Votes.

You can see some strings in clipit history file with this command:

strings ~/.local/share/clipit/history

But it’s not the best way. The output may be garbled.

Thu Oct 18 00:16:40 AST 2012
Answer #: 2
This answer has received: 1 Votes.

The latest version of Parcellite has a Save As menu item when clicking the icon. This will save all the history entries to a file. There is also a paste all when right-clicking the history list, which will place the entire history list on the clipboard. The preferences have a Paste All delimiter that it will put at the end of each entry.

https://sourceforge.net/projects/parcellite/files/parcellite/parcellite-1.1.1/ ppa here: https://launchpad.net/~rickyrockrat/+archive/ppa

Thu Jan 17 12:11:35 AST 2013
Answer #: 3
This answer has received: 1 Votes.

Install KDE’s Klipper Clipboard Manager Install klipper and use the following simple script:

text="nothing yet"
cnt=0
while [ "$text" != "" ]; do
  text=`qdbus org.kde.klipper /klipper getClipboardHistoryItem $cnt`
  echo "==== Clipboard content line $cnt:"
  echo "$text"                      # to terminal output
  echo "$text" > /path/to/file      # to file (EDIT this)
  cnt=$((cnt + 1))
done

Note: This does not behave very well in Unity so it seems. So in other desktop environments than KDE: your mileage may vary.

Thu Jan 17 12:50:49 AST 2013
Answer #: 4
This answer has received: 1 Votes.

there is python script for ClipIt run it like this python cliphist.py > clipit.history.txt

#!/usr/bin/env python
"""cliphist.py: utility to print clipit history file.
If an argument is passed on the command line, it will
be used as a separator, otherwise history items are
separated by a blank line. """

import struct, os, sys

homedir  = os.environ['HOME']
histfile = homedir + '/.local/share/clipit/history'
if len(sys.argv) > 1:
    sep = sys.argv[1]
else:
    sep = '---------------------------------------------------------------------'


with open(histfile,'rb') as f:
    f.read(68)
    size,_ = struct.unpack('2i',f.read(8))
    while (size > 0):
        item = f.read(size)
        print item
        _,_,_,size,_ = struct.unpack('5i',f.read(20))
        if size > 0: 
            print sep
Wed Mar 26 10:00:22 AST 2014
Answer #: 5
This answer has received: 0 Votes.

user Parcellite, left click on its icon, “clear”, select how many times you want, after that, “edit clipboard” and copy it all! Remember so set preference: use primary selection, to make it easier to copy the text!

Thu Sep 20 00:08:55 AST 2012
This question and its answers are found at: How do I copy the whole history of the clipboard to a text file?

Emulator for iphone/ipod/ipad apps

This question has received: 9 Votes.

Is there any emulator for linux which fully supports apple iphone/iphone/ipad apps? Any other way to run such apps on linux?

Tue Apr 10 12:23:46 AST 2012
Answer #: 1
This answer has received: 5 Votes.

Currently the only emulator for testing iOS applications is build for MacOS.
There is a work in process to bring an emulation software to linux which you might want to take a look at…but judging by the development status it’ll be a while till it’s usable.
http://www.iemu.org/index.php/Main_Page

The long and complicated way of achieving your goal would be running MacOs in a virtualbox on ubuntu and run the official emulator in there.

Tue Apr 10 12:34:22 AST 2012
This question and its answers are found at: Emulator for iphone/ipod/ipad apps