Date: Tue, 15 Mar 2022 11:24:51 +0100 From: Mateusz Piotrowski <0mp@FreeBSD.org> To: Alexey Dokuchaev <danfe@freebsd.org>, Milan Obuch <freebsd-x11@dino.sk> Cc: freebsd-x11@freebsd.org Subject: Re: Dynamic multimonitor setup question Message-ID: <665f28bc-42b5-f862-3211-01b90b070fd4@FreeBSD.org> In-Reply-To: <Yi/z93X7dZUU7Bay@FreeBSD.org> References: <20220228093951.30914524@zeta.dino.sk> <20220314101646.0042335c@zeta.dino.sk> <Yi/z93X7dZUU7Bay@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------y8s6BRI0iQUsEX0Imt07YxZv Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 15/03/2022 03:03, Alexey Dokuchaev wrote: > On Mon, Mar 14, 2022 at 10:16:46AM +0100, Milan Obuch wrote: >> I did some searching, googling and similar... a found two ports already >> in FreeBSD's port collection, x11/arandr and x11/srandrd. The former is >> just a graphical interface to xrandr, easy to understand and intuitive >> (similar to the way Windows and MacOS X does multimonitor setup). The >> latter should do what I am after, but it did not work for me :( >> >> Per 'man srandrd', if started with 'srandrd -v -n some_script', it >> should output some debug data (-v), stay in foreground (-n) and invoke >> some_script when monitor is being plugged or unplugged. It does not >> work for me. Something happens just when I invoke 'xrandr' in another >> terminal - I see some debug output, but the script is not invoked. >> >> Is anybody here using x11/srandrd? I can debug the script invocation, >> but if the event is not detected without external intervention, it is >> not really usable for me. And I have no experience with debugging the >> issue in graphics stack... I'm using srandrd to recenter my wallpapers when I configure an external monitor (I always do it manually with either arandr or xrandr). I just start srandrd like this: srandrd -e -n ~/bin/srandrd-handler ~/bin/srandrd-handler is a shell script with an executable bit set and it contains only the following: #! /bin/sh - feh --no-fehbg --bg-center --image-bg 'black' "${HOME}/wallpaper.png" Good luck! Mateusz --------------y8s6BRI0iQUsEX0Imt07YxZv Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <div class="moz-cite-prefix">On 15/03/2022 03:03, Alexey Dokuchaev wrote:<br> </div> <blockquote type="cite" cite="mid:Yi%2Fz93X7dZUU7Bay@FreeBSD.org"> <pre class="moz-quote-pre" wrap="">On Mon, Mar 14, 2022 at 10:16:46AM +0100, Milan Obuch wrote: </pre> <blockquote type="cite"> <pre class="moz-quote-pre" wrap="">I did some searching, googling and similar... a found two ports already in FreeBSD's port collection, x11/arandr and x11/srandrd. The former is just a graphical interface to xrandr, easy to understand and intuitive (similar to the way Windows and MacOS X does multimonitor setup). The latter should do what I am after, but it did not work for me :( Per 'man srandrd', if started with 'srandrd -v -n some_script', it should output some debug data (-v), stay in foreground (-n) and invoke some_script when monitor is being plugged or unplugged. It does not work for me. Something happens just when I invoke 'xrandr' in another terminal - I see some debug output, but the script is not invoked. Is anybody here using x11/srandrd? I can debug the script invocation, but if the event is not detected without external intervention, it is not really usable for me. And I have no experience with debugging the issue in graphics stack... </pre> </blockquote> </blockquote> <p>I'm using srandrd to recenter my wallpapers when I configure an external monitor (I always do it manually with either arandr or xrandr).</p> <p>I just start srandrd like this:</p> <p>srandrd -e -n <span class="pl-k">~</span>/bin/srandrd-handler</p> <p><span class="pl-k">~</span>/bin/srandrd-handler is a shell script with an executable bit set and it contains only the following:</p> <p>#! /bin/sh -<br> feh --no-fehbg --bg-center --image-bg 'black' "${HOME}/wallpaper.png"</p> <p>Good luck!</p> <p>Mateusz<br> </p> </body> </html> --------------y8s6BRI0iQUsEX0Imt07YxZv--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?665f28bc-42b5-f862-3211-01b90b070fd4>