Fixed debian fonts issue where terminal would initially display black on black text
Added some default themes Added default rendering options
This commit is contained in:
parent
4686898519
commit
8588625650
22
functions.sh
22
functions.sh
@ -272,25 +272,26 @@ buildStepExec() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
copyTreeExec() {
|
copyTreeExec() {
|
||||||
local calling_script="$1"
|
local source_dir="$1"
|
||||||
local dir="$2"
|
local dir="$2"
|
||||||
local template_flavor="$3"
|
local template_flavor="$3"
|
||||||
|
local target_dir="$4"
|
||||||
|
|
||||||
local template_dir="$(templateDir ${template_flavor})"
|
local template_dir="$(templateDir ${template_flavor})"
|
||||||
local source_dir="$(readlink -m ${template_dir}/${dir})"
|
local source_dir="$(readlink -m ${source_dir:-${template_dir}}/${dir})"
|
||||||
local install_dir="$(readlink -m ${INSTALLDIR})"
|
local target_dir="$(readlink -m ${target_dir:-${INSTALLDIR}})"
|
||||||
|
|
||||||
if ! [ -d "${source_dir}" ]; then
|
if ! [ -d "${source_dir}" ]; then
|
||||||
debug "No extra files to copy for ${dir}"
|
debug "No extra files to copy for ${dir}"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
debug "Copying ${source_dir}/* ${install_dir}"
|
debug "Copying ${source_dir}/* ${target_dir}"
|
||||||
cp -rp "${source_dir}/"* "${install_dir}"
|
cp -rp "${source_dir}/"* "${target_dir}"
|
||||||
|
|
||||||
if [ -f "${source_dir}/.facl" ]; then
|
if [ -f "${source_dir}/.facl" ]; then
|
||||||
debug "Restoring file permissions..."
|
debug "Restoring file permissions..."
|
||||||
pushd "$install_dir"
|
pushd "${target_dir}"
|
||||||
{
|
{
|
||||||
setfacl --restore="${source_dir}/.facl" 2>/dev/null ||:
|
setfacl --restore="${source_dir}/.facl" 2>/dev/null ||:
|
||||||
}
|
}
|
||||||
@ -368,11 +369,16 @@ buildStep() {
|
|||||||
# NOTE: Don't forget to redo this process if you add -OR- remove files
|
# NOTE: Don't forget to redo this process if you add -OR- remove files
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
copyTree() {
|
copyTree() {
|
||||||
local not_used=""
|
|
||||||
local dir="$1"
|
local dir="$1"
|
||||||
|
local source_dir="$2"
|
||||||
|
local target_dir="$3"
|
||||||
local function="copyTreeExec"
|
local function="copyTreeExec"
|
||||||
|
|
||||||
callTemplateFunction "${not_used}" "${dir}" "${function}"
|
if [ "x${source_dir}" == "x" ]; then
|
||||||
|
callTemplateFunction "" "${dir}" "${function}"
|
||||||
|
else
|
||||||
|
copyTreeExec "${source_dir}" "${dir}" "" "${target_dir}"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# $0 is module that sourced vars.sh
|
# $0 is module that sourced vars.sh
|
||||||
|
@ -182,6 +182,12 @@ EOF
|
|||||||
# Need a xen log directory or xen scripts will fail
|
# Need a xen log directory or xen scripts will fail
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
mkdir -p -m 0700 "$INSTALLDIR/var/log/xen"
|
mkdir -p -m 0700 "$INSTALLDIR/var/log/xen"
|
||||||
|
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Copy extra files to installation directory. Contains:
|
||||||
|
# - font fixes for display issues
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
copyTree "qubes-files" "${SCRIPTSDIR}" "${INSTALLDIR}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
@ -1,2 +1,5 @@
|
|||||||
qubes-core-agent
|
qubes-core-agent
|
||||||
qubes-gui-agent
|
qubes-gui-agent
|
||||||
|
xdg-user-dirs
|
||||||
|
gnome-themes-standard
|
||||||
|
xsettingsd
|
||||||
|
70
scripts_debian/qubes-files/.facl
Normal file
70
scripts_debian/qubes-files/.facl
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
# file: .
|
||||||
|
# owner: user
|
||||||
|
# group: user
|
||||||
|
user::rwx
|
||||||
|
group::r-x
|
||||||
|
other::r-x
|
||||||
|
|
||||||
|
# file: etc
|
||||||
|
# owner: root
|
||||||
|
# group: root
|
||||||
|
user::rwx
|
||||||
|
group::r-x
|
||||||
|
other::r-x
|
||||||
|
|
||||||
|
# file: etc/xdg
|
||||||
|
# owner: root
|
||||||
|
# group: root
|
||||||
|
user::rwx
|
||||||
|
group::r-x
|
||||||
|
other::r-x
|
||||||
|
|
||||||
|
# file: etc/xdg/Xresources
|
||||||
|
# owner: root
|
||||||
|
# group: root
|
||||||
|
user::rw-
|
||||||
|
group::r--
|
||||||
|
other::r--
|
||||||
|
|
||||||
|
# file: etc/xdg/fonts.conf
|
||||||
|
# owner: root
|
||||||
|
# group: root
|
||||||
|
user::rw-
|
||||||
|
group::r--
|
||||||
|
other::r--
|
||||||
|
|
||||||
|
# file: etc/xdg/xsettingsd
|
||||||
|
# owner: root
|
||||||
|
# group: root
|
||||||
|
user::rw-
|
||||||
|
group::r--
|
||||||
|
other::r--
|
||||||
|
|
||||||
|
# file: etc/X11
|
||||||
|
# owner: root
|
||||||
|
# group: root
|
||||||
|
user::rwx
|
||||||
|
group::r-x
|
||||||
|
other::r-x
|
||||||
|
|
||||||
|
# file: etc/X11/Xsession.d
|
||||||
|
# owner: root
|
||||||
|
# group: root
|
||||||
|
user::rwx
|
||||||
|
group::r-x
|
||||||
|
other::r-x
|
||||||
|
|
||||||
|
# file: etc/X11/Xsession.d/25xdg-qubes-settings
|
||||||
|
# owner: root
|
||||||
|
# group: root
|
||||||
|
user::rwx
|
||||||
|
group::r-x
|
||||||
|
other::r-x
|
||||||
|
|
||||||
|
# file: .facl
|
||||||
|
# owner: root
|
||||||
|
# group: root
|
||||||
|
user::rw-
|
||||||
|
group::r--
|
||||||
|
other::r--
|
||||||
|
|
18
scripts_debian/qubes-files/etc/X11/Xsession.d/25xdg-qubes-settings
Executable file
18
scripts_debian/qubes-files/etc/X11/Xsession.d/25xdg-qubes-settings
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
installConfigurationFile() {
|
||||||
|
file="${1}"
|
||||||
|
|
||||||
|
if ! [ -f "${HOME}/.${file}" ]; then
|
||||||
|
if [ -f "/etc/xdg/${file}" ]; then
|
||||||
|
cp "/etc/xdg/${file}" "${HOME}/.${file}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ -x /usr/bin/xsettingsd ]; then
|
||||||
|
installConfigurationFile "xsettingsd"
|
||||||
|
installConfigurationFile "fonts.conf"
|
||||||
|
installConfigurationFile "Xresources"
|
||||||
|
/usr/bin/xsettingsd &
|
||||||
|
fi
|
5
scripts_debian/qubes-files/etc/xdg/Xresources
Normal file
5
scripts_debian/qubes-files/etc/xdg/Xresources
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
Xft.antialias: 1
|
||||||
|
Xft.hinting: 1
|
||||||
|
Xft.rgba: rgb
|
||||||
|
Xft.hintstyle: hintslight
|
||||||
|
Xft.lcdfilter: lcddefault
|
29
scripts_debian/qubes-files/etc/xdg/fonts.conf
Normal file
29
scripts_debian/qubes-files/etc/xdg/fonts.conf
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||||||
|
<fontconfig>
|
||||||
|
<match target="font" >
|
||||||
|
<edit mode="assign" name="rgba">
|
||||||
|
<const>rgb</const>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
<match target="font" >
|
||||||
|
<edit mode="assign" name="hinting">
|
||||||
|
<bool>true</bool>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
<match target="font" >
|
||||||
|
<edit mode="assign" name="hintstyle">
|
||||||
|
<const>hintslight</const>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
<match target="font" >
|
||||||
|
<edit mode="assign" name="antialias">
|
||||||
|
<bool>true</bool>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
<match target="font" >
|
||||||
|
<edit mode="assign" name="lcdfilter">
|
||||||
|
<const>lcddefault</const>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
</fontconfig>
|
19
scripts_debian/qubes-files/etc/xdg/xsettingsd
Normal file
19
scripts_debian/qubes-files/etc/xdg/xsettingsd
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
Gtk/ButtonImages 1
|
||||||
|
Gtk/CursorThemeName "Vanilla-DMZ"
|
||||||
|
Gtk/FontName "sans 10"
|
||||||
|
Gtk/KeyThemeName "Adwaita"
|
||||||
|
Gtk/MenuImages 1
|
||||||
|
Gtk/ToolbarIconSize 2
|
||||||
|
Gtk/ToolbarStyle "Icons"
|
||||||
|
|
||||||
|
Net/EnableEventSounds 0
|
||||||
|
Net/EnableInputFeedbackSounds 0
|
||||||
|
Net/FallbackIconTheme "gnome"
|
||||||
|
Net/IconThemeName "gnome"
|
||||||
|
Net/ThemeName "Adwaita"
|
||||||
|
|
||||||
|
Xft/Antialias 1
|
||||||
|
Xft/Hinting 1
|
||||||
|
Xft/HintStyle "hintslight"
|
||||||
|
Xft/RGBA "rgb"
|
||||||
|
Xft/lcdfilter "lcddefault"
|
@ -12,8 +12,8 @@ DEBIANVERSION=$DIST
|
|||||||
|
|
||||||
# Location to grab debian packages
|
# Location to grab debian packages
|
||||||
#DEBIAN_MIRROR=http://http.debian.net/debian
|
#DEBIAN_MIRROR=http://http.debian.net/debian
|
||||||
#DEBIAN_MIRROR=http://mirror.csclub.uwaterloo.ca/debian/
|
|
||||||
DEBIAN_MIRROR=http://ftp.ca.debian.org/debian/
|
DEBIAN_MIRROR=http://ftp.ca.debian.org/debian/
|
||||||
|
#DEBIAN_MIRROR=http://ftp.us.debian.org/debian/
|
||||||
|
|
||||||
# XXX: Is this even used?
|
# XXX: Is this even used?
|
||||||
EXTRAPKGS="openssh-clients,screen,vim-nox,less"
|
EXTRAPKGS="openssh-clients,screen,vim-nox,less"
|
||||||
|
Loading…
Reference in New Issue
Block a user