You are not logged in.

#1 2007-12-28 12:05:16

Nc_Zer0
Member
From: RPC
Registered: 2007-12-28
Posts: 10
Website

[SOLVED]export sth in __xmonad__ with gdm

Using Gdm and xmonad

i need to export something when i start xmonad!
Just like:

export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE="scim"
export QT_IM_MODULE="scim"

i had try to add them to ".Xresource",but it doesn't work.

please tell me how to do it!

i have no idea about xmonad,but

i think it's the best way to use my pc!


thank you ,and sorry for my english!:(

Last edited by Nc_Zer0 (2007-12-31 03:38:20)


Sorry for my English.

{:-> Doo net hin gand doi tw ell!  _Unix
My site:enjoy4fun.cn

Offline

#2 2007-12-29 11:03:32

buttons
Member
From: NJ, USA
Registered: 2007-08-04
Posts: 620

Re: [SOLVED]export sth in __xmonad__ with gdm

Create a file called ~/.profile, and put your export declarations in there.  GDM will *probably* use them automatically.

If not, add

source ~/.profile

to your .xinitrc


Cthulhu For President!

Offline

#3 2007-12-31 03:19:29

Nc_Zer0
Member
From: RPC
Registered: 2007-12-28
Posts: 10
Website

Re: [SOLVED]export sth in __xmonad__ with gdm

thank you,i will try it!
and also,i do it in my way:
and it works well
1.edit the xmonad.desktop
change the' /home/user/bin/xmonad'
to
'/home/user/bin/xmonad_run'
2.edit the 'xmonad_run 'like this
(don't forget to '+x')

#!/bin/bash
export xxxx=xxx
...
#my player
sonata
#urxvt
urxvt ~tr &
...
#xmonad
exec /home/user/bin/xmonad

and,i will have a try of the 'buttons' way!
because it's more safe for a pc!
it's not need the root!

thank you,buttons

Last edited by Nc_Zer0 (2008-01-01 05:21:31)


Sorry for my English.

{:-> Doo net hin gand doi tw ell!  _Unix
My site:enjoy4fun.cn

Offline

Board footer

Powered by FluxBB