Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Gentoo Chat
  • Search

Making XDM look good

Opinions, ideas and thoughts about Gentoo. Anything and everything about Gentoo except support questions.
Post Reply
  • Print view
Advanced search
185 posts
  • Page 5 of 8
    • Jump to page:
  • Previous
  • 1
  • …
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • Next
Author
Message
jurrie
Apprentice
Apprentice
User avatar
Posts: 177
Joined: Sun Mar 14, 2004 6:04 pm
Location: Netherlands
Contact:
Contact jurrie
Website

  • Quote

Post by jurrie » Sat Feb 05, 2005 7:23 pm

Yay, got it to work now, exactly the way I wanted it n_n (except the border around xclock.. any way to get rid of it?)

Waii (2560x1024, 568k png)
Top
placeholder
Advocate
Advocate
Posts: 2500
Joined: Sat Feb 07, 2004 12:15 am

  • Quote

Post by placeholder » Sat Feb 05, 2005 9:16 pm

jurrie wrote:Yay, got it to work now, exactly the way I wanted it n_n (except the border around xclock.. any way to get rid of it?)

Waii (2560x1024, 568k png)
Yeah, the '-bd <colour>' flag is how you set a border colour in xclock. It should work in other apps as well. Just use `appName --help` to see if it has it. :D
Top
jurrie
Apprentice
Apprentice
User avatar
Posts: 177
Joined: Sun Mar 14, 2004 6:04 pm
Location: Netherlands
Contact:
Contact jurrie
Website

  • Quote

Post by jurrie » Sat Feb 05, 2005 9:18 pm

doh o_O I only read the man page and it didn't mention the -bd

thanks XD
Top
hicksboson
n00b
n00b
User avatar
Posts: 31
Joined: Mon Oct 18, 2004 6:31 pm
Location: Kiel, Germany

  • Quote

Post by hicksboson » Sun Feb 06, 2005 5:22 pm

mikegpitt wrote:Is there anyway to include a sessions dropdown in xdm? I currently use KDM and use it to switch between desktop environments often.
I made a session-choser with xdialog, a gtk+1.x version of dialog. So you should first install this to use my script:

Code: Select all

emerge xdialog
Here is the script that displays the session chooser (with radio buttons)

Code: Select all

#!/bin/bash

## Set the File that stores the last Session
LastSession="/etc/X11/xdm/scripts/last_session" 

## Get the last Session if present, otherwise try to get default Session from /etc/rc.conf
[ -f $LastSession ] && source $LastSession
if [ -n "${XSESSION}" ]; then
        DialogSessions=" ${XSESSION} $(echo "Last_(${XSESSION})") on"
else
        [ -f /etc/rc.conf ] && source /etc/rc.conf
        if [ -n "${XSESSION}" ]; then
                DialogSessions=" ${XSESSION} $(echo "Last_(${XSESSION})") on"
        fi
fi

## Get all available Session from /etc/X11/Sessions
for file in $(ls /etc/X11/Sessions/)
do
        DialogSessions="${DialogSessions} $file $file off"
done

## The Dialog itself
ChosenSession=$(/usr/bin/Xdialog --stdout --no-tags --radiolist "Select a Session:" 0 0 0 \
        $(echo "${DialogSessions}"))


## Write chosen Session to File
if [ -n "${ChosenSession}" ]; then
        echo "XSESSION="${ChosenSession}"" > $LastSession
fi
You can put this for example in /etc/X11/xdm/scripst/session-chooser.
I load this script with a panel of three buttons for halt, reboot and the Session chooser (/etc/X11/xdm/scripts/buttons)

Code: Select all

#!/bin/sh

# xmessage returns the number of the button plus 100 (so 101 for the first 102 for second ...)
/usr/X11R6/bin/xmessage  -geometry +0-0 -buttons halt,reboot,Session "$@" "" ""
case "$?" in
        101)
                /sbin/halt
                ;;
        102)
                /sbin/reboot
                ;;
        103)
                /etc/X11/xdm/scripts/session_chooser
                exec "$0"
                ;;
esac
To show the buttons in lower left corner of the screen add the followin line to your /etc/X11/xdm/Xsetup_0

Code: Select all

/etc/X11/xdm/scripts/buttons &
and the following at the Start of /etc/X11/chooser.sh (to get the chosen session startet)

Code: Select all

(...)
# If $XSESSION is "", source first /etc/conf.d/basic, and then /etc/rc.conf
if [ -z "${XSESSION}" ]
then
        [ -f /etc/conf.d/basic ] && source /etc/conf.d/basic
        [ -f /etc/rc.conf ] && source /etc/rc.conf

## This is the line you've got to add
        [ -f /etc/X11/xdm/scripts/last_session ] && source /etc/X11/xdm/scripts/

last_session
fi
(...)
You can change the appearance of the buttons in /etc/X11/xdm/Xresources with Xmessage*some_option for example to fit it whith Pwnz3r's theme add to Xresources

Code: Select all

! Buttons Configuration
Xmessage*message.scrollVertical:        auto
Xmessage*message.scrollHorizontal:      never

