3
0
Fork 0
forked from mirrors/nixpkgs

startkde: inherit NixOS system font settings

This commit is contained in:
Thomas Tuegel 2017-03-04 10:20:50 -06:00
parent 42cf524f2d
commit 164cdd38a6
No known key found for this signature in database
GPG key ID: 22CBF5249D4B4D59

View file

@ -14,6 +14,12 @@ if ! [ -e $HOME/.gtkrc-2.0 ] \
cat >$HOME/.gtkrc-2.0 <<EOF cat >$HOME/.gtkrc-2.0 <<EOF
# Default GTK+ 2 config for NixOS KDE 5 # Default GTK+ 2 config for NixOS KDE 5
include "/run/current-system/sw/share/themes/Breeze/gtk-2.0/gtkrc" include "/run/current-system/sw/share/themes/Breeze/gtk-2.0/gtkrc"
style "user-font"
{
font_name="Sans Serif Regular"
}
widget_class "*" style "user-font"
gtk-font-name="Sans Serif Regular 10"
gtk-theme-name="Breeze" gtk-theme-name="Breeze"
gtk-icon-theme-name="breeze" gtk-icon-theme-name="breeze"
gtk-fallback-icon-theme="hicolor" gtk-fallback-icon-theme="hicolor"
@ -28,6 +34,7 @@ if ! [ -e $HOME/.config/gtk-3.0/settings.ini ] \
&& [ -e /run/current-system/sw/share/themes/Breeze/gtk-3.0 ]; then && [ -e /run/current-system/sw/share/themes/Breeze/gtk-3.0 ]; then
cat >$HOME/.config/gtk-3.0/settings.ini <<EOF cat >$HOME/.config/gtk-3.0/settings.ini <<EOF
[Settings] [Settings]
gtk-font-name=Sans Serif Regular 10
gtk-theme-name=Breeze gtk-theme-name=Breeze
gtk-icon-theme-name=breeze gtk-icon-theme-name=breeze
gtk-fallback-icon-theme=hicolor gtk-fallback-icon-theme=hicolor
@ -122,6 +129,7 @@ ksplashrc KSplash Theme ${THEME}.desktop
ksplashrc KSplash Engine KSplashQML ksplashrc KSplash Engine KSplashQML
kdeglobals KScreen ScreenScaleFactors '' kdeglobals KScreen ScreenScaleFactors ''
kcmfonts General forceFontDPI 0 kcmfonts General forceFontDPI 0
kcmfonts General dontChangeAASettings true
EOF EOF
# preload the user's locale on first start # preload the user's locale on first start
@ -145,9 +153,14 @@ kdeglobalsfile=$configDir/kdeglobals
test -f $kdeglobalsfile || { test -f $kdeglobalsfile || {
cat >$kdeglobalsfile <<EOF cat >$kdeglobalsfile <<EOF
[General] [General]
XftAntialias=true fixed=Monospace,10,-1,5,50,0,0,0,0,0,Regular
XftHintStyle=hintmedium font=Sans Serif,10,-1,5,50,0,0,0,0,0,Regular
XftSubPixel=none menuFont=Sans Serif,10,-1,5,50,0,0,0,0,0,Regular
smallestReadableFont=Sans Serif,8,-1,5,50,0,0,0,0,0,Regular
toolBarFont=Sans Serif,8,-1,5,50,0,0,0,0,0,Regular
[WM]
activeFont=Noto Sans,12,-1,5,50,0,0,0,0,0,Bold
EOF EOF
} }