Topic: post your ~/.Xdefaults file

just curious what everyone's got in theirs.  while you're at it, post your .profile, .login, .*rc files too!  it's always interesting to see other peoples', and helpful to steal some of their customizations smile.

I'll post mine when I get home from work later tonight smile.

Re: post your ~/.Xdefaults file

i just reinstalled, they dont get any more stock than mine. wink

[ quote=lucas ]who wants to use sco unix?

if i were faced with either sco unix or linux, i'd shoot myself in the face[ /quote ]

3

Re: post your ~/.Xdefaults file

*.vt100.font: fixed
*.vt100.encodingMode: locale

XTerm*faceName:             xft: Bitstream Vera Sans Mono:pixelsize=10
XTerm*background:           #3d3d3d
XTerm*foreground:           #e1e1e1
XTerm*scrollBar:            false
XTerm*colorMode:            on
XTerm*dynamicColors:        on
XTerm*highlightSelection:   false
XTerm*eightBitInput:        false
XTerm*metaSendsEscape:      false
XTerm*saveLines:            1500

XTerm*color0:           #000000
XTerm*color1:           #ff0000
XTerm*color2:           #69ad69
XTerm*color3:           #999700
XTerm*color4:           #506cc8
XTerm*color5:           #9a70b2
XTerm*color6:           #1d999a
XTerm*color7:           #b0b0b0
XTerm*color8:           #3c3c3c
XTerm*color9:           #ff0000
XTerm*color10:          #69ad69
XTerm*color11:          #b9ae00
XTerm*color12:          #7f9af1
XTerm*color13:          #ad73ba
XTerm*color14:          #338eaa
XTerm*color15:          #f4f4f4
XTerm*colorBD:          #ffffff

Re: post your ~/.Xdefaults file

I dont use a .Xdefaults file and my .kshrc is pretty much stock, but here's my .zshrc just for kicks.

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:$HOME/bin:$HOME/scripts; export PATH


cdpath=(.. ~ ~/src ~/zsh)
export TERM=xterm-color
unlimit
limit stack 8192
limit core 0
limit -s

umask 022

alias mv='nocorrect mv'
alias cp='nocorrect cp'
alias mkdir='nocorrect mkdir'
alias j='jobs'
alias pu='pushd'
alias po='popd'
alias d='dirs -v'
alias h='history'
alias grep='egrep'
alias ll='colorls -laGh'
alias la='colorls -Gah'
alias ls='colorls -Gh'
alias c='clear'
alias x='exit'
alias vi='vim'
alias startx='startx -- -nolisten tcp'
alias lsd='colorls -ld *(-/DN)'
alias lsa='colorls -ld .*'

