Skip to content

Instantly share code, notes, and snippets.

@kparaju
Created May 18, 2012 01:22
Show Gist options
  • Save kparaju/2722571 to your computer and use it in GitHub Desktop.
Save kparaju/2722571 to your computer and use it in GitHub Desktop.
Desktop Environment Switcher
#!/bin/bash
# Gives the user the ability to switch desktop enviroments on the fly
# Copyright Kshitij Parajuli (kshitijparajuli@gmail.com).
# Licensed under a Creative Commons Attribution 3.0 Unported License.
if [ $1 = "gnome" ]
then
gnome-shell --replace &
disown
elif [ $1 = "unity" ]
then
unity &
disown
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment