wok rev 18485

fontconfig-infinality: show current Infinality style (thanks Zann)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Oct 09 13:53:46 2015 +0300 (2015-10-09)
parents b4ced150aaf4
children 09f570929c2f
files fontconfig-infinality-yad/receipt fontconfig-infinality-yad/stuff/infctl-yad
line diff
     1.1 --- a/fontconfig-infinality-yad/receipt	Fri Oct 09 13:15:59 2015 +0300
     1.2 +++ b/fontconfig-infinality-yad/receipt	Fri Oct 09 13:53:46 2015 +0300
     1.3 @@ -1,9 +1,9 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="fontconfig-infinality-yad"
     1.7 -VERSION="20130321"
     1.8 +VERSION="20151009"
     1.9  CATEGORY="x-window"
    1.10 -SHORT_DESC="Frontend for fontconfig-infinality written in yad"
    1.11 +SHORT_DESC="Frontend for fontconfig-infinality written in Yad"
    1.12  MAINTAINER="al.bobylev@gmail.com"
    1.13  LICENSE="GPL3"
    1.14  WEB_SITE="http://www.slitaz.org/"
     2.1 --- a/fontconfig-infinality-yad/stuff/infctl-yad	Fri Oct 09 13:15:59 2015 +0300
     2.2 +++ b/fontconfig-infinality-yad/stuff/infctl-yad	Fri Oct 09 13:53:46 2015 +0300
     2.3 @@ -1,15 +1,29 @@
     2.4  #!/bin/sh
     2.5  # Simple style chooser for fontconfig-infinality
     2.6  #
     2.7 -# Copyright (C) 2013 SliTaz GNU/linux - GNU GPL v3
     2.8 +# Copyright (C) 2013-2015 SliTaz GNU/linux - GNU GPL v3
     2.9  #    - Aleksej Bobylev <al.bobylev@gmail.com>
    2.10 +#    - Zann <e-zann@gmx.net>
    2.11  #
    2.12  
    2.13 +# Determine current style
    2.14 +inf_path=$(realpath /etc/fonts/infinality/conf.d)
    2.15 +case $(basename $inf_path) in
    2.16 +	infinality) inf_style="Infinality";;
    2.17 +	linux)      inf_style="Linux";;
    2.18 +	osx)        inf_style="OSX";;
    2.19 +	osx2)       inf_style="OSX2";;
    2.20 +	win7)       inf_style="Windows 7";;
    2.21 +	win98)      inf_style="Windows 98" ;;
    2.22 +	winxp)      inf_style="Windows XP";;
    2.23 +esac
    2.24 +
    2.25 +
    2.26  inf_main() {
    2.27  	yad --entry \
    2.28  		--title="Fontconfig-infinality" \
    2.29  		--window-icon=/usr/share/pixmaps/infinality.png \
    2.30 -		--text="Choose the style:" \
    2.31 +		--text="Current style is <b>$inf_style</b>. Choose another:" \
    2.32  		--center --on-top --entry-text \
    2.33  			"Infinality         - subpixel AA, minimal replacements/tweaks, sans=Arial" \
    2.34  			"Windows 7    - subpixel AA, sans=Arial" \