setenv() { typeset -x "${1}${1:+=}${(@)argv[2,$#]}" }  # csh compatibility
freload() { while (( $# )); do; unfunction $1; autoload -U $1; shift; done }

fpath=($fpath ~/.zfunc)

for func in $^fpath/*(N-.x:t); autoload $func

typeset -U path cdpath fpath manpath

alias -g M='|more'
alias -g H='|head'
alias -g T='|tail'
alias -g G='|grep'
alias -g L='|less'
manpath=($X11HOME/man /usr/man /usr/lang/man /usr/local/man)
export MANPATH

hosts=(`hostname` kernelpanicked.net apollo.propagation.net 24.0.50.111 scrapshells.com)

PROMPT=$'{%{\e[1;32m%}%n@%m%{\e[0m%}}$ '

export MAIL=/var/mail/$USERNAME
export HELPDIR=/usr/local/lib/zsh/help

MAILCHECK=300
HISTSIZE=200
DIRSTACKSIZE=20

watch=(notme)                   # watch for everybody but me
LOGCHECK=300                    # check every 5 min for login/logout activity
WATCHFMT='%n %a %l from %m at %t.'

setopt   notify globdots correct pushdtohome cdablevars autolist
setopt   correctall autocd recexact longlistjobs
setopt   autoresume histignoredups pushdsilent noclobber
setopt   autopushd pushdminus extendedglob rcquotes mailwarning
unsetopt bgnice autoparamslash

zmodload -a zsh/stat stat
zmodload -a zsh/zpty zpty
zmodload -a zsh/zprof zprof
zmodload -ap zsh/mapfile mapfile


bindkey -e
bindkey ' ' magic-space
bindkey '^I' complete-word

autoload -U compinit
compinit


zstyle ':completion:*::::' completer _expand _complete _ignored _approximate

zstyle -e ':completion:*:approximate:*' max-errors \
    'reply=( $(( ($#PREFIX+$#SUFFIX)/3 )) numeric )'

zstyle ':completion:*:expand:*' tag-order all-expansions

zstyle ':completion:*' verbose yes
zstyle ':completion:*:descriptions' format '%B%d%b'
zstyle ':completion:*:messages' format '%d'
zstyle ':completion:*:warnings' format 'No matches for: %d'
zstyle ':completion:*:corrections' format '%B%d (errors: %e)%b'
zstyle ':completion:*' group-name ''

zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'

zstyle ':completion:*:*:-subscript-:*' tag-order indexes parameters

zstyle '*' hosts $hosts

zstyle ':completion:*:*:(^rm):*:*files' ignored-patterns '*?.o' '*?.c~' \
    '*?.old' '*?.pro'

zstyle ':completion:*:functions' ignored-patterns '_*'

fpkg () {
 grep $1 $HOME/.pkg/index.txt
 }

ipkg () {
 sudo pkg_add -v ftp://ftp.usa.openbsd.org/pub/OpenBSD/snapshots/packages/i386/$1
 }
freenode () {
 BitchX -A kernelpanicked irc.freenode.net
}

{
taucher ()
  BitchX -A kernelpanicked  chat.taucher.net
}

{
burn ()
  sudo cdrecord -v dev=/dev/rcd0a -pad -data $1
}
... and then they said "I bet you can't make MINIX kernel panic!!!" And that's when I got mad

Re: post your ~/.Xdefaults file

.fvwmrc  works for OpenBSD's modified fvwm2 only (OpenBSD's default window manager).

##########################################################################
# FVWM - F? Virtual Window Manager, Version 2.x (fvwm2) Configuration File
# Created April 1996
#

##########################################################################
# PATH Setup 
#
# Not normally needed; use configure to set defaults at compile time.  
#
# IMPORTANT: if you decide to set a ModulePath, please note that modules
#            are normally installed into a version-dependent
#         directory.  Be sure to update this file after installing
#         a new version.
#
# Colon seperated unix directory paths for Modules, xpm files, and bitmaps
#ModulePath /usr/local/libexec/fvwm/2.x.y
#PixmapPath /usr/include/X11/pixmaps:/usr/local/include/X11/pixmaps
#IconPath   /usr/include/X11/bitmaps

############################################################################
# COLORS and FONTS
#
# Set the fore and back border colors for the window that has focus
HilightColor        linen SteelBlue4

# Set fore/back border colors for all other windows 
Style "*" Color linen/VioletRed4

# Set colors/font for pop-up menus
# Syntax: MenuStyle forecolor backcolor shadecolor font style(fvwm/mwm)
#MenuStyle maroon grey60 grey40 -adobe-times-bold-r-*-*-14-*-*-*-*-*-*-* fvwm
#MenuStyle black grey slategrey 7x13bold fvwm
MenuStyle linen SteelBlue4 linen 9x15 fvwm

# Set fonts to use on title bar and icon label
WindowFont              9x15
# WindowFont              -adobe-times-bold-r-*-*-18-*-*-*-*-*-*-*
IconFont                9x15
# IconFont                -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*

############################################################################
# ICON Setup
#
# Auto Place Icons is a nice feature (Left Top Right Bottom)
Style "*" IconBox -215 200 -1 -100 

# If you don't want icons for some or all windows (or all of them!)
# Style "*" NoIcon

# If you want ALL icons to follow you around the desktop (Sticky)
#Style "*" StickyIcon

############################################################################
# FOCUS Setup
#
# Does the window with focus control the colormap, or the one under the mouse
# ColormapFocus FollowsFocus
# ColormapFocus FollowsMouse

# Uncomment this to force you to click in a window to give it focus
#Style "*" ClickToFocus

# default: focus follows mouse
#Style "*" MouseFocus

# If you knock your mouse out of the xterm, it keeps focus while in root window
Style "*term"        SloppyFocus

############################################################################
# MISC Setup
#
# click/release must occur in <n milliseconds to be a "click"
ClickTime 250

# if the window occupies less than n% of the screen, draw it opaque
OpaqueMoveSize 5

# flip by whole pages on the edge of the screen, but delay for a half second
EdgeScroll 100 100
EdgeResistance 500 20

# MWM Emulation: Don't ignore hints for functions and transient decoration
Style "*" MWMFunctions, MWMDecor

# Changes the look of the "rubberband" you see when moving windows (0 - 255)
#XORvalue 100

###########################################################################
# PAGER Setup
#
# set the desk top size in units of physical screen size (width x height)
DeskTopSize 3 3

############################################################################
# WINDOW Placement
#
# SmartPlacement makes new windows pop-up in blank regions of screen 
Style "*" SmartPlacement

# If SmartPlacement fails, this places it randomly instead of making you do it
Style "*" RandomPlacement

############################################################################
# STYLE Flag Setup
#
# (decorations and window options) 
# Note: Order is important!! If compatible styles are set, styles are ORed
# together. If conflicting styles are set, the last one specified is used.

# change the default width, set a global icon, and give borders to popups
Style "*" BorderWidth 7, HandleWidth 7, Icon x.xpm, DecorateTransient

Style "Fvwm*"        NoTitle, Sticky, WindowListSkip
Style "*lock"        NoTitle, Sticky, WindowListSkip
Style "xbiff"        NoTitle, Sticky, WindowListSkip
Style "xload"        NoTitle, Sticky, WindowListSkip, ClickToFocus
Style "xsession"    NoTitle, Sticky, WindowListSkip, ClickToFocus
Style "xconsole"    NoTitle, Sticky, WindowListSkip, ClickToFocus
Style "xfsm"        NoTitle, Sticky, WindowListSkip, ClickToFocus
Style "xdaliclock"    NoTitle, Sticky, WindowListSkip, ClickToFocus
Style "FvwmButtons"    ClickToFocus
Style "Time 3D"        NoTitle, Sticky
Style "*term"        Icon NeXT.xpm
Style "xcalc"        Icon xcalc.xpm
Style "xbiff"        Icon mail1.xpm
Style "xman"        Icon xman.xpm
Style "Demineur"    Icon jolifond.xpm
Style "xneko"        Icon xnekocat.xpm
Style "emacs"        NoPPosition
Style "Mosaic"        NoPPosition
Style "xmh"        Icon mail2.xpm StartsOnDesk 2

#############################################################################
# START-UP Functions
#
AddToFunc "InitFunction" "I" Module FvwmButtons
+        "I" Module FvwmPager 0 0
+        "I" Module FvwmAudio
+        "I" Next [!iconic CurrentScreen xterm] Focus
+        "I" CursorMove 30 40

AddToFunc "RestartFunction" "I" Module FvwmButtons
+        "I" Module FvwmPager 0 0
+        "I" Module FvwmAudio
+        "I" Next [!iconic CurrentScreen xterm] Focus
+        "I" CursorMove 30 40

# Uncomment this to make windows auto-raise after [x] milliseconds 
# AddToFunc "InitFunction" "I" Module FvwmAuto 0
Exec    xclock -digital -twelve -update 1 &
Exec     xsetroot -solid Steelblue4 &
############################################################################
# BUTTON Setup
#

## Buttons actually being used (duplicated below)
# small up triangle
ButtonStyle 2 4 50x35@1 65x65@0 35x65@0 50x35@1
# small down triangle
ButtonStyle 4 4 50x65@1 35x35@1 65x35@1 50x65@0
# Stylized X
ButtonStyle 3 16 20x20@1 30x20@1 50x40@1 70x20@1 80x20@1 80x30@0 60x50@0 80x80@0 70x80@0 50x60@0 30x80@0 20x80@0 20x70@0 40x50@1 20x30@0 20x20@1

## Triangles
#
# Small up Triangle
#ButtonStyle * 4 50x35@1 65x65@0 35x65@0 50x35@1
# Small down Triangle
#ButtonStyle * 4 50x65@1 35x35@1 65x35@1 50x65@0
# Large up Triangle
#ButtonStyle 6 4 50x25@1 75x75@0 25x75@0 50x25@1
# Large down Triangle
#ButtonStyle 8 4 50x75@1 25x25@1 75x25@1 50x75@0

## Boxes
#
# Big Box 
#ButtonStyle 0 5 25x25@1 25x75@1 75x75@0 75x25@0 25x25@1
# Little Box
#ButtonStyle 9 5 40x40@1 60x40@1 60x60@0 40x60@0 40x40@1
# Tall Box
#ButtonStyle 7 5 40x25@1 60x25@1 60x75@0 40x75@0 40x25@1
# Dot
#ButtonStyle 5 5 45x45@1 55x45@1 55x55@0 45x55@0 45x45@1
# Big Box with arrow to little box (iconify)
#ButtonStyle 4 14 20x20@1 20x70@1 70x70@0 70x20@0 20x20@1 60x60@0 60x50@0 60x60@0 50x60@0 60x60@0 60x80@0 80x80@0 80x60@0 60x60@0

## X's
#
# Standard X
#ButtonStyle 3 17 20x20@1 30x20@1 50x40@1 70x20@1 80x20@1 80x30@0 60x50@0 80x70@1 80x80@0 70x80@0 50x60@0 30x80@0 20x80@0 20x70@0 40x50@1 20x30@0 20x20@1
# Funky X 
#ButtonStyle 3 13 26x29@1 34x21@1 50x35@1 70x21@1 79x29@1 63x48@0 79x65@1 70x75@0 50x61@0 34x75@0 26x65@0 44x48@1 26x29@0
# Stylized X
#ButtonStyle 3 16 20x20@1 30x20@1 50x40@1 70x20@1 80x20@1 80x30@0 60x50@0 80x80@0 70x80@0 50x60@0 30x80@0 20x80@0 20x70@0 40x50@1 20x30@0 20x20@1

## Lightning Bolts
#
# Small Lightning Bolt (skinny at both ends)
#ButtonStyle 5 7 70x15@0 30x55@1 50x55@0 40x85@1 80x45@0 60x45@1 70x15@0
# Big Lighting Bolt (Fat at top, comes to a point)
#ButtonStyle 6 8 35x15@1 20x50@1 40x50@0 30x80@1 75x40@0 50x40@1 75x15@0 35x15@1

## Miscellaneous Buttons
#
# Nested Right Angles (looks kinda crappy)
#ButtonStyle 5 13 10x0@1 80x0@1 80x10@1 80x80@0 0x80@0 0x60@1 10x65@1 70x65@0 70x0@0 55x0@1 55x10@1 55x55@0 10x55@0
# Nested Right Angles (looks nice)
#ButtonStyle 6 14 0x0@1 0x20@1 20x20@0 20x0@0 0x0@1 0x25@1 25x25@1 25x0@1 55x0@1 55x55@0 0x55@0 0x60@1 60x60@1 60x0@1
# 4 Horizontal bars (sticky)
#ButtonStyle 7 12 10x23@0 90x23@0 90x28@0 10x28@1 10x47@1 90x47@0 90x52@0 10x52@1 10x70@2 90x70@0 90x76@0 10x76@1
# Expanding Windows (iconify -- looks NICE)
#ButtonStyle 8 16 60x40@1 60x80@0 15x80@0 15x40@1 60x40@1 40x40@1 40x25@1 75x25@1 75x60@0 60x60@0 75x60@0 75x40@0 85x40@0 85x15@0 60x15@1 60x25@1

## Arrows Galore
#
# Up Arrow
#ButtonStyle 3 8 40x80@1 40x50@1 20x50@1 50x20@1 80x50@0 60x50@0 60x80@0 40x80@0
# Down Arrow
#ButtonStyle 3 8 40x20@1 40x50@1 20x50@1 50x80@1 80x50@0 60x50@0 60x20@0 40x20@1
# Left arrow  ( <- )
#ButtonStyle 7 8 80x40@1 50x40@1 50x20@1 20x50@1 50x80@0 50x60@0 80x60@0 80x40@0
# Right arrow ( -> )
#ButtonStyle 8 8 20x40@1 50x40@1 50x20@1 80x50@1 50x80@0 50x60@0 20x60@0 20x40@1
# Horizontal Line with arrowheads on left and right ( <-> )
#ButtonStyle * 12 10x50@1 35x25@1 35x40@1 65x40@1 65x25@1 90x50@1 65x75@0 65x60@0 35x60@0 35x75@0 10x50@0 10x50@1
# Vertical Line with arrowheads on top and bottom
#ButtonStyle * 12 50x10@1 25x35@1 40x35@1 40x60@1 25x60@1 50x85@1 75x60@0 60x60@0 60x35@0 75x35@0 50x10@0 50x10@1
# Diagonal Line with arrowheads on top and bottom ( / )
#ButtonStyle 5 11 80x15@1 45x15@1 55x25@1 25x55@1 15x45@1 15x80@1 50x80@0 40x70@0 70x40@0 80x50@0 80x15@0
# Diagonal Line with arrowheads on top and bottom ( \ )
#ButtonStyle 6 12 55x15@0 45x25@0 75x55@0 85x45@0 85x80@0 50x80@0 60x70@1 30x40@1 20x50@1 20x15@1 55x15@1 55x15@0
#
# the number "2"
#ButtonStyle 8 12 80x80@0 22x80@0 80x40@0 70x25@0 30x25@0 20x35@0 20x30@1 30x20@1 70x20@1 80x30@1 20x75@1 80x75@1


##############################################################################
# MENU Setup
#

# This defines the most common window operations
AddToMenu Window-Ops    "Window Ops"    Title
+                       "Move"          Move-or-Raise2
+                       "Resize"        Resize-or-Raise2
+                       "Raise"         Raise
+                       "Lower"         Lower
+                       "(De)Iconify"   Iconify
+                       "(Un)Stick"     Stick
+                       "(Un)Maximize"  maximize_func
+                       ""              Nop
+                       "Delete"        Delete
+                       "Close"         Close
+                       "Destroy"       Destroy
+                       ""              Nop
+                       "Refresh Screen" Refresh

# A trimmed down version of "Window Ops", good for binding to decorations
AddToMenu Window-Ops2   "Move"          Move-or-Raise
+                       "Resize"        Resize-or-Raise
+                       "Raise/Lower"   RaiseLower
+                       "Iconify"       Iconify
+                       "(Un)Stick"     Stick
+                       ""              Nop
+                       "Delete"        Delete
+                       "Close"         Close
+                       "Destroy"       Destroy
+                       ""              Nop
+                       "ScrollBar"     Module FvwmScroll 2 2
+                       "Print"         PrintFunction

AddToMenu FvwmCommands    "Fvwm Commands" Title
+                    "Restart Fvwm2" Restart fvwm2
+            "Fvwm Setup"    Popup FvwmSetup
+             "Fvwm Modules"  Popup FvwmModules
+                    "" Nop
+             "Exit Fvwm"     Quit

AddToMenu FvwmSetup    "Fvwm Setup" Title
+            "Change Scrolling"    Popup FvwmScroll

AddToMenu FvwmScroll    "Change Scroll Behavior" Title
+            "OFF"   EdgeScroll 0 0
+            "ON"    EdgeScroll 100 100
+            "Horizontal Only"       EdgeScroll 100 0
+            "Vertical Only"         EdgeScroll 0 100
+            "Partial"               EdgeScroll 50 50

AddToMenu FvwmModules    "Fvwm Modules" Title
+                       "Pager"         Module  FvwmPager 0 0
+                       "Button-Bar"    Module  FvwmButtons
+                       "WinList"       Module  FvwmWinList
+                       "Identify"      Module  FvwmIdent
+            ""        Nop
+                       "Clean-Up"      Module  FvwmClean
+                       "SaveDesktop"   Module  FvwmSave
+                       "Debug"         Module  FvwmDebug
+                       "Background"    Module  FvwmBacker
+                       "IconBox"       Module  FvwmIconBox
+                       "Banner"        Module  FvwmBanner
+                       "Talk"          Module  FvwmTalk
+                       "Prompt"        Module  FvwmPrompt "hello" raise

# This is the root menu
AddToMenu RootMenu    "Root Menu"    Title
+            "XTerm"        Exec exec xterm -bg black -fg white -ls -T xterm
+            "Firefox"    Exec exec firefox
+            "Nedit"        Exec exec nedit
+            ""        Nop
+            "Internet"    Popup Internet
+            "Office"    Popup Office
+            "Graphics"    Popup Graphics
+            "Multimedia"    Popup Multimedia
+            "Editors"    Popup Editors
+            "Games"        Popup Games
+            "Misc"        Popup Misc
+            ""        Nop
+                       "Utilities"     Popup Utilities
+            ""        Nop
+            "Lock Screen"    Popup XlockMenu
+            "Fvwm Commands"    Popup FvwmCommands
+            "Exit Fvwm"    Popup Quit-Verify

AddToMenu Internet
+            "Internet" Title
+            "Firefox"    Exec exec firefox
+            "Opera"        Exec exec opera
+            "Irssi"        Exec exec xterm -bg navy -fg white -T Irssi -e irssi
+            "Gaim"        Exec exec gaim
+            "Dillo"        Exec exec dillo
+            "Mozilla"    Exec exec mozilla
+            "Lynx"        Exec exec xterm -bg black -fg white -T Lynx -e lynx
+            "taucher.net"     Exec exec xterm -bg navy -fg white -T chat.taucher.net -e irssi -c chat.taucher.net

AddToMenu Graphics
+            "Graphics" Title
+            "gqview"    Exec exec gqview
+            "gimp"        Exec exec gimp
+            "blender"    Exec exec blender

AddToMenu Multimedia
+            "Multimedia" Title
+            "mplayer"    Exec exec gmplayer
+            "xmms"        Exec exec xmms

AddToMenu Editors
+            "Editors" Title
+            "nedit"        Exec exec nedit
+            "vim"        Exec exec xterm -bg black -fg white -T vim -e vim
+            "nano"        Exec exec xterm -bg black -fg white -T nano -e nano

AddToMenu Office
+            "Office" Title
+            "abiword"    Exec exec abiword
+            "lyx"        Exec exec lyx
+            "gnumeric"    Exec exec gnumeric
+            "xpdf"        Exec exec xpdf
+            "xfig"        Exec exec xfig

AddToMenu Games
+            "Games" Title
+            "xconq"        Exec exec xconq
+            "xmahjongg"    Exec exec xmahjongg
+            "lgeneral"    Exec exec lgeneral
+            "xboard"    Exec exec xboard

AddToMenu Misc
+            "Misc" Title
+            "xnc"        Exec exec xnc
+            "mc"        Exec exec xterm -bg black -fg white -T mc -e mc

AddToMenu Utilities     "Utilities" Title
+            "Gkrellm"    Exec exec gkrellm
+            "Top"        Exec exec xterm -T Top -n Top -e top
+            "Calculator"    Exec exec xcalc
+            "Xman"        Exec exec xman
+            "" Nop
+                       "XLock"         Exec exec xlock -mode random
+            ""        Nop
+                       "Reset X defaults" Exec xrdb -load $HOME/.Xdefaults


AddToMenu XlockMenu    "Choose one:" Title
+                    "Flame" Exec xlock -mode flame &
+                    "Pyro" Exec xlock -mode pyro &
+                    "Swarm" Exec xlock -mode swarm &
+                    "Qix" Exec xlock -mode qix &
+                    "Rotor" Exec xlock -mode rotor &
+                    "Worms" Exec xlock -mode worm &
+                    "Blank" Exec xlock -mode blank &
+                    "" Nop
+                    "Matrix" Exec xlock -mode matrix &

############################################################################
# COMPLEX FUNCTIONS
#
AddToFunc warp-or-run        "I" Next [$0 CirculateHit] Iconify -1
+                "I" Next [$0 CirculateHit] Focus
+                "I" None [$0] $1

AddToFunc MailFunction        "I" Next [$0] Iconify -1
+                "I" Next [$0] focus
+                "I" None [$0] Exec $0 $1

AddToFunc Move-or-Raise        "I" Raise
+                "M" Move
+                "D" Lower

AddToFunc Move-or-Raise2        "M" Raise
+                "M" Move
+                "D" Lower

AddToFunc Maximize-Func         "C" Maximize     0 100
+                               "D" Maximize     100 100

AddToFunc Move-or-Iconify       "I" Raise
+                               "M" Move
+                               "D" Iconify

AddToFunc Resize-or-Raise       "I" Raise
+                               "M" Resize
+                               "D" Lower

AddToFunc Resize-or-Raise2      "M" Raise
+                               "M" Resize
+                               "D" Lower

AddToFunc PrintFunction         "I" Raise
+                               "I" Exec xdpr -id $w

AddToFunc Iconify-and-Raise     "I" Iconify
+                               "I" Raise

############################################################################
# MOUSE Setup
#
# First, the root window. Button 1 brings up the Main Menu. B2 is the
# window operations list, and B3 is the winlist module
#     Button    Context Modifi     Function
Mouse 1        R       A       Menu RootMenu Nop
Mouse 2        R        A       Menu Window-Ops Nop
Mouse 3        R        A          WindowList

# Now, title bar buttons
# Left button is the Window-Ops2 menu, right is iconify, rightmost is maximize
#     Button    Context Modifi     Function
Mouse 0        1       A       Menu Window-Ops2 Close
Mouse 0        2        A         Maximize-Func
Mouse 0        4        A         Iconify
Mouse 0        3       A       Stick

# Button 1 in Frame or Sides is a resize-or-raise, in Icons is a move or 
# de-iconify, and on Top does a move-or-raise
#     Button    Context Modifi     Function
Mouse 1     FS      A       Resize-or-Raise
Mouse 1        I       A       Move-or-Iconify
Mouse 1        T       A       Move-or-Raise

# Button 2 in an Icon is de-iconify, in Corners/Sides/Titlebar gets Ops Menu
#     Button    Context Modifi     Function
Mouse 2     I       A       Iconify
Mouse 2     FST     A       Menu Window-Ops2 Nop

# Button 3 does a raise-lower on anything
Mouse 3     TSIF    A       RaiseLower

############################################################################
# KEYBOARD Setup
#
# press arrow + control anywhere, and scroll by 1 page
Key Left    A    C    Scroll -100 +0
Key Right    A    C    Scroll +100 +0
Key Up        A    C    Scroll +0   -100
Key Down    A    C    Scroll +0   +100

# press arrow + meta key, and scroll by 1/10 of a page
Key Left    A    M    Scroll -10   +0
Key Right    A    M    Scroll +10   +0
Key Up        A    M    Scroll  +0  -10
Key Down    A    M    Scroll  +0  +10

# press shift arrow + control anywhere, and move the pointer by 1% of a page
Key Left    A    SC    CursorMove -1  +0
Key Right    A    SC    CursorMove +1  +0
Key Up        A    SC    CursorMove +0  -1
Key Down    A    SC    CursorMove +0  +1

# press shift arrow + meta key, and move the pointer by 1/10 of a page
Key Left    A    SM    CursorMove -10  +0
Key Right    A    SM    CursorMove +10  +0
Key Up        A    SM    CursorMove +0  -10
Key Down    A    SM    CursorMove +0  +10

# Keyboard accelerators
Key F1        A    MC    Popup "RootMenu"
Key F2        A    MC    Popup "Window-Ops"
Key F3        A    MC    Module FvwmWinList 
Key F4        A    MC    Iconify
Key F5        A    MC    Move
Key F6        A    MC    Resize
Key F7        A    MC    Next [*] focus
Key F8        A    MC    Prev [*] focus

############################################################################
# FvwmButtons
#
# Colors
*FvwmButtonsFore Black
*FvwmButtonsBack #908090

# Font 
*FvwmButtonsFont    5x8

# Geometry-- really likes to pick its own size, but giving a position is OK
*FvwmButtonsGeometry -0+100

# Layout: specify rows or columns, not both
#*FvwmButtonsColumns 1
*FvwmButtonsRows 1

# Define the buttons to use.....
*FvwmButtons Move        arrows2.xpm    Move
*FvwmButtons Kill        skull.xpm    Destroy
*FvwmButtons Quit        nuke.xpm    Popup "Quit-Verify"

#*FvwmButtons (de)Iconify    eyenew.xpm    Iconify
#*FvwmButtons Restart eye2.xpm     Restart
#*FvwmButtons Xcalc   rcalc.xpm   Exec "Calculator" xcalc &
#*FvwmButtons junk   3dx.xpm     Swallow "xload"  xload -bg \#908090
#*FvwmButtons xmter x.xpm         Swallow "xmter" xmter &
#*FvwmButtons ""  clock.xpm   Swallow "xclock" xclock -bg \#908090 -padding 0 &
#*FvwmButtons "" 3dx.xpm Swallow "Time 3D" t3d -fg \#908090 -mag .3 -wobber 0 &

############################################################################
# FvwmIdent
#
# Give us colors and a fonts
*FvwmIdentBack MidnightBlue
*FvwmIdentFore Yellow
*FvwmIdentFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*

############################################################################
# FvwmPager
#
*FvwmPagerBack #5c54c0
*FvwmPagerFore black
*FvwmPagerFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
*FvwmPagerHilight #6b64b0
*FvwmPagerGeometry -0+0
*FvwmPagerLabel 0 OpenBSD 3.7

# Setting the font to 0x0 or nil2 results in no text
#*FvwmPagerSmallFont 0x0
*FvwmPagerSmallFont 5x8

############################################################################
# FvwmWinList
#
*FvwmWinListBack #908090
*FvwmWinListFore Black
*FvwmWinListFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
*FvwmWinListAction Click1 Iconify -1,Focus
*FvwmWinListAction Click2 Iconify
*FvwmWinListAction Click3 Module "FvwmIdent" FvwmIdent
*FvwmWinListUseSkipList
*FvwmWinListGeometry +62+176

############################################################################
# FvwmBacker
#
*FvwmBackerDesk 0 -solid steelblue
*FvwmBackerDesk 1 -solid midnightblue

############################################################################
# FvwmIconBox
#
# NOTE: Icons will only be shown in module if Style "??" NoIcon is set
*FvwmIconBoxIconBack    #cfcfcf
*FvwmIconBoxIconHiFore  black
*FvwmIconBoxIconHiBack  LightSkyBlue
*FvwmIconBoxBack        #5f9ea0
#*FvwmIconBoxFore       blue
*FvwmIconBoxGeometry    5x1+0+0
*FvwmIconBoxMaxIconSize 64x38
*FvwmIconBoxFont        -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*
*FvwmIconBoxSortIcons   IconName
*FvwmIconBoxPadding     4
*FvwmIconBoxLines       10
*FvwmIconBoxSBWidth     11
*FvwmIconBoxPlacement   Left Top
*FvwmIconBoxPixmap      fvwm.xpm
#*FvwmIconBoxHideSC Horizontal
*FvwmIconBoxSetWMIconSize
*FvwmIconBoxHilightFocusWin
#*FvwmIconBoxResolution          Desk
*FvwmIconBoxMouse       1       Click           RaiseLower
*FvwmIconBoxMouse       1       DoubleClick     Iconify
*FvwmIconBoxMouse       2       Click           Iconify -1, Focus
*FvwmIconBoxMouse       3       Click           Module FvwmIdent
*FvwmIconBoxKey         r       RaiseLower
*FvwmIconBoxKey         space   Iconify
*FvwmIconBoxKey         d       Close
*FvwmIconBoxKey         n       Next
*FvwmIconBoxKey         p       Prev
*FvwmIconBoxKey         h       Left
*FvwmIconBoxKey         j       Down
*FvwmIconBoxKey         k       Up
*FvwmIconBoxKey         l       Right

############################################################################
# FvwmScrollBack
#
*FvwmScrollBack grey40
*FvwmScrollFore green

############################################################################
# FvwmAudio
#
*FvwmAudioPlayCmd /usr/local/bin/AF/aplay -d 0 -t -.05
*FvwmAudioDir /usr/local/sound/fvwm
#*FvwmAudio startup goodmorning.au
#*FvwmAudio shutdown destruct.au
#*FvwmAudio unknown cat-1.au
#*FvwmAudio destroy_window oh_my_god.au
*FvwmAudio iconify flush.au
*FvwmAudio deiconify eject.au

#*FvwmAudio add_window    ??
#*FvwmAudio toggle_paging ??

#*FvwmAudioDelay 3

#*FvwmAudio focus_change goodmorning.au
#*FvwmAudio raise_window goodmorning.au
#*FvwmAudio lower_window goodmorning.au

############################################################################
# FvwmForm
#
# FvwmForm alias - rlogin to host via xterm
*RloginWarpPointer
*RloginFont         *helvetica*m*r*n*14*
*RloginButtonFont   *helvetica*m*o*n*14*
*RloginInputFont    *cour*m*r*n*14*
*RloginFore         Black
*RloginBack         Light Gray
*RloginItemFore          Wheat
*RloginItemBack          Gray50
# begin items
*RloginLine         center
*RloginText         "Login to Remote Host"
*RloginLine         center
*RloginText         "Host:"
*RloginInput        HostName  20   ""
*RloginLine         center
*RloginSelection    UserSel   single
*RloginChoice       Default   Default   on   "same user"
*RloginChoice       Custom    Custom    off  "user:"
*RloginInput        UserName  10   ""
*RloginLine         expand
*RloginButton       quit "Login" ^M
*RloginCommand Exec xterm  -T xterm@$(HostName) -e rlogin $(HostName) $(Custom?-l $(UserName))
*RloginButton       restart   "Clear"
*RloginCommand Beep
*RloginButton       quit "Cancel"
*RloginCommand Nop
#
# FvwmForm alias - query exit ala mwm
*QuitVerifyGrabServer
*QuitVerifyWarpPointer
*QuitVerifyFont          *helvetica*m*r*n*14*
#*QuitVerifyButtonFont    *helvetica*m*o*n*14*
*QuitVerifyButtonFont    7x13bold
*QuitVerifyFore          Black
*QuitVerifyBack          Light Gray
*QuitVerifyItemFore Wheat
*QuitVerifyItemBack Gray50
# begin items
*QuitVerifyLine          center
*QuitVerifyText          "Do you really want to exit FVWM?"
*QuitVerifyLine          expand
*QuitVerifyButton   quit      " Exit "
*QuitVerifyCommand  Quit
*QuitVerifyButton   quit      "Cancel"
*QuitVerifyCommand  Nop

#
# MyTalk & MyFvwmTalk from Dave Goldberg
# MyTalk Form - dissappears after use
*MyTalkWarpPointer
*MyTalkFont *helvetica*m*r*n*14*
*MyTalkButtonFont *helvetica*m*o*n*14*
*MyTalkInputFont *cour*m*r*n*14*
*MyTalkFore Red
*MyTalkBack Gray
*MyTalkItemFore Blue
*MyTalkItemBack Gray
*MyTalkLine center
*MyTalkText "Fvwm Function"
*MyTalkInput Func 40 ""
*MyTalkLine expand
*MyTalkButton quit "Run" ^M
*MyTalkCommand $(Func)
*MyTalkButton restart "Clear" ^R
*MyTalkButton quit "Cancel" ^C
*MyTalkCommand Nop
#
# MyFvwmTalk Form - sticks around
*MyFvwmTalkWarpPointer
*MyFvwmTalkFont *helvetica*m*r*n*14*
*MyFvwmTalkButtonFont *helvetica*m*o*n*14*
*MyFvwmTalkInputFont *cour*m*r*n*14*
*MyFvwmTalkFore Red
*MyFvwmTalkBack Gray
*MyFvwmTalkItemFore Blue
*MyFvwmTalkItemBack Gray
*MyFvwmTalkLine center
*MyFvwmTalkText "Fvwm Function"
*MyFvwmTalkInput Func 40 ""
*MyFvwmTalkLine expand
*MyFvwmTalkButton restart "Run" ^M
*MyFvwmTalkCommand $(Func)
*MyFvwmTalkButton restart "Clear" ^R
*MyFvwmTalkCommand Nop
*MyFvwmTalkButton restart "Iconify" ^Z
*MyFvwmTalkCommand Next [MyFvwmTalk] Iconify
*MyFvwmTalkButton quit "Quit" ^C
*MyFvwmTalkCommand Nop

Last edited by bmk1st (2005-07-29 02:20:07)

| There's no place like /home | There's no place like /home | There's no place like /home |

Re: post your ~/.Xdefaults file

My .Xdefaults.

Re: post your ~/.Xdefaults file

bmk1st wrote:

.fvwmrc  works for OpenBSD's modified fvwm2 only (OpenBSD's default window manager).

Hey, what about a screenshot for that? Otherwise I'll just give it a go once I get home..

Re: post your ~/.Xdefaults file

Sure, but it's not a pretty screenshot but fvwmrc is easily editable tongue

Screenshot of fvwm2 on OpenBSD

Last edited by bmk1st (2005-07-29 21:34:37)

| There's no place like /home | There's no place like /home | There's no place like /home |

Re: post your ~/.Xdefaults file

I'd really like to save you the trouble of scrolling and upload all of these to my webserver, but I don't really feel like it right now.

edit: oh cool the forum software does save you the trouble of scrolling big_smile.

.Xdefaults:

xterm*Foreground:       white
xterm*Background:       black
xterm*faceName:         xft: Bitstream Vera Sans Mono:pixelsize=10
xterm*termName:         xterm-color
xterm*colorMode:        on
xterm*dynamicColors:    on
xterm*metaSendsEscape:  false
xterm*saveLines:        1000

.profile:

PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/pkg/bin
PATH=${PATH}:/usr/pkg/sbin:/usr/games:/usr/local/bin:/usr/local/sbin
PATH=${PATH}:/usr/pkg/xorg/bin
export PATH

EDITOR=vi
export EDITOR
EXINIT='set autoindent'
export EXINIT
PAGER=more
export PAGER

MANPATH=/usr/share/man:/usr/pkg/man:/usr/pkg/xorg/man
export MANPATH

HOST=`hostname -s`
PS1='${USER}@${HOST} ${PWD}> ' 
export PS1

TERM=xterm-color
export TERM

alias ls="ls -F"

.vimrc

:set background=dark
:syntax enable

.xinitrc:

xv -root -quit -max ~/.backgrounds/openbox3.jpg &
xterm -g +71+35 &
xterm -g +557+35 &
xterm -g +1043+35 &
openbox

I just posted that 'cause I like my xterms that I open up smile.

Last edited by asemisldkfj (2005-07-31 21:40:45)

Re: post your ~/.Xdefaults file

http://hacktheplanet.homeunix.net/docum … lordnikon/

Last edited by asemisldkfj (2005-08-29 18:52:27)

Re: post your ~/.Xdefaults file

Mine :

xterm*loginShell:true
xterm*transparent:true
xterm*shading:60
xterm*background:Black
xterm*foreground:White
xterm*scrollBar:false
xterm*saveLines:1000
xterm*font:*-*-fixed-medium-r-normal--*-120-*-*-*-*-iso8859-1
xterm*boldFont:*-*-fixed-bold-r-normal--*-*-120-*-*-*-*-iso8859-1

Last edited by Delf (2005-12-18 17:44:07)

Delf
Windows & FreeBSD addited

Re: post your ~/.Xdefaults file

xterm*font: 9x15
xterm*foreground: white
xterm*background: black
"UBER" means I don't drink the coffee... I chew the beans instead
             -- Copyright BSDnexus

Re: post your ~/.Xdefaults file

~/.Xdefaults

xft.dpi:        75
Xft.antialias:        true
xft.hinting:        true
xft.rgba:        rgb

xterm*geometry:        130x40
xterm*faceName:        monofur
xterm*faceSize:        10
xterm*background:    #222222
xterm*foreground:    #ddccbb
xterm*metaSendsEscape:    true
xterm*colorBD:        #ffffff
xterm*colorBDMode:    true
xterm*cursorBlink:    true
xterm*cursorColor:    #ff9900
xterm*veryBoldColors:    14
xterm*loginShell:    true
xterm*charClass:    33:48,35:48,37:48,43:48,45-47:48,64:48,95:48,126:48,35:48,58:48
xterm*jumpScroll:    true
xterm*multiScroll:    true
xterm*boldMode:        true
xterm*saveLines:    512

urxvt.termName:        rxvt
urxvt.imLocale:        en_US.UTF-8
urxvt.loginShell:    true
urxvt.saveLines:    512
urxvt.font:        xft:monofur:size=10
urxvt.skipBuiltinGlyphs:true
urxvt.intensityStyles:    true
urxvt.geometry:        122x36
urxvt.inheritPixmap:    false
urxvt.xftAntialias:    true
urxvt.jumpScroll:    true
urxvt.tintColor:    white
urxvt.cursorBlink:    true
urxvt.cursorColor:    #dd9900
urxvt.cursorColor2:    #000000
urxvt.background:    #000000
urxvt.foreground:    #ddccbb
urxvt.colorBD:         #ffffff
urxvt.colorIT:        #bbbbbb
urxvt.colorUL:        #999999
urxvt.underlineColor:    #999999

!black
*.color0:        #221100
*.color8:        #554444

!red
*.color1:        #884422
*.color9:        #cc5533

!green
*.color2:        #778800
*.color10:        #88aa22

!yellow
*.color3:        #887733
*.color11:        #aa9955

!blue
*.color4:        #8866cc
*.color12:        #9977dd

!magneta
*.color5:        #885500
*.color13:        #996600

!cyan
*.color6:        #5555aa
*.color14:        #7777aa

!white
*.color7:        #bbaa99
*.color15:        #ddccaa

XCalc*ti.button1.vertDistance:        4
XCalc*ti.button2.vertDistance:        4
XCalc*ti.button3.vertDistance:        4
XCalc*ti.button4.vertDistance:        4
XCalc*ti.button5.vertDistance:        4
XCalc*ti.background:            gray90
XCalc*ti.bevel.borderColor:        gray65
XCalc*ti.bevel.borderWidth:        1
XCalc*ti.bevel.vertDistance:        4
XCalc*ti.bevel.defaultDistance:        0
XCalc*ti.bevel.background:              rgb:b/c/b
XCalc*ti.bevel.screen*background:       rgb:b/c/b
XCalc*ti.bevel.screen.borderColor:      rgb:b/c/b
XCalc*ti.bevel.screen.vertDistance:    10
XCalc*ti.bevel.screen.horizDistance:    10
XCalc*ti.bevel.screen*left:        chainLeft
XCalc*ti.bevel.screen*right:        chainRight
XCalc*ti.bevel.screen*top:        chainTop
XCalc*ti.bevel.screen*bottom:        chainBottom
XCalc*ti.bevel.screen*LCD.foreground:    gray10
XCalc*ti.bevel.screen*INV.vertDistance:    0
XCalc*ti.Command.borderColor:        gray65
XCalc*ti.Command.background:        gray85
XCalc*ti.Command.foreground:        gray30
XCalc*ti.button5.background:        rgb:e/b/b
XCalc*ti.button20.background:        rgb:e/d/c
XCalc*ti.button25.background:        rgb:e/d/c
XCalc*ti.button30.background:        rgb:e/d/c
XCalc*ti.button35.background:        rgb:e/d/c
XCalc*ti.button40.background:        rgb:b/b/e
XCalc*ti.button22.background:        gray95
XCalc*ti.button23.background:        gray95
XCalc*ti.button24.background:        gray95
XCalc*ti.button27.background:        gray95
XCalc*ti.button28.background:        gray95
XCalc*ti.button29.background:        gray95
XCalc*ti.button32.background:        gray95
XCalc*ti.button33.background:        gray95
XCalc*ti.button34.background:        gray95
XCalc*ti.button37.background:        gray95
XCalc*ti.button38.background:        gray95
XCalc*ti.button39.background:        gray95

xmessage*form.okay.shapeStyle:        rectangle
xmessage*form.okay.background:        IndianRed
xmessage*form.okay.foreground:        rgb:e/b/b
xmessage*message*background:        ivory3
xmessage*background:            gray85
xmessage*foreground:            gray15
xmessage*Scrollbar.width:        1
xmessage*Scrollbar.borderWidth:        0
xmessage*Text.?.cursorColor:        rgb:d/5/5
xmessage*Text.borderColor:        gray65
xmessage*Text*background:        gray95
xmessage*Command.highlightThickness:    1
xmessage*Command.internalWidth:        5
xmessage*Command.internalHeight:    3
xmessage*Command.borderColor:        gray40
xmessage*Command.shapeStyle:        Rectangle
xmessage*Command.background:        gray80
xmessage*font:                -*-clean-medium-*-*-*-*-*-*-*-*-*-iso8859-2

~/.xinitrc

# start fluxbox with D-BUS support
# exec dbus-launch --exit-with-session fluxbox
# echo dbus_enable="YES" >> /etc/rc.conf

export TERMINAL=xterm

fluxbox & fluxpid=$!
{
  xtoolwait random_wallpaper.sh ~/gfx/wallpapers
  xtoolwait nice -n 20 conky
  xtoolwait xrdb -load ~/.Xdefault && xtoolwait $TERMINAL -e screen -D -RR
  xtoolwait xset -b -bc dpms 0 0 900 m 4 6 s 600
  xtoolwait xmodmap ~/.xmodmaprc
  xtoolwait numlockx on
}
wait $fluxpid
"religions, worst damnation of mankind"
[color=Blue]Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for