You are not logged in.
Pages: 1
Hello,
i want to use every zsh in screen, how can I do that. I use Xmonad en zsh and want to manage every screen/terminal/app on my desktop.
Thank you
Offline
I'm sorry, your question is a little confusing.
Is Zsh your "default shell"?
http://wiki.archlinux.org/index.php/Zsh … ault_shell
chsh -s `which zsh`
Is that good?
Offline
Yes
Offline
I want screen as default shell
Offline
Look if there is a file /home/your-user-name/.screenrc and if there is a line like "shell bash" in it. If there is such a line, change bash (or whatver there is) to /bin/zsh
I'm just guessing what you mean though, so dunno if this is what you meant.
Ogion
(my-dotfiles)
"People willing to trade their freedom for temporary security deserve neither and will lose both." - Benjamin Franklin
"Enlightenment is man's leaving his self-caused immaturity." - Immanuel Kant
Offline
Oh! You want to automatically start "screen" when you use a terminal window, right? Good idea. Me too.
But, I don't know how to do it.
Maybe somebody else knows how to do it...
Offline
in your bashrc or zshrc you can test for $STY.
[ $STY ] || screen
Offline
In ".zshrc":
[ $STY ] || screen
It works! Thank you.
Kansl, is that a good answer?
Offline
In ".zshrc":
[ $STY ] || screen
It works! Thank you.
Kansl, is that a good answer?
It works when I login on my TTY, when I logged in I get screen, but when I start X, screen disappeared .
In X, I get a normal terminal (urxvtc) as configured in Xmonad, so no, this is not my answer...
Offline
drcouzelis wrote:In ".zshrc":
[ $STY ] || screen
It works! Thank you.
Kansl, is that a good answer?
It works when I login on my TTY, when I logged in I get screen, but when I start X, screen disappeared .
In X, I get a normal terminal (urxvtc) as configured in Xmonad, so no, this is not my answer...
If you're using a menu in Xmonad to start a terminal it's probably using whatever terminal app is in it's config file, not your default as you've previously set up. You need to modify Xmonad's configuration files to use screen instead of urxvtc.
Last edited by codycarey (2010-09-13 02:21:23)
Offline
Put unset STY in your .xinitrc
The same thing will happen if you start a terminal from within screen. The environment has STY and will pass it to the new terminal, bashrc finds it and won't start screen.
In this case all of X has the STY variable set.
Another option is to launch X before you launch screen in your bashrc, checking for the DISPLAY variable in similar fashion.
Offline
Pages: 1