From 5e8ead28aecb1e0e940c3d484dfd1271ab790324 Mon Sep 17 00:00:00 2001 From: Josh Sherman Date: Mon, 9 Jan 2012 10:56:51 -0500 Subject: [PATCH] Script updates Added a couple of new restart scripts, moved them all to the System directory. Updated the install script to symlink to the Nautilus scripts. Removed the Move Unity script as the issue I was having no longer exists in 11.10, but more importantly, I moved off Unity to GnomeShell so even if it still existed... yeah. --- install.sh | 9 +++++++++ nautilus-scripts/Move Unity Dash | 2 -- nautilus-scripts/{Start Compiz => System/Restart Compiz} | 0 nautilus-scripts/System/Restart GnomeShell | 2 ++ nautilus-scripts/System/Restart Nautilus | 3 +++ nautilus-scripts/{ => System}/Restart Unity | 0 nautilus-scripts/{ => System}/Sync Fonts | 0 7 files changed, 14 insertions(+), 2 deletions(-) delete mode 100755 nautilus-scripts/Move Unity Dash rename nautilus-scripts/{Start Compiz => System/Restart Compiz} (100%) create mode 100755 nautilus-scripts/System/Restart GnomeShell create mode 100755 nautilus-scripts/System/Restart Nautilus rename nautilus-scripts/{ => System}/Restart Unity (100%) rename nautilus-scripts/{ => System}/Sync Fonts (100%) diff --git a/install.sh b/install.sh index d1feac5..2755b4a 100755 --- a/install.sh +++ b/install.sh @@ -21,3 +21,12 @@ echo " if [ -f $PWD/bash.bashrc ] && ! shopt -oq posix; then . $PWD/bash.bashrc fi" >> ~/.bashrc + +# Removes the existing scripts +if [ -d ~/.gnome2/nautilus-scripts ]; +then + rm ~/.gnome2/nautilus-scripts -rf +fi + +# Symlinks back to our scripts +ln -s $PWD/nautilus-scripts ~/.gnome2/nautilus-scripts diff --git a/nautilus-scripts/Move Unity Dash b/nautilus-scripts/Move Unity Dash deleted file mode 100755 index 96f890d..0000000 --- a/nautilus-scripts/Move Unity Dash +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -xrandr --output DVI-0 --primary diff --git a/nautilus-scripts/Start Compiz b/nautilus-scripts/System/Restart Compiz similarity index 100% rename from nautilus-scripts/Start Compiz rename to nautilus-scripts/System/Restart Compiz diff --git a/nautilus-scripts/System/Restart GnomeShell b/nautilus-scripts/System/Restart GnomeShell new file mode 100755 index 0000000..fdc2e94 --- /dev/null +++ b/nautilus-scripts/System/Restart GnomeShell @@ -0,0 +1,2 @@ +#!/bin/bash +gnome-shell --replace & diff --git a/nautilus-scripts/System/Restart Nautilus b/nautilus-scripts/System/Restart Nautilus new file mode 100755 index 0000000..95355a9 --- /dev/null +++ b/nautilus-scripts/System/Restart Nautilus @@ -0,0 +1,3 @@ +#!/bin/bash +killall nautilus +nautilus & diff --git a/nautilus-scripts/Restart Unity b/nautilus-scripts/System/Restart Unity similarity index 100% rename from nautilus-scripts/Restart Unity rename to nautilus-scripts/System/Restart Unity diff --git a/nautilus-scripts/Sync Fonts b/nautilus-scripts/System/Sync Fonts similarity index 100% rename from nautilus-scripts/Sync Fonts rename to nautilus-scripts/System/Sync Fonts