summarylogtreecommitdiffstats
path: root/fc-presets
diff options
context:
space:
mode:
authorPhilip Deljanov2019-11-01 15:27:48 -0400
committerPhilip Deljanov2019-11-01 15:27:48 -0400
commite5d6dfcb508a78120f0444199d3db641d561a1d3 (patch)
tree5495f8f7c4876695ed069b0d2bc1015e4f57c111 /fc-presets
parent18671dd37516cb75a75cf8c6cc30fd8f4bf537b2 (diff)
downloadaur-e5d6dfcb508a78120f0444199d3db641d561a1d3.tar.gz
Add missing dependencies for fontconfig-infinality-remix docs build.
- Add remix preset to fc-presets script.
Diffstat (limited to 'fc-presets')
-rwxr-xr-xfc-presets18
1 files changed, 15 insertions, 3 deletions
diff --git a/fc-presets b/fc-presets
index eac87d15c711..bd7833b9e0ca 100755
--- a/fc-presets
+++ b/fc-presets
@@ -16,8 +16,8 @@ RES='\E[0m'
presets_dir="/etc/fonts/conf.avail.infinality"
config_dir="/etc/fonts/conf.d"
-presets_list=(combi free ms)
-options=(combi free ms reset quit)
+presets_list=(combi free ms remix)
+options=(combi free ms remix reset quit)
option=$1
@@ -35,6 +35,7 @@ usage(){
echo ' combi -- custom font collection'
echo ' free -- free font collection'
echo ' ms -- Microsoft font collection'
+ echo ' remix -- remix collection'
echo ' help Print this help and exit'
echo ''
echo 'Troubleshooting:'
@@ -69,6 +70,7 @@ usage(){
echo ' [ combi ] not set'
echo ' [ ms ] not set'
echo ' [ free ] not set'
+ echo ' [ remix ] not set'
echo ' How to fix:'
echo ' -----------'
echo ' 1. Run <fc-presets set> as root and choose a preset 1) - 3).'
@@ -191,7 +193,7 @@ custom_postjob(){
check_current=$(ls *.conf | grep "\-$option.conf")
if [[ $check_current == *combi* ]] && [[ -f $config_dir/35-repl-custom.conf ]]; then
rm -f 35-repl-custom.conf 2>/dev/null
- elif [[ $check_current == *free* ]] || [[ $check_current == *ms* ]]; then
+ elif [[ $check_current == *free* ]] || [[ $check_current == *ms* ]] || [[ $check_current == *remix* ]]; then
if [ ! -f 35-repl-custom ]; then
ln -s $presets_dir/35-repl-custom.conf $config_dir/35-repl-custom.conf 2>/dev/null
fi
@@ -234,6 +236,16 @@ set_preset(){
custom_postjob
[ $? -eq 0 ] && OK || NOTOK
;;
+ remix)
+ echo ' [ remix ] preset chosen...'
+ option='remix'
+ check_current_prejob
+ targets_check_prejob
+ fc_reset
+ fc_set
+ custom_postjob
+ [ $? -eq 0 ] && OK || NOTOK
+ ;;
reset)
echo ' Removing current preset...'
fc_reset