Screen Here - Open screen(1) Command Prompt in Current Nautilus Directory
This program integrates screen(1) with Gnome file manager Nautilus. Right click on folder background to get a new screen. Terminal window is raised automatically.
Why did I wrote this script? I was browsing images and videos in Nautilus to see their thumbnails. But when it comes the time to roll ones sleeves and actually do something to those files, nothing can beat good old cli. I wrote this script to avoid typing long paths to command line. I also did not want to clutter my desk by opening more terminals.
Two Line Script
#!/usr/bin/env bash # (c) 2009 Tero Karvinen http://iki.fi/karvinen # 2009-09-18 Tested with Nautilus, Ubuntu 8.04 # Usage: # Put it to $HOME/.gnome2/nautilus-scripts/ # Nautilus: Folder background: Scripts: screenhere screen -X eval "screen" "stuff 'cd \"$(pwd)\"'15" wmctrl -a Terminal
Install
Requirements:
$ sudo software-properties-gtk --enable-component=universe $ sudo apt-get update $ sudo apt-get install nautilus-script-manager wmctrl
The script:
$ cd $HOME/.gnome2/nautilus-scripts/ $ nano screenhere # copy paste the script, ctrl-X y enter to save
Usage
Have your screen open
Applications: Accessories: Terminal
$ screen
Open a directory from Nautilus
Open Nautilus: Places: Home Folder.
View as Icons.
Right click folder background. Scripts: screenhere.
Terminal is raised to the front. Directory you were viewing in Nautilus is automatically opened.