source: trunk/packs/dotfiles/revert-to-sawfish.sh @ 21187

Revision 21187, 1.1 KB checked in by ghudson, 20 years ago (diff)
Change the default window manager from Sawfish to Metacity, and provide a script (to be called by a menu item under Settings) to let users revert to Sawfish if they want.
Line 
1#!/bin/sh
2
3if [ "${ATHENA_ENVIRONMENT_WINDOW_MANAGER+set}" = set ]; then
4  zenity --error --text="This tool cannot be used if you set the WINDOW_MANAGER environment variable in your ~/.environment file.  Change your window manager by editing your ~/.environment file."
5  exit
6fi
7
8if [ -r ~/.athena-sawfish ]; then
9
10  # User already has Sawfish preference; ask about reverting it.
11  if zenity --question --text="Your account is currently configured to use the Sawfish window manager.  Do you wish to revert this preference and use the default window manager (Metacity) for future logins?"; then
12    rm ~/.athena-sawfish
13    zenity --info --text="Your account is now configured to use the default windowmanager (Metacity).  This change will take effect at your next login session."
14  fi
15
16else
17
18  # Ask about installing Sawfish preference.
19  if zenity --question --text="Would you like to configure your account to use the Sawfish window manager for future logins?"; then
20    touch ~/.athena-sawfish
21    zenity --info --text="Your account is now configured to use the Sawfish windowmanager.  This change will take effect at your next login session."
22  fi
23
24fi
Note: See TracBrowser for help on using the repository browser.