View previous topic :: View next topic |
Author |
Message |
A Hired Goon n00b
Joined: 25 Apr 2004 Posts: 66 Location: Alberta, Canada
|
Posted: Fri Aug 08, 2008 3:39 am Post subject: aterm placement control in fluxbox |
|
|
Objective: Have an aterm entry in fluxbox to start a terminal window in a certain location
Notes: I have only tested this with aterm. xterm may work, YMMV.
Files edited:
~/.fluxbox/apps
~/.Xdefaults (optional)
~/.fluxbox/menu
Alternative: My aterm options are set via .Xdefaults file. You can do them on the command line from the menu, but it can get messy depending on your configuration.
Short Version:
Think of cool terminal window name. Create an entry using said name in your .fluxbox/apps file. Launch aterm with the -name $MY_COOL_TERM_NAME. Alter apps file to configure how fluxbox shows $MY_COOL_TERM_NAME when run.
Long Version
1. Decide how many terminals you want (I chose 4) and names you will use to identify them (eg atermTR atermBR atermTL atermBL)
2. Open up your .fluxbox/apps file and create entries for each terminal:
Code: |
[app] (name=atermTR)
[Dimensions] {900 756}
[Position] (UPPERLEFT) {1281 0}
[Deco] {NONE}
[end]
|
The key points are the name=$TERM_NAME and [Position] (UPPERLEFT) {X Y}
The second field (UPPERLEFT) defines where the points are referenced from. Other modes are available, modify your coordinates accordingly.
Other options are optional I cloned my original aterm entry as it had the features I like.
3. Open your .Xdefaults files (Optional Step)
Code: |
atermTR*transparent:true
atermTR*transpscrollbar:true
atermTR*fading:80
atermTR*loginShell:true
atermTR*saveLines:32767
atermTR*colorBDMode: on
atermTR*boldMode: on
atermTR*scrollBar: off
# Brighter Colors
atermTR*color0: console_black
atermTR*color1: console_red
atermTR*color2: console_green
atermTR*color3: console_yellow
atermTR*color4: console_blue
atermTR*color5: console_magenta
atermTR*color6: console_cyan
atermTR*color7: #ffffff
atermTR*color8: console_bright_black
atermTR*color9: console_bright_red
atermTR*color10: console_bright_green
atermTR*color11: console_bright_yellow
atermTR*color12: #4186be
atermTR*color13: console_bright_magenta
atermTR*color14: console_bright_cyan
atermTR*color15: console_bright_white
atermTR*background: #000000
atermTR*foreground: #06d73b
|
EACH terminal needs corresponding entries. In my case I have 5 listings, aterm, atermTR, atermBR, atermTL, atermBL. Copy-paste and search-replace are your friends
NONE of these options are needed for this to work. This is to ensure that our location controlled terminals have the same settings as my regular aterm window.
4. Open you .fluxbox/menu
Code: |
[exec[ (aterm TR) {aterm -name atermTR}
|
Key is the -name $NAME portion.
Create an entry for each of your terminals. You may wish to put positional terminals in a folder below your regular one.
5a. If you use the .Xdefaults method, you will probably have to restart X as I believe this file is read upon X startup.
5b. Reload your fluxbox config (via fluxbox menu). If you used .Xdefaults restart X will accomplish this already.
6. DONE
Try your menu entries out and see the wonders of controlled terminal placement. Positions can be changed via the apps file and a fluxbox config reload.
Additional Tricks:
I prefer manually editing the apps file, but there is another way. Launch your aterm with the -name flag. Within the window option menu (right click menu bar) you can have it remember position, sticky etc. Toggling these creates the file entries for you.
AHG |
|
Back to top |
|
|
Insulator n00b
Joined: 21 Mar 2005 Posts: 28 Location: Australia
|
Posted: Sat Aug 09, 2008 3:36 am Post subject: |
|
|
Or you can launch using the -geometry (-g) option.
I launch with, among other options:
aterm -g 100x52+5-5
First number is number of characters wide.
Second number is number of lines high.
Third and fourth numbers are x & y location of the window.
Positive is distance from top of screen, negative is distance from bottom of screen.
Works for me, aterm version 1.00.01. |
|
Back to top |
|
|
A Hired Goon n00b
Joined: 25 Apr 2004 Posts: 66 Location: Alberta, Canada
|
Posted: Sat Aug 09, 2008 7:01 pm Post subject: |
|
|
Insulator wrote: | Or you can launch using the -geometry (-g) option.
I launch with, among other options:
aterm -g 100x52+5-5
First number is number of characters wide.
Second number is number of lines high.
Third and fourth numbers are x & y location of the window.
Positive is distance from top of screen, negative is distance from bottom of screen.
Works for me, aterm version 1.00.01. |
I didnt realize the geometry option included window position. The man pages seem to suggest sizing only.
Thanks for the tip Insulator. much appreciated.
AHG |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|