Xmessage*Command.highlightThickness:    2
Xmessage*Command.internalWidth:         8
Xmessage*Command.internalHeight:        8
Xmessage*Command.shapeStyle:            rectangle
Xmessage*Command.font:  -*-bitstream vera sans-bold-r-*--20-*-*-*-*-*-iso10646-1
And at last to get rid of buttons, when you enter a session Add the following line to your /etc/X11/xdm/GiveConsole

Code: Select all

/bin/killall xmessage
Ok, that was a lot of stuff, but it's realy nice and usefull and I hope it help to "downgrade" from gdm/kdm (for those who want):-)

Jojo
Top
VoVaN
l33t
l33t
Posts: 704
Joined: Wed Jul 02, 2003 6:55 pm
Location: The Netherlands
Contact:
Contact VoVaN
Website

  • Quote

Post by VoVaN » Mon Feb 07, 2005 9:04 am

...my 2 cents
picture: http://vovan.homelinux.org/files/screenshots/xdm.png
config: http://vovan.homelinux.org/files/xdm/

Some tips:
-if you'd like to have you favorite mouse pointer instead black cross put this in your Xsetup_0

Code: Select all

/usr/X11R6/bin/xsetroot -cursor_name left_ptr
-if you don't like the default gray background during X startup, modify you Xservers as bellow:

Code: Select all

:0 local /usr/X11R6/bin/X -nolisten tcp -br
(the important is -br, which changes background to black)
Top
placeholder
Advocate
Advocate
Posts: 2500
Joined: Sat Feb 07, 2004 12:15 am

  • Quote

Post by placeholder » Mon Feb 07, 2005 1:21 pm

VoVaN: You know, it was your post about this from 6 or so months ago that got me into the whole configuration of XDM. People did not like your design tastes as much though, so it kind of threw them off. :wink:

Also, I plan on making an alternative to the session chooser with Python using GTK2. I will get on that sometime when I get home.
Top
suineg
Apprentice
Apprentice
User avatar
Posts: 200
Joined: Tue Mar 02, 2004 6:49 am
Location: Los Angeles

  • Quote

Post by suineg » Tue Feb 08, 2005 1:34 am

Vovan, how did you get your directory listing to look like that, is that apache?

thanks for the config options...great stuff :)
Top
mikegpitt
Advocate
Advocate
User avatar
Posts: 3224
Joined: Sat May 22, 2004 6:49 pm

  • Quote

Post by mikegpitt » Tue Feb 08, 2005 6:28 am

hicksboson,

Thanks for the scripts! I've had no time recently but I think I'll try them out soon.
Top
ares
Apprentice
Apprentice
User avatar
Posts: 280
Joined: Mon Oct 13, 2003 6:06 pm
Location: Savigliano (CN)
Contact:
Contact ares
Website

  • Quote

Post by ares » Tue Feb 08, 2005 4:56 pm

My shot
http://www.genbuild.org/gallery/view.php?gid=3&phid=0
My portage and homepage
Top
hicksboson
n00b
n00b
User avatar
Posts: 31
Joined: Mon Oct 18, 2004 6:31 pm
Location: Kiel, Germany

  • Quote

Post by hicksboson » Tue Feb 08, 2005 8:31 pm

To kill all those apps you startet with xdm (like xclock, xsetbg ...) at once you can add this line to your /etc/X11/xdm/GiveConsole

Code: Select all

/usr/X11R6/bin/xwininfo -root -children | /bin/grep '  0x' |  /bin/cut -d' ' -f6 | /usr/bin/xargs -n1 /usr/X11R6/bin/xkill -id
With this you don't have to kill each app seperatly, so you can comment out all this "killall /some/prog" lines in your GiveConsole.

This is nothing for you, if want to keep anything running after you logged in. :)
Top
luna80
Veteran
Veteran
User avatar
Posts: 1569
Joined: Sun Feb 01, 2004 7:51 am
Location: switzerland

  • Quote

Post by luna80 » Thu Feb 10, 2005 8:14 pm

very good tips!!

i'm trying to change the font of the login box but any different font from -*-snap-*-*-*-*-*-*-*-*-*-*-*-* work for me.

can somebody tell me why?
Top
LucaSpiller
Apprentice
Apprentice
Posts: 188
Joined: Fri Sep 10, 2004 9:41 pm
Location: Censorship Land (aka England)

  • Quote

Post by LucaSpiller » Thu Feb 10, 2005 10:21 pm

I like those scripts hicksboson but I have a couple of problems:

If I add -bg white it reveals a strange box thingy above the buttons, I want to make the whole button set really small but this ends up covering them. :x So is there a way to remove it?

Also is there a way to change the theme on your chooser script?
:: Luca :: Mac Fag :: Original Macbook, 2g RAM :: Closet Linux user (seasoned with salt and pepper) :: C2D E4400 @ 2ghz, 4g RAM (only 3.2g detected under 64bit...), Nvidia 9600GSO ::
Top
Farkenell
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 88
Joined: Fri Dec 05, 2003 12:41 am

  • Quote

