| General |
|
In the feels directory you will find some feel files, nothing else. I have picked one to show up some possibilities. I know there are even more, but I only wanted that the viewer see how to do it. (You read this before, didn't you? ;-) ). And also once again, some changes will affect the behaviour of AS in a way, that you have to change the look file accordingly. So if you want to change some keybindings, behaviour of the windows, or something like that, you have to edit this files. After editing you have to choose it from the startmenu (default is Decorations--Feel) and you have to update the feel. To do this you have to choose Update feel or Update all from the starmenu, this will overwrite the feel file in ~/G/L/A/non-configurable/ so that it will be loaded next time when you fire up AS. |
| The config file |
--------------------------------------------------------------------------
##########################################################################
# Root window feeling
#
#------------------------------------------------------------------------
# Windows behaviour
#
# Alt-tab between windows, similar to Windows9x. For instance:
# AutoReverse 0: default switching among the windows in one direction
# AutoReverse 1: #1->#2->#3->#4 and then #4->#3->#2->#1
# AutoReverse 2: #1->#2->#3->#4 and then #4->#1->#3->#2 etc.
AutoReverse 0
# No need to comment this.
#
# window switching through desks?
#AutoTabThroughDesks
# This will let you switch between the windows, even when they are open on
# different desks.
# Automatically raise a window if mouse stays > 500 msec on it
# AutoRaise 500
# Should be clear enough.
# Support Motif window manager function hints
MWMFunctionHints
# You should leave the MWM hints enabled.
# Support Motif window manager decoration hints
MWMDecorHints
# You also should leave this enabled.
# Allow overriding of Motif function hints
MWMHintOverride
# You should leave this enabled too. How boring ;-)
# While zapping, warp mouse pointer to
Xzap 12
Yzap 12
# I don't know for what this is useful.
# Avoid problems with xpaint like applications which define their own icon
# as a window and tell the window manager it's its icon
KeepIconWindows
# See original comment.
# Don't push titlebar when clicked
# Titlebarnopush
# Avoid the visual effect of a deeper titlebar.
# Click on titlebar to focus window (ie put it in the foreground)
# ClickToFocus
# Only focus the window when the titlebar is clicked.
# Click on titlebar to raise window (ie put it in the foreground)
ClickToRaise
# Raise the window when the titlebar is clicked, means no auto raise.
# Focus on window until pointer gets in another one
SloppyFocus
# If you only got one window open, the focus will stay in it until the
# pointer gets into another one. So you don't need to leave the pointer
# in that window all the time.
# Iconify to original place
StubbornIcons
# If you don't define an icon-box, the icons will always appear in that
# place where the window was opened first.
# Uniconify to original place
StubbornPlacement
# The window will appear in the place where it was iconified before.
# Optimize icon placement
# StubbornIconPlacement
# I guess it is to preserve that icons are overlapped.
# Give a name to each icon
IconTitle
#
# Icons follow you on the desktop
StickyIcons
#
# Don't jump to an icon while zapping windows
# CirculateSkipIcons
# When you switch between windows, icons will be ignored if you
# uncomment this line.
# Center the screen on the current window while circulating
#CenterOnCirculate
# I think this is for virtual screens.
# Double click period in ms
# ClickTime 150
#
# Keep showing window while being moved if size<N%
OpaqueMove 100
# If you set this to 0 only the outline (so called rubber-band)
# will be shown, good on slow graphic-boards. If set to 100 the
# whole contents of the windows will be visible when moving.
# Keep showing window while being resized if size<N%
OpaqueResize 100
# If you comment this out, the contents of the window will not be
# shown, when you change the size. Also good on slow mashines.
# Mouse pushing on screen edge : N% move
EdgeScroll 0 0
# If set to 0 0 the screens are not changed if you push the pointer
# to the edges of the screen. Elseway, you will flip to the next screen.
# To avoid unwanted moving, edges resist during N ms
EdgeResistance 200 80
# If EdgeScroll is not set to 0 0, wait for the given time before change
# to the next screen.
# Place window in empty zones
#SmartPlacement
# Try to put windows into empty zones.
# Random window placement
RandomPlacement
# Put windows anywhere ;-)
# Windows can't chose where to place
# NoPPosition
# Some apps will remember their position, if commenting out this line,
# you allow them to open there.
# Put a titlebar + various stuff on dialog boxes
DecorateTransients
#
# Tell me what it means :-)
# Me too ;-)
#AppsBackingStore
#BackingStore
#SaveUnders
#DontMoveOff
#XorValue
#MenusHigh
#PagingDefault
#
##########################################################################
##########################################################################
# Cursor
#
# Cursor THISTYPE THISCURSOR where type is :
#
# 0 POSITION - used when initially placing windows
# 1 TITLE - used in a window title-bar
# 2 DEFAULT - used in windows that don't bother to set their cursor
# 3 SYS - used in one of the title-bar buttons
# 4 MOVE - used when moving or resizing windows.
# 5 WAIT - used during an EXEC builtin command.
# 6 MENU - used in a menus.
# 7 SELECT - used for various builtin commands such as iconify.
# 8 DESTROY - used for DESTROY and DELETE built-ins.
# 9 TOP - used in the top side-bar of a window
# 10 RIGHT - used in the right side-bar of a window
#
# while /usr/include/X11/cursorfont.h contains available cursors
#
Cursor 5 68
Cursor 7 58
Cursor 8 88
#
# Define some cursors, these will change if you, for example move the cursor
# to the close button in the title bar. See cursorfont.h for available
# cursors.
##########################################################################
##########################################################################
# Functions
# Here you can define some functions before they will be used.
# Used to move icons on desktop
Function "Move-or-Top"
Move "Motion"
RaiseLower "Click"
PutOnTop "DoubleClick"
EndFunction
# Used to move windows on desktop
Function "Move-or-Iconify"
Move "Motion"
Iconify "Click"
EndFunction
# Window operations
Popup "Window"
Title "This window :"
Exec "Take A WindowShot" exec xwd -frame -out window.xwd
Exec "Take A ScreenShot" exec xwd -root -out screen.xwd
Move "Move"
WindowsDesk " - to desk #0" 0
WindowsDesk " - to desk #1" 1
WindowsDesk " - to desk #2" 2
WindowsDesk " - to desk #3" 3
Resize "Resize"
Raise "To foreground"
Lower "To background"
Maximize "Maximize 100%" 100 100
Maximize "Maximize 80%" 80 80
Destroy "Kill"
Delete "Quit"
Refresh "Redraw"
EndPopup
#
# The "window" popup menu, I have deleted the mini-icons. Shouldn't be
# that difficult. You can add more entries here if you like, or delete
# some. If you only got one desk, you may want to delete the to desk
# entries.
# If you got a vertical Wharf you may want to add the following:
#
# Maximize "Maximize Leaving Wharf" 94 100
#
# This will maximise the window but not that much that Wharf is covered.
#
# Thanks to Neil Thomas for that.
##########################################################################
##########################################################################
# Key binding :
#
# [Zap button] [Window ops] Title [Iconify] [Shade] [Quit]
#
# Zap switches to next window, if middle clicked switches to previous one while
# right click open man file of the current window.
#
# Window ops lets you act on window geometry, size (...) if right clicked
# asks which window you want to switch to.
#
# Iconify button iconifies current window, if right clicked it maximises it.
#
# Shade swallows window under titlebar and makes it sticky, if right clicked
# it only makes it sticky, without swallowing it
#
# Quit closes current window, if right clicked it kills it
##########################################################################
##########################################################################
# Calls
#
# There are 4 colums to the table
# First column is the event (Mouse Click or Key Press)
# Mouse 0 specify any click in a TitleBar box
# Where can be 1 or 2 for first or second box
# Mouse 1 is left button, 2 is middle, 3 is right
# Second Column is where the click takes place
# R = Root window (main background)
# F = Window Frame (the corners)
# S = Bottom bar
# I = Icon Window
# T = TitleBar
# W = Application Window
# Third Column is the Context (ie, modifier keys)
# N = No modifiers
# A = Any context except for inside the TitleBar Boxes
# C = Control
# S = Shift
# M = Meta
# Combos are allowed (eg, CS = Control+Shift)
# Fourth Column is the action to take upon click : function, popup, or action
#
# Mouse actions
Mouse 1 R A PopUp "Start"
Mouse 2 R A WindowList
Mouse 3 R A PopUp "Window"
Mouse 1 1 A ChangeWindowUp
Mouse 2 1 A GetHelp
Mouse 3 1 A ChangeWindowDown
Mouse 1 2 A Delete
Mouse 2 2 A Destroy
Mouse 3 2 A Destroy
Mouse 1 3 A PopUp "Window"
Mouse 2 3 A WindowList 2
Mouse 3 3 A WindowList
Mouse 1 4 A Shade
Mouse 2 4 A Stick
Mouse 3 4 A Stick
Mouse 1 6 A Iconify
Mouse 2 6 A Maximize
Mouse 3 6 A Maximize
Mouse 1 FS A Resize
Mouse 2 FS A Move
Mouse 3 FS A Move
Mouse 1 T A Function "Move-or-Top"
Mouse 2 T A RaiseLower
Mouse 3 T A RaiseLower
Mouse 0 I A Function "Move-or-Iconify"
#
# Keys actions
#
# control + arrow = 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
# alt + arrow = 1/10 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
# Commented out, I don't need this. Also it took away too much keys
# of some apps.
# shift + arrow = move cursor
#Key Left A S CursorMove -1 0
#Key Right A S CursorMove +1 +0
#Key Up A S CursorMove +0 -1
#Key Down A S CursorMove +0 +1
# shift + control + arrow = change desktop
Key Left A SC Desk 0 0
Key Right A SC Desk 0 1
Key Up A SC Desk 0 2
Key Down A SC Desk 0 3
# For asforms & menus : Ctrl-Shift-Fx =
Key F1 A SC Module "Help" Form HELPForm
Key F1 A SC GetHelp
Key F2 A SC Iconify
Key F3 A SC Resize
Key F4 A SC Delete
Key F5 A SC Move
Key F6 A SC Destroy
Key F7 A SC CirculateUp
Key F8 A SC Module "Run" Form RUNForm
Key F9 A SC WindowList
Key F10 A SC PutOnBack
Key F11 A SC Module "Find" Form FINDForm
Key F12 A SC PopUp "Start"
# Windows-alike keys
#
# alt + tab = change window
Key Tab A M WarpFore
# alt + q = return to window
Key q A M WarpBack
# shift + alt + tab = focus on current window
Key Tab A S Focus
# ctrl-v = paste
Key v W C PasteSelection
# Window keys
#Key Menu A A Popup "Start"
#Key Meta_L A A WarpFore
#Key Meta_R A A WarpBack
Key Super_L A N Popup "Start"
Key Hyper_R A N Popup "Window"
Key Super_R A N WindowList
# This last three ones are for my Win95 keyboard. You can't get one
# without this keys anymore, so why don't use them.
# PC keys aren't always defined is keymaps
Key Print A A Module "GrabScreen" Form XGRABSCForm
Key Pause A A Exec "xlock" exec xlock -nolock -mode random
Key Sys_Req A A GetHelp
Key Scroll_Lock A A Desk 0
#
############################################################################
-------------------------------------------------------------------------
Once again, check out the feel files that comes with AfterStep to feel the
difference and look how this is done.