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