ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] xserverrc и аргумент $DPI
@ 2008-12-01 19:53 Владимир Гусев
  2008-12-02 10:13 ` Sergey Vlasov
  0 siblings, 1 reply; 3+ messages in thread
From: Владимир Гусев @ 2008-12-01 19:53 UTC (permalink / raw)
  To: ALT Linux Community general discussions

как в /etc/X11/xinit/xserverrc нового образца жестко прописать dpi,
что-то я не разберусь сходу в синтаксисе, практики нет, а домысливать
что-то эмпирически не получается...

Вот начало:

#!/bin/sh

config='/etc/sysconfig/xserver'
[ ! -s "$config" ] || . "$config"

is_yes() {
	case "$1" in
		yes|Yes|YES|true|True|TRUE|on|On|ON|Y|y|1) return 0 ;;
	esac
	return 1
}

OPTIONS=
check_arg() {
	OPTIONS="$OPTIONS${1:+ $2 $1}"
}

check_yes() {
	if [ -n "$1" ]; then
		is_yes "$1" &&
			OPTIONS="$OPTIONS $2" ||
			OPTIONS="$OPTIONS${3:+ $3}"
	fi
}

check_arg "$AUDIT" -audit
check_arg "$DPI" -dpi
check_arg "$DEPTH" -depth

и т.д.

Что тут? Дописать таким образом:

check_arg "$DPI" -dpi 96

и все? Или нет?

-- 
С уважением,
Владимир Гусев


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-12-02 10:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-01 19:53 [Comm] xserverrc и аргумент $DPI Владимир Гусев
2008-12-02 10:13 ` Sergey Vlasov
2008-12-02 10:51   ` Владимир Гусев

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git