Re: [hackers] [st] startup options

2015-11-25 Thread Gregor Best
On Wed, Nov 25, 2015 at 12:38:22AM +0100, Rashad Kanavath wrote:
> [...]
> There is patch to enable scrolling in st [2]. Is it important to apply this
> patch if I use tmux.?
> [...]

No.

> The issue I had using st+tmux or screen is that, 
> I need to run the command every time.
> 
> 
>  `st -e tmux` using C-b [
> [...]

C-b PageUp and C-b PageDown will also enter copy mode. If you add

set mouse on

to your ~/.tmux.conf, you can use the mouse scroll wheel for that.

> 
> Is there anyway I can run st with tmux or screen by default without the scroll
> patch in[2]  ?
> [...]

If i recall that correctly, tmux supports being your login shell.
If you _always_ want to have tmux running, you can use chsh -s
/usr/bin/tmux to change your shell to it. I just have

st -e /bin/sh -c "tmux attach"

in my "gimme a shell" binding. My ~/.tmux.conf contains

new-session -s g

which causes tmux to create a new session named 'g' if I try to
attach and it's not already running.

-- 
Gregor



Re: [hackers] [st] startup options

2015-11-25 Thread Roberto E. Vargas Caballero
> Mainly I want scroll when compiling. It print a lot of information and
> warnings. And I want to read them clearly without interrupting my
> compilation. Other than that I don't use scrolling much.
> 
> ofcourse, i can redirect std err to a log file and see it. But when I run
> "make" I need to redirect it to a file and then tail that file. I would be
> glad if there is some other workaround.

Do you know what is a pager? Maybe you could use something more or less
(pun intended)




Re: [hackers] [st] startup options

2015-11-25 Thread Ivan Tham

I use st with the scrollback patch with mouse support. I hope that it
can be without shift but I doesn't know how to do it.

--
_
< Do what you like, like what you do. >
-
   \   ^__^
\  (oo)\___
   (__)\   )\/\
   ||w |
   || ||



Re: [hackers] [st] startup options

2015-11-25 Thread Rashad Kanavath
On Wed, Nov 25, 2015 at 7:23 AM, David Phillips 
wrote:

> Me, I use dvtm(1) instead of tmux, and I only have my dwm config set
> to run st with a dvtm session inside. This way, I can manually start
> st without dvtm by asking for `st` from dmenu or another terminal. I
> suppose it's a matter of personal taste, but when I run 'st' I don't
> want dvtm or tmux. If I want them I'll ask for them by specifying such
> (but I know this goes against the OP's question), or by pressing the
> appropriate dwm hotkey
>

Mainly I want scroll when compiling. It print a lot of information and
warnings. And I want to read them clearly without interrupting my
compilation. Other than that I don't use scrolling much.

ofcourse, i can redirect std err to a log file and see it. But when I run
"make" I need to redirect it to a file and then tail that file. I would be
glad if there is some other workaround.

>
> This feature may rub some people up the wrong way, but it's just more
> food for thought.
>
>


-- 
Regards,
   Rashad


Re: [hackers] [st] startup options

2015-11-24 Thread David Phillips
Me, I use dvtm(1) instead of tmux, and I only have my dwm config set
to run st with a dvtm session inside. This way, I can manually start
st without dvtm by asking for `st` from dmenu or another terminal. I
suppose it's a matter of personal taste, but when I run 'st' I don't
want dvtm or tmux. If I want them I'll ask for them by specifying such
(but I know this goes against the OP's question), or by pressing the
appropriate dwm hotkey

This feature may rub some people up the wrong way, but it's just more
food for thought.



Re: [hackers] [st] startup options

2015-11-24 Thread Eric Pruitt
On Wed, Nov 25, 2015 at 12:38:22AM +0100, Rashad Kanavath wrote:
> Is there anyway I can run st with tmux or screen by default without the
> scroll patch in[2]  ?

I use tmux or screen regardless of the terminal emulator I use, so I
launch tmux as part of bashrc. The simplest way to do this would be to
have something like this in your shell initialization script:

if [ -z "$TMUX" ]; then
tmux && exit
fi

I recommend doing the "&& exit" so if tmux isn't installed or is
otherwise broken, you'll still land in a functioning shell.

Eric



[hackers] [st] startup options

2015-11-24 Thread Rashad Kanavath
Hello,
I am fairly new to suckless community. I was using dwm for an year. But now
I started using st and surf. So I hope my newbie question will be well
answered.

According to the FAQ page[1], I should use screen or tmux to enable
scrolling. Now I had compiled and installed st on my dwm window manager.

Scrolling is important for me and especially the ability to scroll while
its printing console at the same time.

There is patch to enable scrolling in st [2]. Is it important to apply this
patch if I use tmux.?

The issue I had using st+tmux or screen is that,
I need to run the command every time.

 `st -e tmux` using C-b [


Is there anyway I can run st with tmux or screen by default without the
scroll patch in[2]  ?

I don't like the scrolling experience I had with the scrollback patch.

http://st.suckless.org/patches/scrollback


[1] http://git.suckless.org/st/tree/FAQ
[2] http://st.suckless.org/patches/scrollback

-- 
Regards,
   Rashad