2010-11-23 3 views
1

화면의 특정 위치에 특정 크기의 터미널 집합을 시작하도록 스크립트를 작성하려고합니다 (예 : 네 개의 터미널이 각각의 활성 모눈 모델에서 내 화면에 퍼져 있음). 이 작업을 수행 할 수있는 도구가 이미 있다면 그것은 너무 좋을 것입니다 ... 어떤 제안입니까? https://github.com/achiu/terminitor특정 방식으로 단말기를 시작 하시겠습니까?

불행하게도, 그것은 (단지 OS X 및 Konsole을) 아직 그놈 터미널을 지원하지 않습니다

+2

타일링 창 관리자를 사용하지 않는 이유는 무엇입니까? http://dwm.suckless.org – cthom06

+0

@ cthom06 : +1 흥미로운 것 같습니다. 나는 그것을 들여다 볼 것이다. 고맙습니다. – Legend

답변

3

내가 더 잘 답변이있을 것이라 확신하지만 유용했던 한 가지는이 있었다 :

: 내 대형 모니터에 따라서

gnome-terminal --geometry=130x25+20+525

는 나에게이 개 좋은 단말기를주고 다음

-geometry WIDTHxHEIGHT+XOFF+YOFF 

    (where WIDTH, HEIGHT, XOFF, 
    and YOFF are numbers) for specifying a preferred size and location for 
    this application's main window. 

    The WIDTH and HEIGHT parts of the geometry specification are usually 
    measured in either pixels or characters, depending on the application. 
    The XOFF and YOFF parts are measured in pixels and are used to specify 
    the distance of the window from the left or right and top and bottom 
    edges of the screen, respectively. Both types of offsets are measured 
    from the indicated edge of the screen to the corresponding edge of the 
    window. The X offset may be specified in the following ways: 

    +XOFF The left edge of the window is to be placed XOFF pixels in from 
      the left edge of the screen (i.e., the X coordinate of the win- 
      dow's origin will be XOFF). XOFF may be negative, in which 
      case the window's left edge will be off the screen. 

    -XOFF The right edge of the window is to be placed XOFF pixels in 
      from the right edge of the screen. XOFF may be negative, in 
      which case the window's right edge will be off the screen. 

    The Y offset has similar meanings: 

    +YOFF The top edge of the window is to be YOFF pixels below the top 
      edge of the screen (i.e., the Y coordinate of the window's ori- 
      gin will be YOFF). YOFF may be negative, in which case the 
      window's top edge will be off the screen. 

    -YOFF The bottom edge of the window is to be YOFF pixels above the 
      bottom edge of the screen. YOFF may be negative, in which case 
      the window's bottom edge will be off the screen. 
:
#!/bin/sh 

gnome-terminal --geometry=150x125+20+25 
gnome-terminal --geometry=150x125+1020+25 

그리고 다음은 빠른 참조에 대한 man page의 설명이다3210

이 방법은 매우 간단하고이 같은 명령을 사용하는 것입니다 : 위의 명령에 추가

gnome-terminal -x sh -c "ls|less"

, 하나의 예를 들어 : 더 멋진 일을 할 수있다, 당신은에 자신을 발사 할 수있다 특정 디렉토리 (한 창에서 소스 코드를 편집하고 다른 창을 사용하여 디버깅하는 경우 매우 유용합니다).

+0

음수 값이 작동하지 않습니다. 나는'gnome-terminal -geometry = 120x38 + 11-10'을 시도했으나 -10은 창을 맨 아래 가장자리에 맞추어 놓습니다. - 10 같은 일을합니다. + -10은 똑같은 일을합니다. 나는 논리조차도 이해할 수 없다. 어쩌면 문법이 잘못되었을 수도 있습니다. – Costa

1

Terminitor이를 해결하는 프로젝트입니다.

+0

+1 감사합니다. 나는 지금 그것을 조사하고있다. – Legend

관련 문제