Nautilus Script – print all documents in folder
I had to print a lot of files lately and it became clear that opening each of them, then hitting ctrl + p takes too long, so i decided instead to look for a nautilus script that allows me to right click inside the folder and hit Print All. Since i didn't find anything (probably didn't look enough...) i built one myself.
Save the script bellow as "Print All Documents" then place it in ~/.gnome2/nautilus-scripts
#!/bin/bash
## By Romeo - Adrian Cioaba
## romeo.cioaba@spotonearth.com
## If you modify it, Please let me know.
## released under GPLv3
IFS=$'\n'
filenames=`ls`
for eachFile in $filenames
do
case $eachFile in
*.pdf) lpr "$eachFile"
;;
*.doc) libreoffice -p "$eachFile"
;;
*.docx) libreoffice -p "$eachFile"
;;
*.txt) lpr "$eachFile"
;;
*.jpg) lpr "$eachFile"
;;
esac
done
exit 0
Make it executable
chmod +x ~/.gnome2/nautilus-scripts/Print\ All\ Documents
and you are good to go. When you go inside a folder, right click and under the Scripts entry you will have the option "Print All Documents"
This script can be of course tweaked to print more file types.
Fullscreen any window in Gnome
If you are running any distro that has a recent Gnome, chances are that your window manager is either Metacity or Compiz. I've found that while working, having my IDE fullscreen helps as that way i can keep away the "noise" and really concentrate on the work i'm doing.
Here's how to fullscreen any window in Gnome:
1. Metacity
- Run gconf-editor.
- Go to /apps/metacity/window_keybindings.
- Change toggle_fullscreen from disabled to F11.
2. Compiz
- apt-get install compizconfig-settings-manager compiz-fusion-plugins-extra
Then open System -> Preferences -> CompizConfig Settings Mangager. The "Extra WM Actions" plugin should now be available under "Window Management". Check it and click "Close".
Restart your X-server by logging out and back in again. The "Toggle fullscreen" keyboard shortcut should now work with whatever you set in the main Gnome keyboard shortcuts settings.
Getting Things done in Gnome
Yesterday i ran into Lionel Dricot's post on Planet Ubuntu regarding the newly launched app: Getting Things Gnome!
The first official release of Getting Things Gnome!, GTG "Just 5
minutes more" 0.1, is out! Grab it and test it!GTG is a personal organizer for the GNOME desktop environment, it
focuses on ease of use and flexibility, while keeping things simple.
What i like best about GTG is that it doesn't get in your way. You can easily add new tasks whitout having to get your hands away from the keyboard.
The next thing i would like implemented in GTG is colaboration. It would be great for multiple ppl to assign tasks to eachother and get reports when the tasks they have assigned to someone are completed.
To get involved in this project please visit it's launchapd page: https://launchpad.net/gtg/