xinitrc in libranet? how do i execute a command on x startup?
how do i execute a command on startup of X from the graphical GDM login?
I've tried adding it to my personal ~/.xinitrc and to the global /etc/X11/xinit/xinitrc, .xsession, but Libranet seems to ignore them. I want to add xmodmap and imwheel lines to execute when x starts, preferably for all users and all WMs, and load a module and mounts at startup. The .bashrc is fine for a kludge, but only works for commands that can be done over and over again, because it does them every time I start bash. So if i want to change my sound settings, they are reset when I open a konsole. I found a slightly better solution, of creating a startup.sh script in my ~/.kde/Autostart directory, so that it starts when KDE starts, but not for other WMs, and I don't know how to load a module with it. |
I use gdm for a login manager instead of kdm like you. With gmd you need to choose custom login, then it will source my .xsession file. If I do not choose custom login it will ignore my .xsession file At the kdm login screan choose custom login, assuming it has that option. Below is what I have in my .xsession if you care to look.
Code:
#!/bin/bash |
Quote:
also, how would i switch to kdm? (since i use kde all the time and gnome never) |
sorry that was kind of unclear. When you are at your login screen for kdm(kde), you should be able to choose what session you want. There might be an option for custom session, among other window managers.
|
well I am using GDM. i can select which session i want, like a KDE session or a fluxbox session. that doesn't have anything to do with xsession i don't think.
|
are you sure that "custom" session is not available?
|
Quote:
|
All times are GMT -5. The time now is 02:45 AM. |