##########################################################################
# 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
#
# window switching through desks?
#AutoTabThroughDesks
#
# Automatically raise a window if mouse stays > 500 msec on it
# AutoRaise 500
#
# Support Motif window manager function hints
MWMFunctionHints
#
# Support Motif window manager decoration hints
MWMDecorHints
#
# Allow overriding of Motif function hints
MWMHintOverride
#
# While zapping, warp mouse pointer to
Xzap 12
Yzap 12
#
# Avoid problems with xpaint like applications which define their own icon
# as a window and tell the window manager it's its icon
KeepIconWindows
#
# Don't push titlebar when clicked
# Titlebarnopush
#
# Click on titlebar to focus window (ie put it in the foreground)
# ClickToFocus
#
# Click on titlebar to raise window (ie put it in the foreground)
ClickToRaise
#
# Focus on window until pointer gets in another one
SloppyFocus
#
# Iconify to original place
StubbornIcons
#
# Uniconify to original place
StubbornPlacement
#
# Optimize icon placement
# StubbornIconPlacement
#
# Give a name to each icon
IconTitle
#
# Icons follow you on the desktop
#StickyIcons no
#
# Don't jump to an icon while zapping windows
# CirculateSkipIcons
#
# Center the screen on the current window while circulating
#CenterOnCirculate
#
# Double click period in ms
# ClickTime 150
#
# Keep showing window while being moved if size<N%
OpaqueMove 100
#
# Keep showing window while being resized if size<N%
OpaqueResize 100
#
# Mouse pushing on screen edge : N% move
EdgeScroll 100 100
#
# No snap to edges
ScreenEdgeAttraction 0
#
# No snap to windows
WindowEdgeAttraction 0
NoSnapKey Shift
#
# To avoid unwanted moving, edges resist during N ms
EdgeResistance 200 80
#
# Place window in empty zones
SmartPlacement
#
# Random window placement
RandomPlacement
#
# Windows can't chose where to place
#NoPPosition
#
# Put a titlebar + various stuff on dialog boxes
DecorateTransients
#
# Tell me what it means :-)
#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
# 11 BOTTOM
# 12 LEFT
# 13 TOP_LEFT
# 14 TOP_RIGHT
# 15 BOTTOM_LEFT
# 16 BOTTOM_RIGHT
#
# while /usr/include/X11/cursorfont.h contains available cursors
#
#Cursor 0
Cursor 1 68
Cursor 2 68
Cursor 3 22
Cursor 4 52
Cursor 5 150
Cursor 6 68
Cursor 7 68
Cursor 8 88
Cursor 9 42
Cursor 10 68
Cursor 1 58
Cursor 2 68
Cursor 3 22
#Cursor 4 120
Cursor 5 150
#Cursor 6 60
Cursor 7 68
#Cursor 8 88
Cursor 9 138
Cursor 10 96
Cursor 11 16
Cursor 12 70
Cursor 13 134
Cursor 14 136
Cursor 15 12
Cursor 16 14
#old
#Cursor 5 150
#Cursor 7 58
#Cursor 8 88
#
##########################################################################
##########################################################################
# Functions
#
# 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
# MiniPixmap "mini-menu.xpm"
Popup "Apps"
Title "Apps"
Exec "term" /usr/bin/mrxvt &
# Exec "term" gnome-terminal --hide-menubar &
# Exec "term" xterm -fa Monospace -fs 10 -leftbar -sb -cr orange -si &
Exec "little aterm" aterm -si -bg black -fg white -cr orange -sl 5000 &
Exec "mozilla" /bin/rm -f "/home/kobaz/.mozilla/Default User/rezs20tw.slt/lock"; mozilla &
Exec "firefox" firefox &
Exec "opera" opera &
Exec "putty" putty &
Exec "-------" ls /tmp &
Exec "nvidia" nvidia-settings &
Exec "xmms" xmms &
Exec "gaim" /home/kobaz/bin/rungaim &
Exec "thunderbird" /usr/src/thunderbird/thunderbird &
EndPopup
Popup "Window"
Title "Window Ops"
Move "Move"
WindowsDesk " - to desk #0" 0
Resize "Resize"
Shade "Shade"
Raise "To foreground"
Lower "To background"
Iconify "Iconify"
Maximize "Maximize" 100 100
Maximize "Maximize Full" 100 100
# Maximize "Maximize" 90 100
Refresh "Redraw"
Delete "Kill"
Destroy "Destroy"
EndPopup
#
##########################################################################
##########################################################################
# 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
#
# 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
# Kill mp3 alarm
#Key Up RFSITW CM Exec "I" /home/kobaz/bin/mp3alarm.tcl -kill &
#Key Down RFSITW CM Exec "I" /home/kobaz/bin/mp3alarm.tcl -holdset 0 &
Key Up RFSITW CM Exec "I" xmms-shell -e random-track &
Key Down RFSITW CM Exec "I" xterm -bg black -fg white -geometry 110x3 -fn VGA -e "xmms-shell -e status | grep Playing; sleep 3" &
#Key Delete RFSITW CM Exec "I" xlock -nice 0 -mode random &
#
# Mouse actions
#
# Root window clicks
Mouse 1 R N PopUp "Apps"
Mouse 1 R C PopUp "Start"
Mouse 2 R A WindowList
Mouse 3 R A PopUp "Window"
# App window clicks
Mouse 3 W M RaiseLower
# Title Bar BUTTON Clicks
Mouse 1 1 A Iconify
Mouse 1 2 A Delete
# Title Bar Clicks
Mouse 2 T A Shade
Mouse 1 T A Function "Move-or-Top"
Mouse 3 T M Maximize 100 100
Mouse 3 T C Maximize 100 0
#Mouse 3 T M Maximize 90 100
# Move and resize
Mouse 1 FS A Resize
Mouse 2 FS A Move
Mouse 3 FS A Move
Mouse 0 I A Function "Move-or-Iconify"
Mouse 3 W MS Move
Mouse 1 1 A Iconify
Mouse 1 2 A Delete
#
# 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
#
## 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
#
############################################################################