LinuxGSM icon indicating copy to clipboard operation
LinuxGSM copied to clipboard

[FEATURE REQUEST] setting the tmux dimension at launch

Open TechNZ opened this issue 9 years ago • 18 comments

currently LGSM has no way to specify the dimensions of new tmux sessions, and as such spawns detached sessions @ 80x23.

at the moment i have only found 2 ways to remedy this, either modifying the command_start.sh file to include -x and -y, this works but is overwritted when when LGSM updates this function.

the other method i found is to create a simple bash script to act as a shim for the tmux command, this works but with some games, permission errors can arise.

im not sure on the exact reason behind the permission problem, however i have only noticed it with arma3 so far, tf2 seems unphased by it.

so long story short, can we have the ability to set the detached sessions width and height at session start, either by a variable in the lgsm script, or even a system wide variable.

TechNZ avatar Apr 09 '17 05:04 TechNZ

Need more context.

Why is it that your tmux, or lgsm for that matter, NEEDS to be remedied from this default behavior?

cedarlug avatar Apr 09 '17 12:04 cedarlug

My apologies, i should have been more detailed. Without setting the size at session creation, there is no way to resize the pane without physically opening and attaching to the pane.

This makes it very annoying for anyone attempting to query the server console using "tmux capture-pane", as every time the pane is created (at session start or restart) the size defaults back to 80x23

In my case this is for a simple web UI, but im sure that other people have other reasons for querying the pane contents.

Please see the attached pictures for comparisons of a default 80x23 session and a 104x23 session default_dimensions specific_dimensions

TechNZ avatar Apr 09 '17 19:04 TechNZ

please ignore, have created a pull request with this functionality.

TechNZ avatar Apr 10 '17 19:04 TechNZ

Nice web interface btw. I would be very interested in seeing the code for this :)

dgibbs64 avatar Apr 12 '17 15:04 dgibbs64

the code is a wee bit messy as i usually code for internal use only, but im sure i could get a git setup for it.

TechNZ avatar Apr 12 '17 19:04 TechNZ

Yeah that would be good. It looks interesting and im sure there would be people interested in playing with that. :)

dgibbs64 avatar Apr 12 '17 19:04 dgibbs64

@dgibbs64 i will be pushing it into https://github.com/TechNZ/LinuxGSM-WebUI after work tonight once i have done a little bit of work removing some of the sensitive data.

TechNZ avatar Apr 12 '17 19:04 TechNZ

@TechNZ nice one 👍

dgibbs64 avatar Apr 16 '17 00:04 dgibbs64

Faced some problems @TechNZ ?

derklompi avatar Apr 18 '17 17:04 derklompi

got busy with work and preparing to move house, have tomorrow off so will get the rest of the WebUI up, next project i want to do is a full feature WebUI including installer and basic configuration functionality, but not finding th etime to devote to it at the moment.

TechNZ avatar Apr 18 '17 20:04 TechNZ

Thanks for the info and good luck with the house moving then^^

derklompi avatar Apr 18 '17 21:04 derklompi

Ping me if you want a hand, I'm pretty good at packaging releases :)

jaredballou avatar Apr 19 '17 20:04 jaredballou

Any updates on this? Placing in Waiting response.

dgibbs64 avatar Jun 16 '18 14:06 dgibbs64

Isn't that already implemented? I remember seing width and so on in tmux start commands. Maybe we should add the variables to config files now.

UltimateByte avatar Jun 16 '18 18:06 UltimateByte

I think it might be but I cant remember. Not sure if there is a requirement to add variables

dgibbs64 avatar Jun 16 '18 18:06 dgibbs64

sessionheight
sessionwidth

https://github.com/GameServerManagers/LinuxGSM/blob/master/lgsm/functions/command_start.sh#L68-L109

GitHub
LinuxGSM - Linux Game Server Managers_

UltimateByte avatar Jun 16 '18 18:06 UltimateByte

This issue has been automatically closed because there has been no response to this issue and is now stale.

no-response[bot] avatar Jul 18 '18 20:07 no-response[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Jul 21 '19 00:07 lock[bot]