From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: master fe7c015b20: Support XFCE in wallpaper.el Date: Sun, 18 Sep 2022 09:18:40 +0800 Message-ID: <87wna1tr7z.fsf@yahoo.com> References: <166336105908.23797.12319380359602540227@vcs2.savannah.gnu.org> <20220916204419.B124FC00872@vcs2.savannah.gnu.org> <87edwavjyc.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36721"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: emacs-devel@gnu.org, Thierry Volpiatto To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Sep 18 03:19:52 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oZiyN-0009Q3-QB for ged-emacs-devel@m.gmane-mx.org; Sun, 18 Sep 2022 03:19:51 +0200 Original-Received: from localhost ([::1]:49234 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZiyM-0001is-BO for ged-emacs-devel@m.gmane-mx.org; Sat, 17 Sep 2022 21:19:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57354) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZixT-00011s-DA for emacs-devel@gnu.org; Sat, 17 Sep 2022 21:18:55 -0400 Original-Received: from sonic312-25.consmr.mail.ne1.yahoo.com ([66.163.191.206]:44535) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oZixR-0003rT-8F for emacs-devel@gnu.org; Sat, 17 Sep 2022 21:18:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1663463928; bh=IoJ2llCTjMwYBCQU5RrJDSj263jpkDpy7vTqZAp8cPQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=FIYOWKZO58TrZU02rOkVfBSyrpfxhXOM8nmoYejGQT2A2p4gruRV6EEmOwtV4sLardQMEU6pgCUMj++Mo570nTEUd4SfyJoqgH5z9ctB4Dy5z9T8RI23GDWLBWCWJr7yUR9TQq1k+8cwu/M4d3eO/meGJa8wYUUb3JizDniE6EeZ90xB2aZG2beyo9NvyuycIRjxx3takaIROZoLFBosMdm7Sd0/NuiMaVG7CcfU/XaK9G1VbiQdzM3RgVRMiEdvFt4E6LSz7g9RriXwuIecDyDtsDufc6220FfYf82PQgfe+gMFMPSTvsA252E7+4i602XpoMe2yzb+I+dQ3w35fA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1663463928; bh=meSdJLYFrHlQjVkzFV3iI+3BDtJ+YXkUV2K12JdhANP=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=F7fLE3t94sBzE1LAlaSx0lvpwbSZbmWkC7S3IlN9PDV/wRaorqIvxSOLRP4wEj4HOyyLA8TO0hyn7j7yi5TBV+N56ZuFKctGBQbCPoxmZLWctY1tlybHll473MArGOfcK6Hxn/w1PzA5itVKd93By7pi/5HsSjwEZNYIVU3YlZfQQ9L0Edmjkc/pfiJN2JCcGFT6m1pvvvs9qd3dqg/OHCZyGRSjiDk5cHLeBvulWZSFbCcHB5WUGhr/ik80+w+qepPfhK51PyedPEJhMUkkEYY/UXmg+My0JXcasMU8rD3RGvW3h845nBMP81rQWuamN5qRiSuGsTQzVpof5NelJg== X-YMail-OSG: 5Ms1.4wVM1lhqz36tjUDKHoXneZ7A.bxvB0032ZsYjAfoJ6j9QaBmHnE_bQ8YWU 8IEcL9j.SxEJkBpNSD1b2pI79o32H3z4.NfiQDz01J3LSALNhyhpjNJ_hJCppno6s.G1GKLUZMrW o7pFWBswrZ.s35UVcmNe64bZ_LPGxZX5bT_zIbLxBWVTQpwEv1fi01c.pLoLeLXqa15JYHqlZ2r4 5YhL9HPJqnOtDI.GlnsAl4ZX62Rqqay3nqAj9qjPYgST2CgK9kjFxPEDiA_j55RowXI64LF7Zpdb rHkZSxxQQk3i3MnrRAS5Zfz9wVZcExrN.5H2EoESWak4h60Jd9Kn5Gd5vULh_GvT.87w8X10X1h9 HwX1e3gEDt6XDRVT__dmH6KlVQ4Q_6VxWSgYW8eToI6v_7y7AdzE1lw4Kd6q5tr6Ts4EKH0s1Qfi _XEdDtYjX1VH1pOMFKcV7jSbGu8Wy2KXI5qTgLgDDrZxPZ0GWlFfpoRwDKCN8dBT3TR2pVd0DU65 lXIAEPLzZhRkXbJrZxaOl2jKdf0pEspdAwDu_WOINOD3xdeY1ywKrkdqhPoSggMf2tfKmyQeyI3i tfpZPnBK6KcHIQ_BBd9rm8BBS8xLkxFCIKfTkFQ9l0M2rW6aOUx3o5ltFX4Clm8oqS5qinMDbmKA 7rHXe1oOOGtJNlNUbF1gpxdWY48NH9WLld8gwcmysqYuBLimu5tTSCdHLKIOmvX81JSzW7GnJbnJ BlmwWmOKR1nVVut4Ibesb_wlsTOVcq1d4sCZMbBKax3YuQ0JQzjy_vJp6COWDMA.1AduJo0JdtSh r1i1FBIJwBUXqwUEV8ECFirmHQarAywQ1iva3fvySA X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.ne1.yahoo.com with HTTP; Sun, 18 Sep 2022 01:18:48 +0000 Original-Received: by hermes--canary-production-sg3-6bb8946c47-vfvlf (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 69ab24a16597864a730ff3b5f84326e4; Sun, 18 Sep 2022 01:18:46 +0000 (UTC) In-Reply-To: (Stefan Kangas's message of "Sat, 17 Sep 2022 14:03:50 -0400") X-Mailer: WebService/1.1.20612 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.191.206; envelope-from=luangruo@yahoo.com; helo=sonic312-25.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:295551 Archived-At: Stefan Kangas writes: > Po Lu writes: > >> Stefan Kangas writes: >> >>> + ("xfconf-query" "-c" "xfce4-desktop" "-p" >>> + "/backdrop/screen0/monitoreDP/workspace0/last-image" "-s" "%f") >> >> Judging by the command, this assumes that: >> >> - the screen number is 0 >> - the monitor on which the backdrop will be changed is named "eDP" >> - the workspace is 0 > Is "eDP" the most common and/or default name? No, it's the name used for the embedded DisplayPort internal panel on laptops. Some laptops use LVDS instead, and the name is thus "LVDS". > Not sure what to do about the screen number or workspaces. Is there any > way to find out this information with a simple command? The screen number should be the following part of the `display' frame parameter: 1.1.1.1:0.5 ^ screen number is 5 if there is no period after the separator, then the screen number is 0. The currently active workspace can be obtained like so: (x-window-property "_NET_CURRENT_DESKTOP" nil "CARDINAL" 0 nil t) if it fails by returning NULL, then you should fall back to: (x-window-property "WIN_WORKSPACE" nil "CARDINAL" 0 nil t) and failing that, 0. The monitor name should also be easy to extract with display-monitor-attributes-list, but if the source is anything other than "XRandr", "XRandr 1.5" or "Gdk", you should fall back to using "0".