Blog Code Forum

ArchLinux:Desktop

From Wiki.cyring.fr

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
-
===== Xorg =====
+
== Xorg ==
French keyboard
French keyboard
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
Line 13: Line 13:
EndSection
EndSection
</syntaxhighlight><br />
</syntaxhighlight><br />
-
===== KDM =====
+
== KDM ==
Switch Numlock ON at login<br />
Switch Numlock ON at login<br />
Redirect the error log file (ie. tmpfs)
Redirect the error log file (ie. tmpfs)
Line 27: Line 27:
ClientLogFile=tmp/.xsession-errors
ClientLogFile=tmp/.xsession-errors
</syntaxhighlight>
</syntaxhighlight>
 +
== Twm ==
 +
===== .twmrc =====
 +
<pre>
 +
OpaqueMove
 +
RandomPlacement
 +
ShowIconManager
 +
NoGrabServer
 +
RestartPreviousState
 +
DecorateTransients
 +
TitleFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
 +
ResizeFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
 +
MenuFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
 +
IconFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*"
 +
IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*"
 +
#ClientBorderWidth
 +
 +
Color
 +
{
 +
    BorderColor "slategrey"
 +
    DefaultBackground "black"
 +
    DefaultForeground "darkred"
 +
    TitleBackground "darkred"
 +
    TitleForeground "white"
 +
    MenuBackground "darkred"
 +
    MenuForeground "black"
 +
    MenuBorderColor "slategrey"
 +
    MenuTitleBackground "black"
 +
    MenuTitleForeground "darkred"
 +
    IconBackground "red"
 +
    IconForeground "black"
 +
    IconBorderColor "gray85"
 +
    IconManagerBackground "darkred"
 +
    IconManagerForeground "black"
 +
}
 +
 +
NoTitle { "xclock" }
 +
IconBorderWidth 1
 +
IconManagerDontShow { "xclock" }
 +
IconManagerGeometry "2500x16+0+0" 32
 +
IconRegion "640x32+0-0" North East 32 32
 +
#
 +
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 }
 +
#
 +
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
 +
#
 +
menu "defops"
 +
{
 +
"RAM Computer"  f.title
 +
"Iconify"      f.iconify
 +
"Resize"        f.resize
 +
"Move"          f.move
 +
"Raise"        f.raise
 +
"Lower"        f.lower
 +
""              f.nop
 +
"Focus"        f.focus
 +
"Unfocus"      f.unfocus
 +
"Show Iconmgr"  f.showiconmgr
 +
"Hide Iconmgr"  f.hideiconmgr
 +
""              f.nop
 +
"Xterm"        f.exec "exec xterm -bg black -fg white -geometry 96x30 -fn 7x14 &"
 +
""              f.nop
 +
"Kill"          f.destroy
 +
"Delete"        f.delete
 +
""              f.nop
 +
"Restart"      f.restart
 +
"Exit"          f.quit
 +
}
 +
</pre>

Revision as of 07:47, 14 November 2012

Contents

Xorg

French keyboard

# nano /etc/X11/xorg.conf.d/10-evdev.conf

  1. Section "InputClass"
  2.         Identifier "evdev keyboard catchall"
  3.         MatchIsKeyboard "on"
  4.         MatchDevicePath "/dev/input/event*"
  5.         Driver "evdev"
  6.         Option "xkb_layout" "fr"
  7. EndSection

KDM

Switch Numlock ON at login
Redirect the error log file (ie. tmpfs)

# nano /usr/share/config/kdm/kdmrc

  1. [X-*-Greeter]
  2. NumLock=On
  3.  
  4. [X-:0-Core]
  5. ClientLogFile=tmp/.xsession-errors

Twm

.twmrc
OpaqueMove
RandomPlacement
ShowIconManager
NoGrabServer
RestartPreviousState
DecorateTransients
TitleFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
ResizeFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
MenuFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
IconFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*"
IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*"
#ClientBorderWidth

Color
{
    BorderColor "slategrey"
    DefaultBackground "black"
    DefaultForeground "darkred"
    TitleBackground "darkred"
    TitleForeground "white"
    MenuBackground "darkred"
    MenuForeground "black"
    MenuBorderColor "slategrey"
    MenuTitleBackground "black"
    MenuTitleForeground "darkred"
    IconBackground "red"
    IconForeground "black"
    IconBorderColor "gray85"
    IconManagerBackground "darkred"
    IconManagerForeground "black"
}

NoTitle { "xclock" }
IconBorderWidth 1
IconManagerDontShow { "xclock" }
IconManagerGeometry "2500x16+0+0" 32
IconRegion "640x32+0-0" North East 32 32
#
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 }
#
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
#
menu "defops"
{
"RAM Computer"  f.title
"Iconify"       f.iconify
"Resize"        f.resize
"Move"          f.move
"Raise"         f.raise
"Lower"         f.lower
""              f.nop
"Focus"         f.focus
"Unfocus"       f.unfocus
"Show Iconmgr"  f.showiconmgr
"Hide Iconmgr"  f.hideiconmgr
""              f.nop
"Xterm"         f.exec "exec xterm -bg black -fg white -geometry 96x30 -fn 7x14 &"
""              f.nop
"Kill"          f.destroy
"Delete"        f.delete
""              f.nop
"Restart"       f.restart
"Exit"          f.quit
}
Personal tools