Jump to content

Right click menu


georgeg4

Recommended Posts

Hi I am running Ubuntu 10.04 and FF 10.0.2 and I would like to add destination folders to my desktop right click I.E. Move to and Copy to all I have is those two choices and would like to add other folders to it

 

Link to comment
Share on other sites

Guest LilBambi

Would this work for what you want to do, georgeg4?

 

[all variants] Add Menu entry to right click to play file(s)/Folder with Right-Click (Ubuntu forums):

Add Menu entry to right click to play file(s)/Folder with Right-Click

Add Menu entry to right click to play file(s)/Folder with Right-Click

 

How many times you wished to simply right-click a file/folder and select to play the media with mplayer on the terminal. Well I do often and I was tired to open the terminal , copy the name ,type mplayer., paste name…. press enter..

 

* System info____________________

 

DISTRIB_ID=Ubuntu

DISTRIB_RELEASE=10.04

DISTRIB_CODENAME=lucid

DISTRIB_DESCRIPTION=”Ubuntu 10.04.3 LTS”

DESKTOP_SESSION=GNOME

mplayer package and gstreamer codecs installed

 

* Commands____________________

 

sudo apt-get install nautilus-actions

mkdir ~/bash_scripts

cat >~/bash_scripts/play_all.sh

#!/bin/bash

cd “$2″

mplayer “$1″

mplayer “$1/”*

chmod +x ~/bash_scripts/play_all.sh

nautilus-actions-config-tool

 

1. define new action with name: play all

2. Select Action tab and check “Display Item in selection context menu” and “Display Item in location context menu”. Make sure “Enable” is checked

3. Select Command tab, and in the PATH field put: gnome-terminal. In the PARAMeters : –command=”~/bash_scripts/play_all.sh %f %d”

4. Select Conditions tab. Check that “both” and “Appears if selection has multiple files or folders” are checked.

5. Select Advanced conditions, and check all the entries.

6. Select File>Save

 

Logout-Login and right-click select on folder(s) (containing music files), or files and play them.

Link to comment
Share on other sites

Actually Bambi what I want is to be able to right click on an object and send it to its particular folder I.E. Pictures, Documents ETC. I know I can move the folders to my desktop but I prefer to keep them inside my Home folder

 

 

 

Link to comment
Share on other sites

Guest LilBambi

How about a SendTo menu?

“Send To” script for Nautilus in Ubuntu:

So for all those people who have always been Windows users and now want to move to Linux, there are some things which we miss a lot in Linux or want in Linux.

 

The “Send To” menu is one of them. I used to miss it a lot as well, but not anymore. I wrote a Nautilus Script to add the “Send To” menu to my Nautilus right click menu.

 

Here’s the steps to get your own custom “Send To” menu item in Nautilus :

 

First of all move to the following folder

 

#cd ~/.gnome2/nautilus-scripts

 

Then create a file in this folder and name the file whatever you want your menu item to be

 

#touch “Send To”

 

Add the execute permission for this file

 

#chmod +x “Send To”

 

Edit this file and add the following code in this file

 

#!/bin/bash

## Authur : Sushant Bhosale

IFS=$’\n’

cd ~/

gnome-terminal –command=’./list.sh’

exit 0

 

Now go to the home directory and create a file named “list.sh” and add execute permission to it

 

#cd ~/

 

#touch list.sh

 

#chmod +x list.sh

 

Edit “list.sh” and add the following code in the file

 

#!/bin/bash

## Author : Sushant Bhosale

IFS=$’\n’

cd /media/

array=(`ls`)

len=${#array[*]}

i=0

while [ $i -lt $len ]; do

echo “$i: ${array[$i]}”

let i++

done

echo “Enter the folder to copy: “

read ch

for FILENAME in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS

do

cp $FILENAME /media/${array[$ch]}

done

exit 0

 

Just save and copy with just few clicks. . .

 

Another good feature of this script is that it asks the user for the drive to copy file to, so you can use it to copy file to any mounted drive.

 

More in the article...

 

Should give you some ideas on how to add what you want to the SendTo Menu.

 

SendTo can be email addresses or folders ... like in Windows.

Link to comment
Share on other sites

How about a SendTo menu?

“Send To” script for Nautilus in Ubuntu:

 

 

More in the article...

 

Should give you some ideas on how to add what you want to the SendTo Menu.

 

SendTo can be email addresses or folders ... like in Windows.

 

I would recommend nautilus-actions, you can then easily add own rightclick menus to do what you want.

 

Nautilus Actions Configuration (sudo apt-get install nautilus-actions) And setup something like "Move to Home" which would be the following command and parameters:

 

/bin/mv

 

%M /home/%U/

 

Which would execute the Move command with the full path to all selected files and place them in your Home Folder.

 

 

 

Go to System > Preferences > Nautilus Actions

http://www.makeuseof.com/tag/add-custom-fu...nautilus-linux/

 

and setup commands that you want to add.

Link to comment
Share on other sites

lilbambi

I tried to add your send to menu but after opening a konsole i got the following results must be I am doing it wrong

 

george@ubuntu:~$ sudo cd ~/.gnome2/nautilus-scripts

[sudo] password for george:

sudo: cd: command not found

george@ubuntu:~$

 

Link to comment
Share on other sites

securitybreach
lilbambi

I tried to add your send to menu but after opening a konsole i got the following results must be I am doing it wrong

 

george@ubuntu:~$ sudo cd ~/.gnome2/nautilus-scripts

[sudo] password for george:

sudo: cd: command not found

george@ubuntu:~$

You do not need sudo for those commands. The author of the article must of made a typo in the commands as you would not want a script in /root/.gnome2 as you do not run gnome as root anyway.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...