View previous topic :: View next topic |
Author |
Message |
jurrie Apprentice
Joined: 14 Mar 2004 Posts: 177 Location: Netherlands
|
Posted: Sat Feb 05, 2005 7:23 pm Post subject: |
|
|
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) |
|
Back to top |
|
|
placeholder Advocate
Joined: 07 Feb 2004 Posts: 2500
|
Posted: Sat Feb 05, 2005 9:16 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
jurrie Apprentice
Joined: 14 Mar 2004 Posts: 177 Location: Netherlands
|
Posted: Sat Feb 05, 2005 9:18 pm Post subject: |
|
|
doh o_O I only read the man page and it didn't mention the -bd
thanks XD |
|
Back to top |
|
|
hicksboson n00b
Joined: 18 Oct 2004 Posts: 31 Location: Kiel, Germany
|
Posted: Sun Feb 06, 2005 5:22 pm Post subject: |
|
|
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:
Here is the script that displays the session chooser (with radio buttons)
Code: |
#!/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: | #!/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: |
/etc/X11/xdm/scripts/buttons &
|
and the following at the Start of /etc/X11/chooser.sh (to get the chosen session startet)
Code: |
(...)
# 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: |
! 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: | /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 |
|
Back to top |
|
|
VoVaN l33t
Joined: 02 Jul 2003 Posts: 688 Location: The Netherlands
|
Posted: Mon Feb 07, 2005 9:04 am Post subject: |
|
|
...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: | /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: | :0 local /usr/X11R6/bin/X -nolisten tcp -br |
(the important is -br, which changes background to black) |
|
Back to top |
|
|
placeholder Advocate
Joined: 07 Feb 2004 Posts: 2500
|
Posted: Mon Feb 07, 2005 1:21 pm Post subject: |
|
|
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.
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. |
|
Back to top |
|
|
suineg Apprentice
Joined: 02 Mar 2004 Posts: 200 Location: Los Angeles
|
Posted: Tue Feb 08, 2005 1:34 am Post subject: |
|
|
Vovan, how did you get your directory listing to look like that, is that apache?
thanks for the config options...great stuff |
|
Back to top |
|
|
mikegpitt Advocate
Joined: 22 May 2004 Posts: 3224
|
Posted: Tue Feb 08, 2005 6:28 am Post subject: |
|
|
hicksboson,
Thanks for the scripts! I've had no time recently but I think I'll try them out soon. |
|
Back to top |
|
|
ares Apprentice
Joined: 13 Oct 2003 Posts: 280 Location: Savigliano (CN)
|
|
Back to top |
|
|
hicksboson n00b
Joined: 18 Oct 2004 Posts: 31 Location: Kiel, Germany
|
Posted: Tue Feb 08, 2005 8:31 pm Post subject: |
|
|
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: |
/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. |
|
Back to top |
|
|
luna80 Veteran
Joined: 01 Feb 2004 Posts: 1546 Location: switzerland
|
Posted: Thu Feb 10, 2005 8:14 pm Post subject: |
|
|
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? |
|
Back to top |
|
|
LucaSpiller Apprentice
Joined: 10 Sep 2004 Posts: 188 Location: Censorship Land (aka England)
|
Posted: Thu Feb 10, 2005 10:21 pm Post subject: |
|
|
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. 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 :: |
|
Back to top |
|
|
Farkenell Tux's lil' helper
Joined: 05 Dec 2003 Posts: 88
|
Posted: Thu Feb 10, 2005 10:27 pm Post subject: |
|
|
doesn't .bashrc run everytime you start a terminal?
so you'd have it run startx everytime you open up *term? |
|
Back to top |
|
|
ares Apprentice
Joined: 13 Oct 2003 Posts: 280 Location: Savigliano (CN)
|
|
Back to top |
|
|
G3n2 Tux's lil' helper
Joined: 09 Aug 2004 Posts: 127
|
Posted: Sat Feb 12, 2005 4:28 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
Oxyron n00b
Joined: 12 Aug 2004 Posts: 38 Location: Lithuania, Vilnius
|
Posted: Sat Feb 12, 2005 7:50 pm Post subject: |
|
|
G3n2, xfontsel can be used to generate font lines. |
|
Back to top |
|
|
G3n2 Tux's lil' helper
Joined: 09 Aug 2004 Posts: 127
|
Posted: Sat Feb 12, 2005 7:53 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
ares Apprentice
Joined: 13 Oct 2003 Posts: 280 Location: Savigliano (CN)
|
|
Back to top |
|
|
G3n2 Tux's lil' helper
Joined: 09 Aug 2004 Posts: 127
|
Posted: Sat Feb 12, 2005 8:52 pm Post subject: |
|
|
ares wrote: | xlsfonts '*artwiz*' |
pattern artwiz unmatched |
|
Back to top |
|
|
ares Apprentice
Joined: 13 Oct 2003 Posts: 280 Location: Savigliano (CN)
|
|
Back to top |
|
|
G3n2 Tux's lil' helper
Joined: 09 Aug 2004 Posts: 127
|
Posted: Sat Feb 12, 2005 9:14 pm Post subject: |
|
|
did that
but still not working
any idea's ? |
|
Back to top |
|
|
G3n2 Tux's lil' helper
Joined: 09 Aug 2004 Posts: 127
|
Posted: Sat Feb 12, 2005 10:13 pm Post subject: |
|
|
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 ? |
|
Back to top |
|
|
luna80 Veteran
Joined: 01 Feb 2004 Posts: 1546 Location: switzerland
|
Posted: Sun Feb 13, 2005 8:32 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
djpharoah Apprentice
Joined: 24 Nov 2004 Posts: 186 Location: Irvine, California USA
|
Posted: Wed Feb 16, 2005 11:34 pm Post subject: |
|
|
@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 |
|
Back to top |
|
|
psyqil Advocate
Joined: 26 May 2003 Posts: 2767
|
Posted: Fri Feb 18, 2005 7:32 am Post subject: |
|
|
NME wrote: | can i get rid of the black borders around the term though? | This hasn't been answered yet, has it? I use to let these lines disappear, you probably would want them white... |
|
Back to top |
|
|
|