Re: How to open a window at login with specific attributes?



You can do all of this (except sticky) with Eterm.  Following is a MAIN file
for an Eterm theme which is translucent.
HTH

<Eterm-0.8>
# ^- This must be the first line of any Eterm config file!
# Format is:  <Eterm-VERSION>  where VERSION is replaced by
#                              the version it was written for,
#                              minus the "DR-" if any.
#
# This is a sample Eterm config file.  It should be placed in
# ~/.Eterm/themes/Eterm/MAIN and modified to suit your needs
#
# As always, the authors guarantee absolutely nothing and take
# no responsibility for anything that might happen to you, your
# computer, your dog, your sex life, or anyone or anything else
# directly or indirectly through the use of, or inability to use,
# this program.  Use at your OWN risk.

# A begin to get things started.
begin main

# Define the color properties
  begin color

# Foreground, background, cursor, scrollbar, pointer colors
    foreground white
    background black
    cursor #ffff00
    cursor_text #880000
    menu_text white
    unfocusedscrollbar #777777
    scrollbar #777777
    pointer white
 shade 20

# video attribute can either be "normal" or "reverse"
    video normal

# Redefine the 16 basic colors, if you really feel the need
# First word is "color", next is the number (0-15, BD, or UL),
# then the values for red, green, and blue separated by spaces
# Numbers are base 10 unless preceded by "0x" (base 16) or '0'
# (base 8).  Alternatively, you can use color names or #xxxxxx
# format.

# This ends the color section.  Any text after the word "end" is
# assumed to be a comment and ignored.
  end color

# The X11 attributes section.  Should be fairly self-explanatory,
# but if not, consult the X man page.
  begin attributes

# Geometry == widthxheight+x_offset+y_offset, offsets from top left
#             if +, bottom right if -
#    geometry 132x50+100+100
#    title %appname()
    name %appname()
#    iconname Eterm

# Set the fonts.  These must be monospace fonts.  The values shown are
# the Eterm defaults.  The "bold" font is the font used if color BD has
# not been set and Eterm cannot map the foreground color to one of the
# high-intensity colors (8-15).
    font 0 fixed
    font 1 6x10
    font 2 6x13
    font 3 8x13
    font 4 9x15
#    font bold 7x14
  end attributes

# This section is for pixmap definitions.  The only one used currently
# is "background".  The supplied numbers work just like they do for
# Enlightenment:  first is X (width), second is Y (height).  -1 to
# scale 100%, 0 to tile, any other number specifies W/H in pixels
#  begin pixmaps
#     background %random(`cat pixmaps.list 2>/dev/null`)
#     path
#"./pix/:~/.Eterm/:~/.Eterm/themes/Eterm/pix:~/.Eterm/pix/:/usr/share/Eterm/
pix/"

# Support for these is forthcoming
#  end

# The Kanji support options.  Same goes for these fonts as for the normal
# ones.  The "encoding" attribute can be either "eucj" or "sjis".
#  begin kanji
#    font 0 k14
#    font 1 jiskan16
#    font 2 jiskan18
#    font 3 jiskan24
#    font 4 jiskan26
#    encoding eucj
#  end kanji

# Boolean variables.  The values can be "1", "on", or "true" for TRUE, or
"0",
# "off", or "false" for FALSE.
  begin toggles

# If true, Eterm will un-iconify itself when it receives a beep (ASCII 0x07)
    map_alert on

# If true, Eterm will flash rather than sending a beep.
    visual_bell off

# If true, Eterm will prepend '-' to the shell name when calling it.
    login_shell true

# If true, Eterm will display the scroll bar
    scrollbar off

# If true, Eterm will display the menu bar
    menubar off

# If true, Eterm window can be moved with the menu bar.
    menubar_move on

# If true, Eterm will attempt to make an entry in the utmp file to record
the
# login information.  Eterm *must* run privileged to do this.
    utmp_logging on

# If true, Eterm will handle the Meta (Alt) + keypress to set the 8th bit.
# If false, Eterm will handle the Meta + keypress as an escape prefix.
(default)
#    meta8 false

# If true, Eterm will start iconified.
    iconic false

# If true, Eterm will jump to the bottom of the window when something is
echoed
# to the terminal, either by program output or user input.
    home_on_echo 1

# If true, Eterm will jump to the bottom of the window when you refresh the
# screen (^L).
    home_on_refresh 1

# If true, Eterm will put the scrollbar on the right of the window (default
is left).
    scrollbar_right true

# If true, the scrollbar will have no trough.
    scrollbar_floating true

# If true, Eterm will run with no window borders.
    borderless true

 trans true

  end toggles

  begin keyboard

# Use the supplied keysym to reduce/enlarge the font
    smallfont_key LessThan
    bigfont_key GreaterThan

# You can also associate a given keysym (0xff00 - 0xffff) with a string
#    keysym 0xffff "\r\n\e\007\t"

# Greek keyboard mode.  First the word "greek", then its boolean
# state, then its mode (either "iso" or "ibm").
#    greek off iso
  end keyboard

  begin misc

# The command to which to pipe print requests (printscreen)
#    print_pipe "lpr"

# The number of lines in the scrollback buffer.  More lines, more memory
needed.
    save_lines 1024

# The characters to use as word delimiters for double-click selection
    cut_chars "\t\\\`\\\"\'&() *,;<=>?@[]{|}"

# Defines the width of the border between the terminal window and the client
window.
# (Default is 5).
    border_width 5


# Value to use for $TERM
    term_name color_xterm

# Program to exec (intended for use with themes)
#    exec foo

  end misc

end main

-----Original Message-----
From: Yan Seiner <yan@cardinalengineering.com>
To: gnome-list@gnome.org <gnome-list@gnome.org>
Date: Thursday, July 13, 2000 7:04 PM
Subject: How to open a window at login with specific attributes?


>Here's what I'm trying to do:
>
>open a gnome-terminal window on login that
>
>a) has no frame
>b) has no menu bar
>c) has a translucent background that's shaded
>d) appears in a specific location
>e) is sticky
>and f) runs a specified command.
>
>I can't even get past a) - if I set up a gnome terminal with all these
>attributes, all later terms open with the same attributes, which is not
>what I want.
>
>Are there cli options for this?  How do I spec a translucent color?
>
>Any help is appreciated....  Sorry for the newbie questions... I'm new
>to X/gnome (but not *nix...)
>
>--Yan
>
>_______________________________________________
>gnome-list mailing list
>gnome-list@gnome.org
>http://mail.gnome.org/mailman/listinfo/gnome-list
>





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]