LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   [ANN] xdm-slackware-theme 2019.0628 (https://www.linuxquestions.org/questions/slackware-14/%5Bann%5D-xdm-slackware-theme-2019-0628-a-4175656722/)

igadoter 10-22-2019 09:32 AM

It does not work for me. When xdm starts there is warning message Warning setxdmbg failed to display /etc/X11/xdm/slackware/pixmaps/default-wallpaper.pixmap.

bamunds 10-22-2019 09:53 AM

Did you view all the videos? They are excellent in how to setup and begin using xdm-slackware-themes.
Are you setting up for one or two monitors? You'll have to provide more information to answer your somewhat vague error message. Cheers

igadoter 10-22-2019 10:18 AM

It seems that lack of feh program was missing dependency. Although I didn't notice in movies that feh is requirement. Yet I found it in configuration files so I started to suspect that the lack of feh is the source of problem. I built feh from slackbuild script - and now background is being displayed. Yet it still not clear why I need feh.

Edit: It just came to me. Maybe now background is displayed by feh. I mean in presence of feh - it is used to display background, if feh is absent - setxdmbg is used.

phenixia2003 10-22-2019 10:54 AM

1 Attachment(s)
Hello,

Quote:

Originally Posted by igadoter (Post 6049586)
It does not work for me. When xdm starts there is warning message Warning setxdmbg failed to display /etc/X11/xdm/slackware/pixmaps/default-wallpaper.pixmap.

Well, I reproduced that issue. When feh is not installed, setxdmbg uses the command 'display' (from imagemagick) to display the image on the root window. Unfortunately 'display' returns 1 (even when the image is correctly displayed) which is interpreted as an error by setxdmbg which automatically set the root window to black and print that error message.

The easiest way to fix this, is to install feh (requires imlib2). Note that feh is a requirement if you consider using a compositor like compton.

Otherwise, you can apply, as root, the attached patch as below :
Code:

$ cd /usr/libexec/setxdmbg
$ patch -p0<setxdmbg-consume-display-exit-code.patch.txt

P.S: I will submit a new version with this fix to SBo, asap.

--
SeB

igadoter 10-22-2019 11:28 AM

Thanks for reply. I am now trying to set up all the candies - clock and conky. I just have built compton for cairo-clock - but I understand that compton needs to be started before xdm screen appears, so how to set this?

phenixia2003 10-22-2019 12:29 PM

Hello,

Quote:

Originally Posted by igadoter (Post 6049626)
Thanks for reply. I am now trying to set up all the candies - clock and conky. I just have built compton for cairo-clock - but I understand that compton needs to be started before xdm screen appears, so how to set this?

compton is automatically started by /etc/X11/xdm/slackware/Xsetup when : compton is installed, the property WITH_COMPTON (in /etc/X11/xdm/slackware/Xsetup.conf) is set to on (or 1 or yes or true), and feh is installed.

for more about Xsetup configuration, read this (or type 'man Xsetup.conf'). If you want to setup multiple XDM logins (with multiple Xsetup configurations), read this.

--
SeB

bamunds 11-09-2019 04:06 PM

SeB, sbotools caught me off guards when it wanted to update xdm-slackware-theme to 2019.1023. Thanks for the patch. Any special steps to take when upgrading to the latest version from 2019.0628? Maybe the title of this thread could be updated also? Cheers, Brian

phenixia2003 11-10-2019 03:58 AM

[ANN] xdm-slackware-theme
 
Hello,

Quote:

Originally Posted by bamunds (Post 6055969)
Thanks for the patch.

You're welcome.

Quote:

Originally Posted by bamunds (Post 6055969)
Any special steps to take when upgrading to the latest version from 2019.0628?

No. I didn't make change to the configuration files. If you have changed some of them, there must be .new files in /etc/X11/xdm/slackware and/or /etc/X11/xdm/slackware/extensions.d. You can ignore (or delete) them.

--
SeB

bamunds 11-10-2019 02:41 PM

Done and everything is working without issues. Yes there were .new files which I removed and left my original configs in place. Cheers again. BrianA_MN

GazL 11-12-2019 03:12 PM

What do you think to the idea of adopting a dedicated /etc/X11/xdm/themes/ directory to drop themes in? IMO having the extra directory level as a standardised location for theme directories will make having multiple themes a little tidier and won't clutter the main /etc/X11/xdm directory.

full disclosure:
I've already been doing this with my own theme, so I have a vested interest here. I start it with:
/usr/X11R6/bin/xdm -config "/etc/X11/xdm/themes/$xdm_theme/xdm-config" -nodaemon

phenixia2003 11-13-2019 03:44 AM

1 Attachment(s)
Quote:

Originally Posted by GazL (Post 6056921)
What do you think to the idea of adopting a dedicated /etc/X11/xdm/themes/ directory to drop themes in? IMO having the extra directory level as a standardised location for theme directories will make having multiple themes a little tidier and won't clutter the main /etc/X11/xdm directory.

Yes that's good idea. This only requires small changes to xdm-slackware-theme. I will add this to my todo-list.

Quote:

Originally Posted by GazL (Post 6056921)
full disclosure:
I've already been doing this with my own theme, so I have a vested interest here. I start it with:
/usr/X11R6/bin/xdm -config "/etc/X11/xdm/themes/$xdm_theme/xdm-config" -nodaemon

This requires to change /etc/rc.d/rc.4, which I want to avoid.

I prefer the way xdm-slackware-theme works: replacing the original /etc/X11/xdm/xdm-config file (saved beforehand) by a symlink which points the xdm-config file of selected theme.

This symlink can be manually set by user, or with a simple TUI, which could looks like this:

Attachment 31830

--
SeB

GazL 11-13-2019 04:24 AM

Quote:

Originally Posted by phenixia2003 (Post 6057114)
Yes that's good idea. This only requires small changes to xdm-slackware-theme. I will add this to my todo-list.

Great. Thanks SeB. :)


