Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- background: #2e3436 url(noise-texture.png);
- #!/bin/sh
- workdir=${HOME}/shell-theme
- if [ ! -d ${workdir}/theme ]; then
- mkdir -p ${workdir}/theme
- fi
- gst=/usr/share/gnome-shell/gnome-shell-theme.gresource
- for r in `gresource list $gst`; do
- gresource extract $gst $r >$workdir/${r#/org/gnome/shell/}
- done
- glib-compile-resources gnome-shell-theme.gresource.xml
- /usr/share/gnome-shell
- WORKDIR=~/tmp/gdm-login-background
- GST=/usr/share/gnome-shell/gnome-shell-theme.gresource
- GSTRES=$(basename $GST)
- mkdir -p $WORKDIR
- cd $WORKDIR
- mkdir theme
- for r in `gresource list $GST`; do
- gresource extract $GST $r >$WORKDIR$(echo $r | sed -e 's/^/org/gnome/shell////g')
- done
- cd theme
- cp "$IMAGE" ./
- echo "
- #lockDialogGroup {
- background: #2e3436 url(resource:///org/gnome/shell/theme/$(basename $IMAGE));
- background-size: cover;
- background-repeat: no-repeat;
- }" >>gnome-shell.css
- echo '<?xml version="1.0" encoding="UTF-8"?>
- <gresources>
- <gresource prefix="/org/gnome/shell/theme">' >"${GSTRES}.xml"
- for r in `ls *.*`; do
- echo " <file>$r</file>" >>"${GSTRES}.xml"
- done
- echo ' </gresource>
- </gresources>' >>"${GSTRES}.xml"
- glib-compile-resources "${GSTRES}.xml"
- sudo mv "/usr/share/gnome-shell/$GSTRES" "/usr/share/gnome-shell/${GSTRES}.backup"
- sudo mv "$GSTRES" /usr/share/gnome-shell/
- rm -r $WORKDIR
- if [ "$CREATED_TMP" = "1" ]; then
- rm -r ~/tmp
- fi
- IMAGE=~/Bat.jpg sh login-background.sh
Add Comment
Please, Sign In to add comment