All pastes #1911828 Raw Edit

Untitled

public shellscript v1 · immutable
#1911828 ·published 2010-08-06 08:59 UTC
rendered paste body
#!/bin/shDesktopIndex=`xprop -root _NET_CURRENT_DESKTOP | awk '{print $3}'`DesktopName=`xprop -root 8s _NET_DESKTOP_NAMES |awk '{print $(3+'$DesktopIndex')}'|tr -d '",'`echo Desktop is now $DesktopNameCurrentDesktopDirectory=`find ~/.config/Desktops -type l`DesiredDesktopDirectory=$HOME/.config/Desktops/$DesktopNameecho The Current Desktop Directory is $CurrentDesktopDirectoryecho The Desired Desktop Directory is $DesiredDesktopDirectoryif [ $CurrentDesktopDirectory != $DesiredDesktopDirectory ]then    rm $CurrentDesktopDirectory    mkdir $CurrentDesktopDirectory    mv ~/Desktop/* $CurrentDesktopDirectory    mv $DesiredDesktopDirectory/* ~/Desktop    rmdir $DesiredDesktopDirectory    ln -s ~/Desktop $DesiredDesktopDirectoryfi