Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 86ccef1288
Fetching contributors…

Cannot retrieve contributors at this time

executable file 91 lines (79 sloc) 2.204 kB
#! /bin/bash
#
#
`dbus-launch | sed "s/^/export /"`
echo "|$LANG|"
parameter_name=""
parameter_value=""
function print_help {
echo " using :"
echo " set_gdm.sh -n {name} -v {value}, to set a gdm3 parameter "
echo " or set_gdm.sh -h, to print this the help"
}
echo ""
while getopts "v:n:h" opt; do
case $opt in
n)
parameter_name=$OPTARG
;;
v)
parameter_value=$OPTARG
;;
h)
print_help
exit
;;
\?)
print_help
exit
;;
esac
done
if [ "$parameter_name" = "" ] || [ "$parameter_value" = "" ]
then
echo Syntax Error
else
case $parameter_name in
GTK_THEME)
echo "$parameter_name = $parameter_value"
gsettings set org.gnome.desktop.interface gtk-theme "$parameter_value"
;;
ICON_THEME)
echo "$parameter_name = $parameter_value"
gsettings set org.gnome.desktop.interface icon-theme "$parameter_value"
;;
CURSOR_THEME)
echo "$parameter_name = $parameter_value"
gsettings set org.gnome.desktop.interface cursor-theme
gconftool-2 --type string --set /desktop/gnome/peripherals/mouse/cursor_theme "$parameter_value"
;;
WALLPAPER)
echo "$parameter_name = $parameter_value"
gsettings set org.gnome.desktop.background picture-uri "'file://"$parameter_value"'"
;;
LOGO_ICON)
echo "$parameter_name = $parameter_value"
gconftool-2 --type string --set /apps/gdm/simple-greeter/logo_icon_name "$parameter_value"
;;
USER_LIST)
gconftool-2 --type bool --set /apps/gdm/simple-greeter/disable_user_list $parameter_value
;;
MENU_BTN)
echo "$parameter_name = $parameter_value"
gconftool-2 --type bool --set /apps/gdm/simple-greeter/disable_restart_buttons $parameter_value
;;
BANNER)
echo "$parameter_name = $parameter_value"
gconftool-2 --type bool --set /apps/gdm/simple-greeter/banner_message_enable $parameter_value
;;
BANNER_TEXT)
echo "$parameter_name = $parameter_value"
gconftool-2 --type string --set /apps/gdm/simple-greeter/banner_message_text "$parameter_value"
gconftool-2 --type string --set /apps/gdm/simple-greeter/banner_message_text_nochooser "$parameter_value"
;;
*)
echo "Uknown GDM3 Parameter !"
;;
esac
fi
kill -SIGTERM $DBUS_SESSION_BUS_PID
Jump to Line
Something went wrong with that request. Please try again.