From owner-freebsd-questions@freebsd.org Sun Jun 21 16:35:31 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B3CFF3547B4 for ; Sun, 21 Jun 2020 16:35:31 +0000 (UTC) (envelope-from jacques+freebsd@foucry.net) Received: from mail.foucry.net (fournil.foucry.net [95.217.83.231]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49qdSf6H5fz4DSJ for ; Sun, 21 Jun 2020 16:35:30 +0000 (UTC) (envelope-from jacques+freebsd@foucry.net) Received: from mithril.localdomain (2a01cb0400bb0900ea6a64fffe0795a1.ipv6.abo.wanadoo.fr [IPv6:2a01:cb04:bb:900:ea6a:64ff:fe07:95a1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.foucry.net (Postfix) with ESMTPSA id C742F3F7EB for ; Sun, 21 Jun 2020 16:35:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foucry.net; s=dkim; t=1592757320; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=W1wmbCkbNgdsJiyBKLFwI+6Nz23kDaM8yC7pIxudN2E=; b=paFNaAFbj51rBcpsWrhEturHiGy8rhSvYeg37AqfDRX64UL7jvhy8j8g8rqpv7p7vtvC+Q /ECz6/QY3MBSRO+QnGLSTSqbw+JFcn5oxzlk49Sy7oGTpULB8tAXLo5gLjzV+pj8hkqpgb sWu9lYLBfRKMpDmy1zOV/EUU2V92InE= Received: from mithril (localhost [IPv6:::1]) by mithril.localdomain (Postfix) with ESMTP id 99B3F131B1 for ; Sun, 21 Jun 2020 18:35:19 +0200 (CEST) Date: Sun, 21 Jun 2020 18:35:19 +0200 From: Jacques Foucry To: freebsd-questions@freebsd.org Subject: Re: Xorg, lightdm, xfce & German Keyboard Message-ID: <20200621163519.GV16409@mithril> Mail-Followup-To: freebsd-questions@freebsd.org References: <636e8210-85df-6142-22c8-5393333494d3@chemie.uni-hamburg.de> <20200621101222.576d5977@archlinux> <92c75d0893dcbb9ba395b1e8352f02be25d45d7e.camel@riseup.net> <3e3de7a2-fe5a-ec9a-1755-dd1b3f383408@chemie.uni-hamburg.de> <20200621143043.d1fa826f.freebsd@edvax.de> <20200621125625.GU16409@mithril> <20200621152318.9c5d95a5.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200621152318.9c5d95a5.freebsd@edvax.de> X-Spam-Status: No, score=-2.60 X-Rspamd-Server: mail.foucry.net X-Spam-Score: -2.60 X-Rspamd-Queue-Id: 49qdSf6H5fz4DSJ X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=foucry.net header.s=dkim header.b=paFNaAFb; dmarc=pass (policy=none) header.from=foucry.net; spf=pass (mx1.freebsd.org: domain of jacques@foucry.net designates 95.217.83.231 as permitted sender) smtp.mailfrom=jacques@foucry.net X-Spamd-Result: default: False [-2.74 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[foucry.net:s=dkim]; NEURAL_HAM_MEDIUM(-1.03)[-1.030]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.06)[-1.057]; RCVD_COUNT_THREE(0.00)[3]; MID_RHS_NOT_FQDN(0.50)[]; DKIM_TRACE(0.00)[foucry.net:+]; DMARC_POLICY_ALLOW(-0.50)[foucry.net,none]; NEURAL_HAM_SHORT(-0.15)[-0.151]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:24940, ipnet:95.217.0.0/16, country:DE]; TAGGED_FROM(0.00)[freebsd] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jun 2020 16:35:31 -0000 Le dimanche 21 juin 2020 à 15:23:18 (+0200), Polytropon à écrit: > > Hum… that strange for me to. [snip] > > > > I made a symlink lsn -s .xinitrc .xsession but many commands are not executed: > > > > xrandr --output DP2-1 --mode 2560x1440 > > xrandr --output DP2-1 --primary > > xrandr --output eDP1 --off > > setxkbmap -model logitech_base -layout us -variant altgr-intl -option terminate:ctrl_alt_bksp,misc:typo,compose:lwin > > if [ -f ~/.Xmodmap ]; then > > xmodmap ~/.Xmodmap > > fi > > > > exec i3 > > > > > > The keybaord iѕ ok but the xrandr commandせ are not executed. > > > > If I launch `sh .xinitrc` after login it works. > > > > I suppose they are not in the right file, but which is the good one? > > "Selective execution" is not a feature of X initialization > procedures. ;-) > > Could it be that there's a $PATH issue? Or permisison issue? > > I'm using the "cargo cult" method of the "cascaded approach" > which has been working so far. All commands are in ~/.xinitrc, > and my ~/.xsession looks like this: > > In ~/.xsession: > > #!/bin/csh > source ~/.cshrc > exec ~/.xinitrc > > In ~/.xinitrc: > > #!/bin/sh > [ -f ~/.xmodmaprc ] && xmodmap ~/.xmodmaprc > numlockx > xsetroot -solid rgb:3b/4c/7a > xset b 100 1000 15 & > xset r rate 250 30 & > xset s off & > xset -dpms & > exec wmaker Oh ! Thnaks for sharing, It will inspiring me. > > Note that I'm using the C shell as my default dialog shell > (and login shell). Oldies… I use zsh now. > All commands in .xinitrc will be executed after xdm login. > In the past, there were calls do xrandr, which I removed > because it works now by settings in a partial xorg.conf > file. :-) > > By the way, the "cargo cult" also includes that both files > ~/.xinitrc and ~/.xsession are +x attributes (executable). notice. Thanks again. -- Jacques Foucry