Showing posts with label Nautilus. Show all posts
Showing posts with label Nautilus. Show all posts

Friday, 10 September 2010

Howto: Bind Keys In Nautilus To Scripts Or Other Menu Items.

I picked up this excellent tip from Webupd8.

First you should have installed Nautilus Open Terminal for an initial very useful shortcut. It adds a menu entry on the right click and in the File menu to do exactly what it says, open a terminal at the current folder you have open in the active Nautilus window. So enter the following into a terminal.

sudo apt-get install nautilus-open-terminal

If it is already installed it will just inform you of it in the text it spews, otherwise it will install it, and inform you of that too.

Open up gconf-editor from a terminal or Alt+F2 (you may also have it listed in your Applications/System Tools/ menu as Configuration Editor. Be a little bit careful in here, there is possibility of breaking stuff. Navigate in the left hand pane to Desktop/Gnome/Interface.

Change the toggle for "can_change_accels" to true/enabled. Leave the gconf-editor window open as you most likely want to disable it again after setting the keybindings you want. Be aware that you can only bind to the main Nautilus menu and not to its right click menu.

Press Alt+F2 and enter "nautilus -q" to restart Nautilus, then you may set any menu item or script to have a key bind simply by opening the Nautilus main menu and then pressing the key bind that would like to set it as while hovering over the item. For instance I hovered over Open Terminal and I have set to F4, I have also added bindings to other scripts I use fairly frequently.

I would suggest disabling the "can_change_accels" to false again to prevent accidental overwriting of key bindings, thats entirely up to you though, and be aware of what key binds you set of course, binding ctrl+c to close/quit nautilus is going to cause problems ;)

Friday, 18 December 2009

Howto: Split pane Nautilus


This is now not necessary as Ubuntu 10.04 has dual pane built-in, just hit F3



Found this on OMGBuntu and have been using it, its pretty useful so far and has been stable.

sudo add-apt-repository ppa:berndth/ppa

Then I opened up Synaptic and clicked "Reload" to reload all repository data, and "Mark all Upgrades" and apply it. Alternatively you can do:

sudo apt-get update &&;sudo apt-get dist-upgrade

You will need to either logout and back in, or hit ALT+F2 and "killall nautilus" and then ALT+F2 again and "nautilus" to restart it with the new changes. Note that if you have added extra buttons to the Nautilus toolbar you will have to readd those as the update will have over written them. Add the changes to the NEW file, don't just copy over the old if you had a backup. The new file contains menu items for the split pane which you won't want to lose.

Now you can use F3 to pop open or close the extra pane.


Tuesday, 17 November 2009

Howto: Stop Ubuntu 9.10 Karmic Mounting USB Devices With UUID Instead of a Name

Ubuntu 9.10 Karmic Koala changed the way USB devices get mounted a little bit. Instead of being mounted as /media/disk and then each other device becoming /media/disk-1, disk-2 and so forth, now the device is mounted with its UUID, a seemingly random string.

I never minded the disk-1, disk2 thing, though it was slightly annoying to not know which device was which sometimes it was seldom a problem as I had frequently just plugged it in and watched it mount. So the new change was a bt more of an annoyance as its harder to see which random string just appeared sometimes.

The solution as ever is pretty darned simple however, just label the device you lazy bum ;)

Pop along to the following page and read how to label different partition types, most likely fat16/32 or NTFS for your average thumbdrive of phone/mp3 player mounted as a mass storage.

https://help.ubuntu.com/community/RenameUSBDrive

Personally I use the Gparted method as mtools has an issue which means you have to add the device to a config file first (its detailed on the page) and while its not hard, its just an extra step I don't need.

So if you don't have Gparted installed already do the following or use Synaptic:

sudo apt-get install gparted

Start Gparted from the System/Administration menu, then select your device from the drop down list in the top right then unmount it by right clicking it in the lower frame and choose unmount. This is so you can make changes to it. Choose to "label" it from the same right click menu or from the Partition menu, finally you have to apply the changes by clicking the right most icon on the toolbar to "Apply all changes". It is done instantly and no longer will that device be known as /media/4169-87bb.

Tuesday, 4 August 2009

Howto make autohide panels smaller and hidden more in Gnome

Autohide panels in Gnome default to a 6 pixel strip remaining showing. I suspect this is done to "reduce confusion" which is a popular phrase from the Gnome guys, regardless its a little annoying to autohide a panel and still have it show around 20% of itself, so lets fix that.

The easiest way to do this is pop open a terminal and enter:

gconf-editor

This is quite a daunting program if you are fairly new to dabbling in the guts of OS's, and I must warn you to be a little careful in here, certainly don't go just changing stuff around to "see what happens"... Ok, no-one is that dumb... right?

Anyway, down the left hand side is a nice tree menu, navigate to:

/apps/panel/toplevels/

You should then see your panels on the left in the toplevels branch, possibly named bottom_panel_screen0, top_panel_screen0 or simply panel_0, panel_1 etc. Click on each of the panel entries and you will see the right pane populate with some "keys", locate the one auto_hide_size which is very likely set to 6 at the moment, change the 6 to a 1 by clicking on it.

The change is nearly instant and you will hopefully see the relevant autohidden panel sneak a little further offscreen, setting the value to 0 (zero) will not have the desired effect incidently so stick to 1 please.


Friday, 29 May 2009

Is your Nautilus slow to open directories?

Fix Naultilus slow loading some directories.

If nautilus is taking an age to load some directories on your computer then you may have Assistive Technologies enabled.

Simply go to the System menu on your desktop and then in Preferences. Click on Assistive Technologies.
Untick the box marked "Enable Assistive Technologies" and choose "Close and Log Out" at the bottom of the window.

When you log back in Nautilus should be opening directories instantly again. Apparently this became an issue in 8.10 when Assistive technologies was enabled by default, I only spent aoround 8 months suffering with this before getting off my backside and finding a fix, it is disappointing that there has not been a direct update to sort this out, there must be a lot of people stuck with this problem.