Context Menu Extras

Talk about your projects for the community
Forum rules
No support questions here please

Context Menu Extras

Postby LastOS on Tue May 11, 2010 10:56 pm

Panel Layout Backup:
This script can be included to use nautilus-actions Scripts section in the menu to allow the user to save the current layout of their gnome panels, so if something messes up the layout (Screen resolution change, adding items), you can restore it back to your preferred state.

~/.gnome2/nautilus-scripts/
Backup-Panel.bash
Code: Select all
#!/bin/bash

gconftool-2 --dump /apps/panel > ~/.saved_panel_settings.entries


Restore-Panel.bash
Code: Select all
#!/bin/bash

## loads settings into gconf
  gconftool-2 --load ~/.saved_panel_settings.entries
## kills the gnome-panel so it restarts with the new gconf settings
  killall gnome-panel
## restart gnome network monitor applet which dies after killall gnome-panel
  gnome-panel
  nm-applet &



Show Hidden Files:
Sometimes when your working in folders you really don't want to let go of the mouse to press Ctrl H, or maybe you don't remember the shortcut keys, The following will change the status of displaying hidden files in nautilus.

~/.gnome2/nautilus-scripts/Show Hidden Files
Code: Select all
#!/bin/bash

# When hidden files (.emacs, etc) are hidden, shows "Show Hidden Files" option.
# When hidden files are shown, shows "Hide Hidden Files" option.
# Uses gconf to toggle between the two Nautilus options.
# Should be placed in ~/.gnome2/nautilus-scripts/ with executable permission.
OLDSTATE=$(gconftool-2 -g "/desktop/gnome/file_views/show_hidden_files")
if [ "$OLDSTATE" == "false" ] ; then
gconftool-2 -s "/desktop/gnome/file_views/show_hidden_files" -t boolean true
mv ~/.gnome2/nautilus-scripts/Administrator/Show\ Hidden\ Files ~/.gnome2/nautilus-scripts/Administrator/Hide\ Hidden\ Files
else
gconftool-2 -s "/desktop/gnome/file_views/show_hidden_files" -t boolean false
mv ~/.gnome2/nautilus-scripts/Administrator/Hide\ Hidden\ Files ~/.gnome2/nautilus-scripts/Administrator/Show\ Hidden\ Files
fi



Heres my own collection of Extras that I use daily:
nautilus-scripts.7z
My personal Context Extras
(10.66 KiB) Downloaded 160 times


These addons are only small and can make the usability of Gnome much more GUI/mouse driven which is the main goal of Linux Mint (Command Line should only be used as the last choice for most home users). I hope to see more improvements added to make life easier for those of us who have moved from windows to linux and do NOT wish to open terminal windows at all. All the best with this project, I'll post more ideas in the future, PS I am a Debootstrap LiveCD creator, who does his own tools/scripts as required, lemme know if you have a development area that needs an extra brain to contribute.
LastOS
Level 1
Level 1
 
Posts: 3
Joined: Tue May 11, 2010 10:33 pm

Linux Mint is funded by ads and donations.
 

Return to Ideas & Thoughts

Who is online

Users browsing this forum: No registered users and 1 guest