Quote:

Originally Posted by phenixia2003 (Post 6057114)
This requires to change /etc/rc.d/rc.4, which I want to avoid.

I prefer the way xdm-slackware-theme works: replacing the original /etc/X11/xdm/xdm-config file (saved beforehand) by a symlink which points the xdm-config file of selected theme.

This symlink can be manually set by user, or with a simple TUI, which could looks like this:

Attachment 31830

--
SeB

Yep, no problem. Current supports a rc.4.local, which is what I use, but I wasn't suggesting messing with the rc files in your package (it was just an example showing the theme subdir in action). I agree, your symlink solution is likely to be the better solution for most folk.

bamunds 01-17-2020 08:28 PM

Update version available for 2020.0101? What were the fixes or upgrades? Cheers, BrianA_MN

phenixia2003 01-18-2020 03:30 AM

Hello,

Quote:

Originally Posted by bamunds (Post 6079807)
Update version available for 2020.0101? What were the fixes or upgrades? Cheers, BrianA_MN

This version fixes an issue with imagemagick 7 (comes with -current). You don't need to upgrade to 2020.0101 unless you're using -current, or if you have upgraded imagemagick to 7 on -14.2.

Since this fix does not break xdm-slackware-theme on 14.2 with imagemagick 6, I chose to publish it instead of waiting for 15.0.

--
SeB

bamunds 01-19-2020 01:40 PM

Thanks for the update. Just for grins, I applied the latest under 14.2 and all is well still.

In fact xdm-slackware-themes is better than SDDM 0.18.0. SDDM will start only a single session on VT7 and only on invoking "switch user" from KDM or XFCE do you get a session on VT8. The only nice feature of SDDM is that of avatars and iconified buttons for shutdown, reboot, suspend, switch to another user which has no avatar. But I have not seen SDDM with conky and clock like xdm-slackware-themes. I would guess that all the iconified buttons could be created with XDM, but having them in the upper corner is sufficient for my work. The avatar is cool, only because my wife isn't using the Linux machine daily and forgets what to do when looking at username: (she is so use to the Win10 login, Win10 needed because our financial investment firm refuses to support Linux and builds everything on Win10).

Just as a curiosity, have you ever considered adding avatars to the XDM Login? Cheers, BrianA_MN


All times are GMT -5. The time now is 12:17 PM.