Guest User

Untitled

a guest
Feb 24th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. background: #2e3436 url(noise-texture.png);
  2.  
  3. #!/bin/sh
  4.  
  5. workdir=${HOME}/shell-theme
  6. if [ ! -d ${workdir}/theme ]; then
  7. mkdir -p ${workdir}/theme
  8. fi
  9. gst=/usr/share/gnome-shell/gnome-shell-theme.gresource
  10.  
  11. for r in `gresource list $gst`; do
  12. gresource extract $gst $r >$workdir/${r#/org/gnome/shell/}
  13. done
  14.  
  15. glib-compile-resources gnome-shell-theme.gresource.xml
  16.  
  17. /usr/share/gnome-shell
  18.  
  19. WORKDIR=~/tmp/gdm-login-background
  20. GST=/usr/share/gnome-shell/gnome-shell-theme.gresource
  21. GSTRES=$(basename $GST)
  22.  
  23. mkdir -p $WORKDIR
  24. cd $WORKDIR
  25. mkdir theme
  26.  
  27. for r in `gresource list $GST`; do
  28. gresource extract $GST $r >$WORKDIR$(echo $r | sed -e 's/^/org/gnome/shell////g')
  29. done
  30.  
  31. cd theme
  32. cp "$IMAGE" ./
  33.  
  34. echo "
  35. #lockDialogGroup {
  36. background: #2e3436 url(resource:///org/gnome/shell/theme/$(basename $IMAGE));
  37. background-size: cover;
  38. background-repeat: no-repeat;
  39. }" >>gnome-shell.css
  40.  
  41. echo '<?xml version="1.0" encoding="UTF-8"?>
  42. <gresources>
  43. <gresource prefix="/org/gnome/shell/theme">' >"${GSTRES}.xml"
  44. for r in `ls *.*`; do
  45. echo " <file>$r</file>" >>"${GSTRES}.xml"
  46. done
  47. echo ' </gresource>
  48. </gresources>' >>"${GSTRES}.xml"
  49.  
  50. glib-compile-resources "${GSTRES}.xml"
  51.  
  52. sudo mv "/usr/share/gnome-shell/$GSTRES" "/usr/share/gnome-shell/${GSTRES}.backup"
  53. sudo mv "$GSTRES" /usr/share/gnome-shell/
  54.  
  55. rm -r $WORKDIR
  56.  
  57. if [ "$CREATED_TMP" = "1" ]; then
  58. rm -r ~/tmp
  59. fi
  60.  
  61. IMAGE=~/Bat.jpg sh login-background.sh
Add Comment
Please, Sign In to add comment