Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Felix Eckhofer
tools
Commits
b2d3c4e8
Commit
b2d3c4e8
authored
Apr 25, 2014
by
Felix Eckhofer
🤹🏼
Browse files
Add paint-it-black.sh
parent
376caeac
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/paint-it-black.sh
0 → 100755
View file @
b2d3c4e8
#!/bin/sh
# set the background color in the default ubuntu bootsplash and grub
# themes to black. i like a lot of things about the default ubuntu look
# and feel but that weird purple certainly is not among those.
# -- felix@tribut.de
sedfilter
()
{
SOURCE
=
"
$1
"
FILTER
=
"
$2
"
[
-w
"
$SOURCE
"
]
||
{
echo
"
$SOURCE
not writeable"
>
&2
;
return
1
;
}
TEMPFILE
=
"
`
mktemp
`
"
cp
"
$SOURCE
"
"
$TEMPFILE
"
&&
sed
-r
"
$FILTER
"
<
"
$TEMPFILE
"
>
"
$SOURCE
"
RETCODE
=
"
$?
"
if
[
0
-eq
"
$RETCODE
"
]
;
then
echo
"## Filter successfully applied to
$SOURCE
, the changes are as follows:"
>
&2
diff
-u
"
$TEMPFILE
"
"
$SOURCE
"
>
&2
echo
fi
rm
-f
"
$TEMPFILE
"
return
"
$RETCODE
"
}
sedfilter
\
/lib/plymouth/themes/ubuntu-logo/ubuntu-logo.grub
\
's/background_color [0-9]+,[0-9]+,[0-9]+/background_color 0,0,0/'
sedfilter
\
/lib/plymouth/themes/ubuntu-logo/ubuntu-logo.script
\
's/^(Window.SetBackground(Top|Bottom)Color ?)\(0\.[0-9]{1,2}, 0\.[0-9]{1,2}, 0\.[0-9]{1,2}\)/\1(0.00, 0.00, 0.00)/'
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment