You are not logged in.

#1 2009-04-06 23:38:04

Xappe
Member
Registered: 2008-05-17
Posts: 105

Arch xdm-theme

Hi!

I looked for archlinux xdm-themes today, and I found community/xdm-archlinux which looked plain ugly with comic sans and stuff. So I decided to make my own simplistic archlinux xdm theme and came up with this, which I based on the config files from xdm-archlinux:

http://xappe.klond.se/filer/arch-xdm.tar.gz

To make it work, extract the archive to /etc/X11/xdm and point your xdm to the file xdm-config in the arch-xdm directory.

It is currently made for 1280x1024, so if you use another resolution you may have to fiddle around a bit with the positions of the xclock and the login box. Hope you can live with some trial and error... tongue

EDIT: Here's a screenshot of the login screen:

arch-xdm-thumb.png

EDIT2: oh, and you need display from imagemagick for the background image to show up...

Last edited by Xappe (2009-04-07 22:17:39)


vanum est vobis ante lucem surgere

Offline

#2 2009-04-07 22:08:00

bladder
Member
Registered: 2008-07-16
Posts: 2

Re: Arch xdm-theme

Nice one Xappe!

I like it, it's on, the tweaking was straightforward for my resolution.

Proper job, that.
Thanks

Blad

Offline

#3 2009-04-07 22:10:05

Xappe
Member
Registered: 2008-05-17
Posts: 105

Re: Arch xdm-theme

bladder wrote:

Nice one Xappe!
...

Glad you liked it! smile


vanum est vobis ante lucem surgere

Offline

#4 2009-04-25 17:05:45

[vEX]
Member
From: Sweden
Registered: 2006-11-23
Posts: 450

Re: Arch xdm-theme

Nice!

Now I'm starting to wonder which uses less resources, slim or xdm. Might have to change. :-)


PC: Antec P182B | Asus P8Z77-V PRO | Intel i5 3570k | 16GB DDR3 | GeForce 450GTS | 4TB HDD | Pioneer BDR-207D | Asus Xonar DX | Altec Lansing CS21 | Eizo EV2736W-BK | Arch Linux x86_64
HTPC: Antec NSK2480 | ASUS M3A78-EM (AMD 780G) | AMD Athlon X3 425 | 8GB DDR2 | GeForce G210 | 2TB HDD | Arch Linux x86_64
Server: Raspberry Pi (model B) | 512MB RAM | 750GB HDD | Arch Linux ARM

Offline

#5 2009-04-25 17:49:21

Xappe
Member
Registered: 2008-05-17
Posts: 105

Re: Arch xdm-theme

[vEX] wrote:

Nice!

Now I'm starting to wonder which uses less resources, slim or xdm. Might have to change. :-)

I've tried slim a couple of times but my impression is that it is quite unstable and slow. Xdm feels quick and robust... smile


vanum est vobis ante lucem surgere

Offline

#6 2009-06-08 10:08:22

unregistered
Member
Registered: 2008-04-09
Posts: 134

Re: Arch xdm-theme

Hey, my screen resolution is 1280x800 and when I did the above, only a black screen appears with the prompt and no arch logo/date/time, how would I go about making the changes such that it would work?

Offline

#7 2009-06-10 11:51:55

Xappe
Member
Registered: 2008-05-17
Posts: 105

Re: Arch xdm-theme

All files are in /etc/X11/xdm/arch-xdm/

You need imagemagick installed to put archblack.png in the background (the image might need a resolution adjustment too) .

The clock settings are in .Xresources

XClock*geometry: +0+990

The poweroff/reboot buttons are setup in the buttons script and started and positioned in Xsetup


vanum est vobis ante lucem surgere

Offline

#8 2009-06-10 13:15:02

gazj
Member
From: /home/gazj -> /uk/cambs
Registered: 2007-02-09
Posts: 681
Website

Re: Arch xdm-theme

unregistered wrote:

Hey, my screen resolution is 1280x800 and when I did the above, only a black screen appears with the prompt and no arch logo/date/time, how would I go about making the changes such that it would work?

I have the same problem with a 1280x1024 resolution.  I think it could be because we don't have `display` installed, anyone knw what package this program comes in?

Also when I login xdm seems to just restart.  It does not read my .xinitrc or a .xsession file?

EDIT: Duh imagemagick silly me

Last edited by gazj (2009-06-10 13:15:42)

Offline

#9 2009-06-10 13:19:31

gazj
Member
From: /home/gazj -> /uk/cambs
Registered: 2007-02-09
Posts: 681
Website

Re: Arch xdm-theme

Got it make your .xinitrc executable

Offline

#10 2009-06-10 13:22:46

gazj
Member
From: /home/gazj -> /uk/cambs
Registered: 2007-02-09
Posts: 681
Website

Re: Arch xdm-theme

Excellent xdm theme Xappe, really ought to become the xdm-archlinux default theme in my opinion.  For some reason display seems to put the logo on my seconf monitor aswell (not centered either as my second monitor is a different resolution from my main), although this is trivial.

I have used a display manager for ages due to, gdm and kdm being to heavy. Slim just annoys the hell out of me as it takes ages to come back up when I log out and xdm was just ugly.

Excellent excellent work.

Offline

#11 2009-06-10 13:49:36

Xappe
Member
Registered: 2008-05-17
Posts: 105

Re: Arch xdm-theme

gazj wrote:

For some reason display seems to put the logo on my seconf monitor aswell (not centered either as my second monitor is a different resolution from my main), although this is trivial.

I'm glad you like it. smile

About the background image spanning two monitors, you might be able to reposition the image with the -geometry flag of display.


vanum est vobis ante lucem surgere

Offline

#12 2009-06-18 17:50:00

the_isz
Member
Registered: 2009-04-14
Posts: 280

Re: Arch xdm-theme

Hi Xappe,

I also really like your xdm theme which made me try out xdm again. Last time I tried xdm I was still using gentoo smile

Going the real Arch way, I created a PKGBUILD to install your theme and would like to share it with you and anyone who wants to try your theme
out. Feel free to add it to the AUR if you like.

http://www.mediafire.com/?sharekey=0e23 … 0a1ae8665a

Kind regards,

the_isz

P.S.: I fixed an error in your Xsetup file which kept the buttons from being displayed, I hope that's ok...

Edit: I noticed that uploading the PKGBUILD linking to your old archive while providing the md5sum for my modified archive isn't such a good idea wink

I uploaded the package including the new archive until it's packed on some server which can be directly accessed...

Last edited by the_isz (2009-06-18 20:33:25)

Offline

#13 2009-06-18 20:30:54

Xappe
Member
Registered: 2008-05-17
Posts: 105

Re: Arch xdm-theme

the_isz wrote:

Hi Xappe,

I also really like your xdm theme which made me try out xdm again. Last time I tried xdm I was still using gentoo smile

Going the real Arch way, I created a PKGBUILD to install your theme and would like to share it with you and anyone who wants to try your theme
out. Feel free to add it to the AUR if you like.

http://uploading.com/files/CZ2DU9YS/xdm … ar.gz.html

Kind regards,

the_isz

P.S.: I fixed an error in your Xsetup file which kept the buttons from being displayed, I hope that's ok...

Nice job! I'll look into adding it to aur when I've got some spare time...or if you wan't you're free to add it yourself.
You can fix any error you like btw smile

Edit: Btw, you might want to add imagemagick as a dependency since it's configured to use display.

Last edited by Xappe (2009-06-18 20:35:10)


vanum est vobis ante lucem surgere

Offline

#14 2009-06-18 20:36:50

the_isz
Member
Registered: 2009-04-14
Posts: 280

Re: Arch xdm-theme

Xappe wrote:

Nice job! I'll look into adding it to aur when I've got some spare time...or if you wan't you're free to add it yourself.
You can fix any error you like btw smile

Just remember to take the new link (not the one quoted in your last answer) when you try it. I would add it to the AUR but I don't have a file
server at hand to which I could upload the files.

I'll talk to a friend on whose server I have an account on, maybe he'll let me use that.

You are right about imagemagick, but this is a huge dependency for such a resource-friendly login manager. I'll look into using xsetroot these days,
but I gotta go sleep now and tomorrow after work I'll have my diploma handed over, so there'll be little time either. I'm sure I'll find some over
the weekend though.

Edit: Using my minimal-install ubs stick, I noticed that the Xsetup script also depends on the xorg-apps package. I'll see if I can make these optional
dependencies, using sed to comment out the respective lines...

Last edited by the_isz (2009-06-19 05:31:00)

Offline

#15 2009-06-19 14:07:01

Skatox
Member
From: Venezuela
Registered: 2006-08-25
Posts: 64
Website

Re: Arch xdm-theme

Nice work, i use 1024x768 and only changing this line:
Xlogin*geometry:400x300+312+400

i made it look good.


https://www.skatox.com/blog -> Visit my blog about (Linux, Hacking, Open Source, Web Development,  Windows, Mac Os X, Internet and more......)

Offline

#16 2009-06-21 12:02:23

the_isz
Member
Registered: 2009-04-14
Posts: 280

Re: Arch xdm-theme

All right, I made a (hopefully) proper PKGBUILD and made some modifications to the files of Xappe.

The package now optionally depends on imagemagick, feh and xloadimage, each of which can be used to set the background. That way, we won't
have too many imperative dependencies on this small package. There are enough already, as I realized scanning through the scripts wink

And here it is:

xdm-arch-theme (AUR)

Hope you like it!

Last edited by the_isz (2009-06-21 12:03:11)

Offline

#17 2009-09-10 20:23:47

the_isz
Member
Registered: 2009-04-14
Posts: 280

Re: Arch xdm-theme

I have today released version 2 of the theme including some major changes. See my
comments on the AUR for details.

I still need help from people not using a resolution of 1280x1024! Again, see my comments
on the AUR for details.

Offline

#18 2009-10-27 20:29:02

thefatprecious
Member
From: Austin, TX
Registered: 2009-02-13
Posts: 98