Post by Farkenell » Thu Feb 10, 2005 10:27 pm

doesn't .bashrc run everytime you start a terminal?

so you'd have it run startx everytime you open up *term?
Top
ares
Apprentice
Apprentice
User avatar
Posts: 280
Joined: Mon Oct 13, 2003 6:06 pm
Location: Savigliano (CN)
Contact:
Contact ares
Website

  • Quote

Post by ares » Sat Feb 12, 2005 1:33 am

New with xcompmgr
http://www.genbuild.org/gallery/view.php?gid=3&phid=1
My portage and homepage
Top
G3n2
Tux's lil' helper
Tux's lil' helper
Posts: 127
Joined: Mon Aug 09, 2004 10:02 am

  • Quote

Post by G3n2 » Sat Feb 12, 2005 4:28 pm

can anyone tell me how to change the font ?
there's like a strange line with *--snap etc. is there any docu on how i might see all the fonts i have and how to add them correctly ?

because i want the artwiz-anorexia font , but i have no idea how to add it :)

any help is appreciated , thx

-g3n2
Top
Oxyron
n00b
n00b
User avatar
Posts: 38
Joined: Thu Aug 12, 2004 11:20 am
Location: Lithuania, Vilnius

  • Quote

Post by Oxyron » Sat Feb 12, 2005 7:50 pm

G3n2, xfontsel can be used to generate font lines.
Top
G3n2
Tux's lil' helper
Tux's lil' helper
Posts: 127
Joined: Mon Aug 09, 2004 10:02 am

  • Quote

Post by G3n2 » Sat Feb 12, 2005 7:53 pm

Oxyron wrote:G3n2, xfontsel can be used to generate font lines.
i found that out , but artwiz doesnt seem to be in the selection :S

it should be in the family box i guess , but it isnt ?

any ideas ?

i've emerged artwiz-fonts and artwiz-aleczapka-en
Top
ares
Apprentice
Apprentice
User avatar
Posts: 280
Joined: Mon Oct 13, 2003 6:06 pm
Location: Savigliano (CN)
Contact:
Contact ares
Website

  • Quote

Post by ares » Sat Feb 12, 2005 8:42 pm

xlsfonts '*artwiz*'
My portage and homepage
Top
G3n2
Tux's lil' helper
Tux's lil' helper
Posts: 127
Joined: Mon Aug 09, 2004 10:02 am

  • Quote

Post by G3n2 » Sat Feb 12, 2005 8:52 pm

ares wrote:xlsfonts '*artwiz*'
pattern artwiz unmatched
Top
ares
Apprentice
Apprentice
User avatar
Posts: 280
Joined: Mon Oct 13, 2003 6:06 pm
Location: Savigliano (CN)
Contact:
Contact ares
Website

  • Quote

Post by ares » Sat Feb 12, 2005 9:09 pm

@G3n2 : restart xfs and X ?
My portage and homepage
Top
G3n2
Tux's lil' helper
Tux's lil' helper
Posts: 127
Joined: Mon Aug 09, 2004 10:02 am

  • Quote

Post by G3n2 » Sat Feb 12, 2005 9:14 pm

did that :)

but still not working

any idea's ?
Top
G3n2
Tux's lil' helper
Tux's lil' helper
Posts: 127
Joined: Mon Aug 09, 2004 10:02 am

  • Quote

Post by G3n2 » Sat Feb 12, 2005 10:13 pm

re-emerged artwiz-fonts , restarted the whole box just for fun , did an rc-update add xfs default for the font server , started the font server , it DOES read artwiz dir , but xfontsel AND xfontselector dont show the fonts , im stuck here . any idea's ?
Top
luna80
Veteran
Veteran
User avatar
Posts: 1569
Joined: Sun Feb 01, 2004 7:51 am
Location: switzerland

  • Quote

Post by luna80 » Sun Feb 13, 2005 8:32 pm

for me work only font that look like this:

-<series>-<font_name>-*-*-*-*-*-*-*-*-*-*-*-*

for example: -misc-fixed-*-*-*-*-*-*-*-*-*-*-*-*


if you have problems with fonts try to put a font like the above example.
Top
djpharoah
Apprentice
Apprentice
User avatar
Posts: 186
Joined: Wed Nov 24, 2004 1:59 am
Location: Irvine, California USA

  • Quote

Post by djpharoah » Wed Feb 16, 2005 11:34 pm

@G3n2
add the paths to the font u want to use in ur xorg.conf file
that way seems to automatically work for me

hope this helps
Top
psyqil
Advocate
Advocate
User avatar
Posts: 2767
Joined: Mon May 26, 2003 8:17 pm

  • Quote

Post by psyqil » Fri Feb 18, 2005 7:32 am

NME wrote:can i get rid of the black borders around the term though?
This hasn't been answered yet, has it? I use

Code: Select all

*Foreground: black
to let these lines disappear, you probably would want them white...
Top
Post Reply
  • Print view

185 posts
  • Page 5 of 8
    • Jump to page:
  • Previous
  • 1
  • …
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • Next

Return to “Gentoo Chat”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic