2006-03-23

X32にcentos-ウィンドウマネージャ

ウィンドウマネージャはtwm。
ごてごてしたのは嫌い。複数画面切り替え機能もいらないのでtwmで十分。

$ switchdesk twm
で、変更。

.Xclients-defaultに起動されるアプリが書かれているので、順次書き換え。
今の、.Xclients-defaultは以下のとおり。

-------
#!/bin/bash
# (c) 2000 Red Hat, Inc.

#twm &
xmodmap -e "keycode 22 = Delete Terminate_Server"
emiclock -geometry +892+-2 &
xterm -geometry 80x24+0+0 -iconic -name login &
rxvt -geometry 80x45+0+0 &
rxvt -sl 1500 -geometry 80x30+110+314 &
exec /usr/X11R6/bin/twm
-------

今の、.twmは以下のとおり。
-------
#
# $XConsortium: system.twmrc,v 1.8 91/04/23 21:10:58 gildea Exp $
#
# Default twm configuration file; needs to be kept small to conserve string
# space in systems whose compilers don't handle medium-sized strings.
#
# Sites should tailor this file, providing any extra title buttons, menus, etc.
# that may be appropriate for their environment. For example, if most of the
# users were accustomed to uwm, the defaults could be set up not to decorate
# any windows and to use meta-keys.
#
#AutoRaise { "rxvt" }

NoGrabServer
RestartPreviousState
DecorateTransients
IconRegion "600x200+0+0" NORTH WEST 0 0

TitleFont "-misc-fixed-bold-r-normal--14-*-*-*-*-*-iso8859-1"
ResizeFont "-misc-fixed-bold-r-normal--14-*-*-*-*-*-iso8859-1"
MenuFont "-misc-fixed-bold-r-normal--14-*-*-*-*-*-iso8859-1"
IconFont "-misc-fixed-bold-r-normal--14-*-*-*-*-*-iso8859-1"

TitleButtonBorderWidth 1
FramePadding 1
TitlePadding 8
#ClientBorderWidth
ButtonIndent 1

Color
{
BorderColor "slategrey"
DefaultBackground "maroon"
DefaultForeground "gray85"
TitleBackground "maroon"
TitleForeground "gray85"
MenuBackground "maroon"
MenuForeground "gray85"
MenuTitleBackground "gray70"
MenuTitleForeground "maroon"
IconBackground "maroon"
IconForeground "gray85"
IconBorderColor "gray85"
IconManagerBackground "maroon"
IconManagerForeground "gray85"
}

#
# Define some useful functions for motion-based actions.
#
MoveDelta 3
Function "move-or-lower" { f.move f.deltastop f.lower }
Function "move-or-raise" { f.move f.deltastop f.raise }
Function "move-or-iconify" { f.move f.deltastop f.iconify }

#
# Set some useful bindings. Sort of uwm-ish, sort of simple-button-ish
#
Button1 = : root : f.menu "defops"

Button1 = m : window|icon : f.function "move-or-lower"
Button2 = m : window|icon : f.iconify
Button3 = m : window|icon : f.function "move-or-raise"

Button1 = : title : f.function "move-or-raise"
Button2 = : title : f.raiselower

Button1 = : icon : f.function "move-or-iconify"
Button2 = : icon : f.iconify

Button1 = : iconmgr : f.iconify
Button2 = : iconmgr : f.iconify

#
# And a menus with the usual things
#
menu "defops"
{
"Twm" f.title
"Rxvt" !"rxvt -sl 1500&"
"XTerm" !"xterm&"
"Raise" f.raise
"Lower" f.lower
"" f.nop
"Focus" f.focus
"Unfocus" f.unfocus
"Show Iconmgr" f.showiconmgr
"Hide Iconmgr" f.hideiconmgr
"" f.nop
"Kill" f.destroy
"Delete" f.delete
"" f.nop
"Restart" f.restart
"Exit" f.quit
}

NoTitle
{
"EmiClock"
}

0 Comments:

Post a Comment

<< Home