Re: Arch xdm-theme

thanks this is really nice...exactly what I was looking for. xdm FTW!


ILoveCandy

Offline

#19 2009-10-27 21:41:16

the_isz
Member
Registered: 2009-04-14
Posts: 280

Re: Arch xdm-theme

thefatprecious wrote:

thanks this is really nice...exactly what I was looking for. xdm FTW!

Nice to hear smile

I'll soon release a minor update supporting additional resolutions, stay tuned wink

Offline

#20 2009-11-23 01:48:10

mar77i
Member
Registered: 2009-02-16
Posts: 21

Re: Arch xdm-theme

I've extended the buttons script with a session chooser.
It'll add twm to the wms available in /etc/X11/sessions and store your choice in /etc/X11/sessions/.lastsess (I guess there might be better places to store this?)

Here's my /etc/X11/xdm/arch-xdm/buttons script:

#!/bin/bash

choose_wm() {
        files=("twm")
        str="twm"
        for file in /etc/X11/sessions/*; do
                wm=$(sed -rn 's_/etc/X11/sessions/(.*).desktop|(twm)_\1\2_p' <<<"$file")
                str+=",$wm"
                files+=("$file")
        done
        xmessage -buttons $str "$@" "";
        echo "${files[$? - 101]}" >/etc/X11/sessions/.lastsess
}

if which xmessage >> /dev/null 2>&1; then
        if [[ -f /etc/X11/sessions/.lastsess ]]; then
                wm=$(sed -rn 's_/etc/X11/sessions/(.*).desktop|(twm)_\1\2_p' /etc/X11/sessions/.lastsess)
        else
                wm=twm
        fi
        xmessage -buttons $wm,reboot,halt "$@" "";

        case "$?" in
                101)
                        choose_wm "$@"
                        $0 $*
                        ;;
                102)
                        /sbin/reboot
                        ;;
                103)
                        /sbin/halt
                        ;;
        esac
fi

and my user's .xsession file accordingly:

#!/bin/bash

session=$(</etc/X11/sessions/.lastsess)

[[ $session = /etc/X11/sessions/*.desktop ]] \
        && exec $(sed -rn '/^Exec=(.*)$|^(\/.*)$/ s//\1\2/p' "$session") \
        || exec $session

Last edited by mar77i (2009-11-23 02:00:27)


<rickh> f(Arch) = ((Gentoo - Compiletime) + (Slackware + Depency resolution and Downloading))

Offline

#21 2009-11-23 09:49:02

the_isz
Member
Registered: 2009-04-14
Posts: 280

Re: Arch xdm-theme

mar77i wrote:

I've extended the buttons script with a session chooser.

That's a nice idea. I thought about doing something like this as well but didn't
find a good way of doing so yet.

If I were to adopt this idea for xdm-arch-theme, I'd have to make some
modifications though. First off, the .lastsession file should be user-specific,
which would answer the question as to where to store this file. We could achieve
this by storing the .lastsession file when the user logs in, as opposed to when
the session chooser button is pressed.

Secondly, I don't have a /etc/X11/sessions directory. Is this standard in any
way? Could you tell me whether you created it yourself and - if not - to which
package(s) it belongs? If it's not default in any way, I'd suggest we think
about using /usr/share/xsessions instead, which seems to be standard.

Hope to hear from you, mar77i!

Offline

#22 2009-12-05 16:12:37

zodmaner
Member
Registered: 2007-07-11
Posts: 653

Re: Arch xdm-theme

the_isz wrote:

Secondly, I don't have a /etc/X11/sessions directory. Is this standard in any
way?

On my system, I have /etc/X11/sessions folder with the following files in it:

kde.desktop  kde-safe.desktop

So, I think if KDE is using it, it should be okay for us to use it too. tongue

PS. Great little project you got here guys, have been using it for quite sometimes now.

Offline

#23 2009-12-05 21:45:00

the_isz
Member
Registered: 2009-04-14
Posts: 280

Re: Arch xdm-theme

zodmaner wrote:

PS. Great little project you got here guys, have been using it for quite sometimes now.

Nice to hear you like it and thanks for the info.

Offline

#24 2009-12-06 00:52:05

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Arch xdm-theme

I like the work you guys have done with this, I am running into a small problem though. The Arch SVG looks a bit too big for my taste, but when I check the original SVG it seems a lot smaller than the scaled one that's in /var/cache. I assume Xsetup is where the magic happens, but I'm not sure how to get a smaller image (or reposition it, so I can move the login stuff more towards the center of the screen)... Could someone give some pointers?

tMnhjOA

Also, I've set Dejavu Sans to be used for the clock and buttons, but they still look horribly big (I'm a nitpicker, I know). Yet xfontsel didn't show any font sizes that I could select. Is there a way around this? Changing the xfontsel-generated string by hand just seems to reset XDM to the default (crappy) font.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#25 2009-12-06 01:22:42

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: Arch xdm-theme

Nice.  Basic themes just appeal more to me.  Still amazes me the xdm is still the default login manager for Linux.


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

Board footer

Powered by FluxBB